Package lumis.portal.service.acl
Class ServiceAclManager
- java.lang.Object
-
- lumis.util.security.acl.AclManager
-
- lumis.portal.service.acl.ServiceAclManager
-
- All Implemented Interfaces:
IConfigKeyChecker
,IServiceAclManager
,IAclManager
public class ServiceAclManager extends AclManager implements IServiceAclManager
- Since:
- 4.0.0
- Version:
- $Revision: 8949 $ $Date: 2008-03-03 15:23:30 -0300 (Mon, 03 Mar 2008) $
-
-
Field Summary
-
Fields inherited from class lumis.util.security.acl.AclManager
aclCache, checkRequiredPermissionsInternalFlag
-
Fields inherited from interface lumis.portal.service.acl.IServiceAclManager
PERMISSION_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description ServiceAclManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
add(SessionConfig sessionConfig, ServiceConfig serviceConfig, ITransaction transaction)
Add an Access Control List to the Service.AccessControlList
get(SessionConfig sessionConfig, String serviceId, ITransaction transaction)
Get the Service's Access Control List.protected AccessControlList
getAclInternal(SessionConfig sessionConfig, String serviceId, ITransaction transaction)
protected int
getRequiredPermissions()
void
update(SessionConfig sessionConfig, String serviceId, AccessControlList acl, ITransaction transaction)
Update the Service'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 String add(SessionConfig sessionConfig, ServiceConfig serviceConfig, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IServiceAclManager
Add an Access Control List to the Service. To access this method, the user needs the PERMISSION_TYPE_MANAGE_SERVICE_SECURITY permission in the service.- Specified by:
add
in interfaceIServiceAclManager
- Throws:
ManagerException
PortalException
-
get
public AccessControlList get(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IServiceAclManager
Get the Service's Access Control List. To access this method, the user needs the PERMISSION_TYPE_VIEW_SERVICE permission in the serice.- Specified by:
get
in interfaceIServiceAclManager
- Specified by:
get
in classAclManager
- Returns:
- a AccessControlList.
- Throws:
ManagerException
PortalException
-
update
public void update(SessionConfig sessionConfig, String serviceId, AccessControlList acl, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IServiceAclManager
Update the Service's ACL. To access this method, the user needs the PERMISSION_TYPE_MANAGE_SERVICE_SECURITY permission in the service.- Specified by:
update
in interfaceIServiceAclManager
- Throws:
ManagerException
PortalException
-
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig, String serviceId, 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
-
-