@StableMinor(version="12.5", sinceVersion="4.0") public interface IServiceInstanceAclManager extends IAclManager
Modifier and Type | Field and Description |
---|---|
static int |
PERMISSION_DEFAULT |
Modifier and Type | Method and Description |
---|---|
String |
add(SessionConfig sessionConfig,
ServiceInstanceConfig serviceInstanceConfig,
ITransaction transaction)
Add an Access Control List to the Service Instance.
|
void |
checkRequiredPermissions(AccessControlList acl)
Checks if the required permissions were given for someone.
|
boolean |
checkServiceInstancePermission(SessionConfig sessionConfig,
String serviceInstanceId,
String permissionId,
ITransaction transaction)
Checks if an user has a permission on a service instance.
|
boolean |
checkServiceInstancePermission(SessionConfig sessionConfig,
String userId,
String serviceInstanceId,
String permissionId,
ITransaction transaction)
Checks if an user has a permission on a service instance.
|
void |
clearCache(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
Reloads the ACL associated with the given serviceInstanceId.
|
AccessControlList |
get(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
Get the Service Instance's Access Control List.
|
ServiceInstancePermissions |
getPermissions(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction) |
void |
update(SessionConfig sessionConfig,
String serviceInstanceId,
AccessControlList acl,
ITransaction transaction)
Update the Service Instance's ACL.
|
add, addOrUpdate, checkPermission, checkPermission, clearCache, delete, deleteAclEntryByPrincipalId, deserialize, exists, removeFromCache, serialize
keyExists
static final int PERMISSION_DEFAULT
String add(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceConfig
- transaction
- ManagerException
PortalException
AccessControlList get(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- transaction
- ManagerException
PortalException
void update(SessionConfig sessionConfig, String serviceInstanceId, AccessControlList acl, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- acl
- transaction
- ManagerException
PortalException
void clearCache(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- acl
- transaction
- ManagerException
PortalException
ServiceInstancePermissions getPermissions(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceId
- transaction
- ManagerException
PortalException
void checkRequiredPermissions(AccessControlList acl) throws PortalException
acl
- the acl to be checked.PortalException
- if the required permissions were not given.boolean checkServiceInstancePermission(SessionConfig sessionConfig, String serviceInstanceId, String permissionId, ITransaction transaction) throws PortalException
This method is a shortcut for IAclManager.checkPermission(SessionConfig, String, IPermission, ITransaction)
that
obtains the IPermission
object from the service instance permissions.
sessionConfig
- the current user session information.serviceInstanceId
- the service instance identifier.permissionId
- the permission identifier. May be either one of the standard permissions or a custom
permission defined in the service instance's service.transaction
- the transaction for persistence access.true
if the user has the permission, false
otherwise.PortalObjectNotFoundException
- if the service instance or the permission was not found.PortalException
ServiceInstancePermissions.PERMISSION_ID_MANAGE_SERVICE_INSTANCE_SECURITY
,
ServiceInstancePermissions.PERMISSION_ID_MANAGE_SERVICE_INSTANCE
,
ServiceInstancePermissions.PERMISSION_ID_EDIT_SERVICE_INSTANCE_CONTENT
,
ServiceInstancePermissions.PERMISSION_ID_VIEW_SERVICE_INSTANCE
boolean checkServiceInstancePermission(SessionConfig sessionConfig, String userId, String serviceInstanceId, String permissionId, ITransaction transaction) throws PortalException
This method is a shortcut for IAclManager.checkPermission(SessionConfig, String, String, IPermission, ITransaction)
that obtains the IPermission
object from the service instance permissions.
sessionConfig
- the current user session information.userId
- the identifier of the user to check for permission.serviceInstanceId
- the service instance identifier.permissionId
- the permission identifier. May be either one of the standard permissions or a custom
permission defined in the service instance's service.transaction
- the transaction for persistence access.true
if the user has the permission, false
otherwise.PortalObjectNotFoundException
- if the service instance or the permission was not found.PortalException
ServiceInstancePermissions.PERMISSION_ID_MANAGE_SERVICE_INSTANCE_SECURITY
,
ServiceInstancePermissions.PERMISSION_ID_MANAGE_SERVICE_INSTANCE
,
ServiceInstancePermissions.PERMISSION_ID_EDIT_SERVICE_INSTANCE_CONTENT
,
ServiceInstancePermissions.PERMISSION_ID_VIEW_SERVICE_INSTANCE
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.