public interface IAclManager extends IConfigKeyChecker
Modifier and Type | Method and Description |
---|---|
void |
add(AccessControlList acl,
ITransaction transaction) |
void |
addOrUpdate(AccessControlList acl,
ITransaction transaction) |
boolean |
checkPermission(SessionConfig sessionConfig,
String itemId,
IPermission permission,
ITransaction transaction)
Verify if the permission is valid for the sessionConfig's user.
|
boolean |
checkPermission(SessionConfig sessionConfig,
String userId,
String itemId,
IPermission permission,
ITransaction transaction)
Verify if the permission if valid for the specified userId.
|
void |
clearCache(ITransaction transaction)
Clears all ACL cache.
|
void |
delete(String aclId,
ITransaction transaction)
Deletes an acl.
|
void |
deleteAclEntryByPrincipalId(String principalId,
ITransaction transaction)
Delete ACL entries in all ACLs for the specified principal.
|
String |
deserialize(SessionConfig sessionConfig,
DeserializationConfig deserializationConfig,
Node accessControlListNode,
boolean onlyAddSimpleAcls,
ITransaction transaction) |
boolean |
exists(String aclId,
ITransaction transaction) |
void |
removeFromCache(String aclId,
ITransaction transaction)
Allows removal of cached items
|
void |
serialize(SessionConfig sessionConfig,
String securableId,
OutputStream outputStream,
ITransaction transaction) |
keyExists
void serialize(SessionConfig sessionConfig, String securableId, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
String deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node accessControlListNode, boolean onlyAddSimpleAcls, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
boolean checkPermission(SessionConfig sessionConfig, String itemId, IPermission permission, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- channelId
- permission
- transaction
- ManagerException
PortalException
boolean checkPermission(SessionConfig sessionConfig, String userId, String itemId, IPermission permission, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- userId
- itemId
- permission
- transaction
- ManagerException
PortalException
void delete(String aclId, ITransaction transaction) throws PortalException
This method does not delete the acl's children. They must have been deleted or the foreign key constraints will not allow their parent to be deleted.
aclId
- the id of the acl to be deleted from persistence.transaction
- the transaction for persistence access.PortalException
void removeFromCache(String aclId, ITransaction transaction) throws DaoException, PortalException
aclId
- transaction
- DaoException
PortalException
void clearCache(ITransaction transaction) throws PortalException
transaction
- the transaction for persistence access. If null,
the cache is just cleared, else it is cleared as a transactional
operation as specified in PortalCache.clear(ITransaction)
.PortalException
void deleteAclEntryByPrincipalId(String principalId, ITransaction transaction) throws PortalException
principalId
- transaction
- DaoException
PortalException
void addOrUpdate(AccessControlList acl, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
void add(AccessControlList acl, ITransaction transaction) throws PortalException
PortalException
boolean exists(String aclId, ITransaction transaction) throws DaoException, PortalException
DaoException
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.