Package lumis.portal.acl
Class PortalAclManager
- java.lang.Object
-
- lumis.util.security.acl.AclManager
-
- lumis.portal.acl.PortalAclManager
-
- All Implemented Interfaces:
IPortalAclManager
,IConfigKeyChecker
,IAclManager
public class PortalAclManager extends AclManager implements IPortalAclManager
-
-
Field Summary
-
Fields inherited from class lumis.util.security.acl.AclManager
aclCache, checkRequiredPermissionsInternalFlag
-
Fields inherited from interface lumis.portal.acl.IPortalAclManager
PERMISSION_DEFAULT, PORTAL_ACL_ID
-
-
Constructor Summary
Constructors Constructor Description PortalAclManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkPermission(SessionConfig sessionConfig, IPermission permission, ITransaction transaction)
This method verifies if the permission is valid.AccessControlList
get(SessionConfig sessionConfig, String id, ITransaction transaction)
AccessControlList
get(SessionConfig sessionConfig, ITransaction transaction)
Get the Portal's Access Control List.protected AccessControlList
getAclInternal(SessionConfig sessionConfig, String ignoreItemId, ITransaction transaction)
protected AccessControlList
getAclInternal(SessionConfig sessionConfig, ITransaction transaction)
protected int
getRequiredPermissions()
void
update(SessionConfig sessionConfig, AccessControlList acl, ITransaction transaction)
Update the Portal's ACL.-
Methods inherited from class lumis.util.security.acl.AclManager
add, add, addOrUpdate, checkPermission, checkPermission, checkRequiredPermissionsInternal, cleanupInvalidData, clearCache, delete, deleteAclEntryByPrincipalId, deserialize, exists, keyExists, removeFromCache, serialize, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.util.security.acl.IAclManager
add, addOrUpdate, checkPermission, checkPermission, clearCache, delete, deleteAclEntryByPrincipalId, deserialize, exists, removeFromCache, serialize
-
Methods inherited from interface lumis.portal.serialization.operation.IConfigKeyChecker
keyExists
-
-
-
-
Method Detail
-
get
public AccessControlList get(SessionConfig sessionConfig, String id, ITransaction transaction) throws PortalException
- Specified by:
get
in classAclManager
- Throws:
PortalException
-
get
public AccessControlList get(SessionConfig sessionConfig, ITransaction transaction) throws PortalException
Description copied from interface:IPortalAclManager
Get the Portal's Access Control List. To access this method, the user needs the PERMISSION_TYPE_MANAGE_PORTAL_SECURITY permission in the page.- Specified by:
get
in interfaceIPortalAclManager
- Returns:
- Return the Access Control List of the user.
- Throws:
PortalException
-
update
public void update(SessionConfig sessionConfig, AccessControlList acl, ITransaction transaction) throws PortalException
Description copied from interface:IPortalAclManager
Update the Portal's ACL. To access this method, the user needs the PERMISSION_TYPE_MANAGE_PORTAL_SECURITY permission.- Specified by:
update
in interfaceIPortalAclManager
- Throws:
PortalException
-
checkPermission
public boolean checkPermission(SessionConfig sessionConfig, IPermission permission, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IPortalAclManager
This method verifies if the permission is valid.- Specified by:
checkPermission
in interfaceIPortalAclManager
- Returns:
- Returns true if the permission is valid and false it is denied.
- Throws:
ManagerException
PortalException
-
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig, String ignoreItemId, ITransaction transaction) throws PortalException
- Specified by:
getAclInternal
in classAclManager
- Throws:
PortalException
-
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
getRequiredPermissions
protected int getRequiredPermissions() throws PortalException
- Specified by:
getRequiredPermissions
in classAclManager
- Throws:
PortalException
-
-