lumis.portal.serviceinstance.acl
Class ServiceInstanceAclManager
java.lang.Object
lumis.util.security.acl.AclManager
lumis.portal.serviceinstance.acl.ServiceInstanceAclManager
- All Implemented Interfaces:
- IConfigKeyChecker, IServiceInstanceAclManager, IAclManager
public class ServiceInstanceAclManager
- extends AclManager
- implements IServiceInstanceAclManager
Implements the Service Instance ACL Management Interface
- Since:
- 4.0.0
Method Summary |
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. |
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. |
protected AccessControlList |
getAclInternal(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
|
ServiceInstancePermissions |
getPermissions(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction)
|
protected int |
getRequiredPermissions()
|
void |
update(SessionConfig sessionConfig,
String serviceInstanceId,
AccessControlList acl,
ITransaction transaction)
Update the Service Instance'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 |
ServiceInstanceAclManager
public ServiceInstanceAclManager()
add
public String add(SessionConfig sessionConfig,
ServiceInstanceConfig serviceInstanceConfig,
ITransaction transaction)
throws ManagerException,
PortalException
- Description copied from interface:
IServiceInstanceAclManager
- Add an Access Control List to the Service Instance. To access this
method, the user needs the
PERMISSION_TYPE_MANAGE_SERVICE_INSTANCE_SECURITY permission in the
service instance.
- Specified by:
add
in interface IServiceInstanceAclManager
- Returns:
- String: New ACL Id
- Throws:
ManagerException
PortalException
get
public AccessControlList get(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
throws ManagerException,
PortalException
- Description copied from interface:
IServiceInstanceAclManager
- Get the Service Instance's Access Control List. To access this method,
the user needs the PERMISSION_TYPE_MANAGE_SERVICE_INSTANCE_SECURITY
permission in the service instance.
- Specified by:
get
in interface IServiceInstanceAclManager
- Specified by:
get
in class AclManager
- Returns:
- Returns the AccessControlList.
- Throws:
ManagerException
PortalException
update
public void update(SessionConfig sessionConfig,
String serviceInstanceId,
AccessControlList acl,
ITransaction transaction)
throws ManagerException,
PortalException
- Description copied from interface:
IServiceInstanceAclManager
- Update the Service Instance's ACL. To access this method, the user needs
the PERMISSION_TYPE_MANAGE_SERVICE_INSTANCE_SECURITY permission in the
service instance.
- Specified by:
update
in interface IServiceInstanceAclManager
- Throws:
ManagerException
PortalException
clearCache
public void clearCache(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
throws ManagerException,
PortalException
- Description copied from interface:
IServiceInstanceAclManager
- Reloads the ACL associated with the given serviceInstanceId.
- Specified by:
clearCache
in interface IServiceInstanceAclManager
- Throws:
ManagerException
PortalException
getPermissions
public ServiceInstancePermissions getPermissions(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction)
throws ManagerException,
PortalException
- Specified by:
getPermissions
in interface IServiceInstanceAclManager
- Returns:
- Returns the ServiceInstancePermissions.
- Throws:
ManagerException
PortalException
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
throws ManagerException,
PortalException
- Specified by:
getAclInternal
in class AclManager
- Throws:
ManagerException
PortalException
getRequiredPermissions
protected int getRequiredPermissions()
throws PortalException
- Specified by:
getRequiredPermissions
in class AclManager
- Throws:
PortalException
checkRequiredPermissions
public void checkRequiredPermissions(AccessControlList acl)
throws PortalException
- Description copied from interface:
IServiceInstanceAclManager
- Checks if the required permissions were given for someone. If not an
exception is thrown.
- Specified by:
checkRequiredPermissions
in interface IServiceInstanceAclManager
- Parameters:
acl
- the acl to be checked.
- Throws:
PortalException
- if the required permissions were not given.
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.