Package lumis.portal.channel.acl
Class ChannelAclManager
- java.lang.Object
-
- lumis.util.security.acl.AclManager
-
- lumis.portal.channel.acl.ChannelAclManager
-
- All Implemented Interfaces:
IChannelAclManager
,IConfigKeyChecker
,IAclManager
public class ChannelAclManager extends AclManager implements IChannelAclManager
Manager for Channel's Acl operations- Since:
- 4.0.0
- Version:
- $Revision: 20530 $ $Date: 2017-09-21 16:29:30 -0300 (Thu, 21 Sep 2017) $
-
-
Field Summary
-
Fields inherited from class lumis.util.security.acl.AclManager
aclCache, checkRequiredPermissionsInternalFlag
-
Fields inherited from interface lumis.portal.channel.acl.IChannelAclManager
PERMISSION_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description ChannelAclManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
add(SessionConfig sessionConfig, ChannelConfig channelConfig, ITransaction transaction)
Add an Access Control List to the Channel.void
checkRequiredPermissions(AccessControlList acl)
Checks if the required permissions were given for someone.AccessControlList
get(SessionConfig sessionConfig, String channelId, ITransaction transaction)
Get the Channel's Access Control List Channel.protected AccessControlList
getAclInternal(SessionConfig sessionConfig, String channelId, ITransaction transaction)
protected int
getRequiredPermissions()
void
update(SessionConfig sessionConfig, String channelId, AccessControlList acl, ITransaction transaction)
Update the Channel'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, ChannelConfig channelConfig, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IChannelAclManager
Add an Access Control List to the Channel. To access this method, the user needs the PERMISSION_TYPE_MANAGE_CHANNEL_SECURITY permission in the channel.- Specified by:
add
in interfaceIChannelAclManager
- Returns:
- Returns the aclID of the channel.
- Throws:
ManagerException
PortalException
-
get
public AccessControlList get(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IChannelAclManager
Get the Channel's Access Control List Channel. To access this method, the user needs the PERMISSION_TYPE_MANAGE_CHANNEL_SECURITY permission in the channel.- Specified by:
get
in interfaceIChannelAclManager
- Specified by:
get
in classAclManager
- Returns:
- Returns the channel's ACL.
- Throws:
ManagerException
PortalException
-
update
public void update(SessionConfig sessionConfig, String channelId, AccessControlList acl, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IChannelAclManager
Update the Channel's ACL. To access this method, the user needs the PERMISSION_TYPE_MANAGE_CHANNEL_SECURITY permission in the channel.- Specified by:
update
in interfaceIChannelAclManager
- Throws:
ManagerException
PortalException
-
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig, String channelId, 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:IChannelAclManager
Checks if the required permissions were given for someone. If not an exception is thrown.- Specified by:
checkRequiredPermissions
in interfaceIChannelAclManager
- Parameters:
acl
- the acl to be checked.- Throws:
PortalException
- if the required permissions were not given.
-
-