Package lumis.portal.channel.acl
Interface IChannelAclManager
-
- All Superinterfaces:
IAclManager
,IConfigKeyChecker
- All Known Implementing Classes:
ChannelAclManager
@StableMinor(version="14.1", sinceVersion="4.0") public interface IChannelAclManager extends IAclManager
- Since:
- 4.0.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
-
-
Field Summary
Fields Modifier and Type Field Description static int
PERMISSION_DEFAULT
-
Method Summary
All Methods Instance Methods Abstract 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.void
update(SessionConfig sessionConfig, String channelId, AccessControlList acl, ITransaction transaction)
Update the Channel's ACL.-
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
String add(SessionConfig sessionConfig, ChannelConfig channelConfig, ITransaction transaction) throws ManagerException, PortalException
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.- Parameters:
sessionConfig
-channelConfig
-transaction
-- Returns:
- Returns the aclID of the channel.
- Throws:
ManagerException
PortalException
-
get
AccessControlList get(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
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.- Parameters:
sessionConfig
-channelId
-transaction
-- Returns:
- Returns the channel's ACL.
- Throws:
ManagerException
PortalException
-
update
void update(SessionConfig sessionConfig, String channelId, AccessControlList acl, ITransaction transaction) throws ManagerException, PortalException
Update the Channel's ACL. To access this method, the user needs the PERMISSION_TYPE_MANAGE_CHANNEL_SECURITY permission in the channel.- Parameters:
sessionConfig
-channelId
-acl
-transaction
-- Throws:
ManagerException
PortalException
-
checkRequiredPermissions
void checkRequiredPermissions(AccessControlList acl) throws PortalException
Checks if the required permissions were given for someone. If not an exception is thrown.- Parameters:
acl
- the acl to be checked.- Throws:
PortalException
- if the required permissions were not given.
-
-