Package lumis.portal.group.acl
Class GroupAclManager
- java.lang.Object
-
- lumis.util.security.acl.AclManager
-
- lumis.portal.group.acl.GroupAclManager
-
- All Implemented Interfaces:
IGroupAclManager
,IConfigKeyChecker
,IAclManager
public class GroupAclManager extends AclManager implements IGroupAclManager
Manage Group ACLs.- Since:
- 4.0.6
- Version:
- $Revision: 9647 $ $Date: 2008-08-06 16:37:36 -0300 (Wed, 06 Aug 2008) $
-
-
Field Summary
-
Fields inherited from class lumis.util.security.acl.AclManager
aclCache, checkRequiredPermissionsInternalFlag
-
Fields inherited from interface lumis.portal.group.acl.IGroupAclManager
PERMISSION_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description GroupAclManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
add(SessionConfig sessionConfig, GroupConfig groupConfig, ITransaction transaction)
Add an Access Control List to the Group.void
checkRequiredPermissions(AccessControlList acl)
Checks if the required permissions were given for someone.AccessControlList
get(SessionConfig sessionConfig, java.lang.String groupId, ITransaction transaction)
Get the Group's Access Control List.protected AccessControlList
getAclInternal(SessionConfig sessionConfig, java.lang.String groupId, ITransaction transaction)
protected int
getRequiredPermissions()
void
update(SessionConfig sessionConfig, java.lang.String groupId, AccessControlList acl, ITransaction transaction)
Update the Groups'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
-
add
public java.lang.String add(SessionConfig sessionConfig, GroupConfig groupConfig, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IGroupAclManager
Add an Access Control List to the Group. To access this method, the user needs the PERMISSION_TYPE_MANAGE_GROUP_SECURITY permission in the group.- Specified by:
add
in interfaceIGroupAclManager
- Throws:
ManagerException
PortalException
-
get
public AccessControlList get(SessionConfig sessionConfig, java.lang.String groupId, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IGroupAclManager
Get the Group's Access Control List. To access this method, the user needs the PERMISSION_TYPE_MANAGE_GROUP_SECURITY permission in the group.- Specified by:
get
in interfaceIGroupAclManager
- Specified by:
get
in classAclManager
- Returns:
- Returns the AccessControlList.
- Throws:
ManagerException
PortalException
-
update
public void update(SessionConfig sessionConfig, java.lang.String groupId, AccessControlList acl, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IGroupAclManager
Update the Groups's ACL. To access this method, the user needs the PERMISSION_TYPE_MANAGE_GROUP_SECURITY permission in the group.- Specified by:
update
in interfaceIGroupAclManager
- Throws:
ManagerException
PortalException
-
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig, java.lang.String groupId, ITransaction transaction) throws ManagerException, PortalException
- Specified by:
getAclInternal
in classAclManager
- Throws:
ManagerException
PortalException
-
getRequiredPermissions
protected int getRequiredPermissions() throws PortalException
- Specified by:
getRequiredPermissions
in classAclManager
- Throws:
PortalException
-
checkRequiredPermissions
public void checkRequiredPermissions(AccessControlList acl) throws PortalException
Description copied from interface:IGroupAclManager
Checks if the required permissions were given for someone. If not an exception is thrown.- Specified by:
checkRequiredPermissions
in interfaceIGroupAclManager
- Parameters:
acl
- the acl to be checked.- Throws:
PortalException
- if the required permissions were not given.
-
-