Package lumis.portal.page.acl
Interface IPageAclManager
-
- All Superinterfaces:
IAclManager
,IConfigKeyChecker
- All Known Implementing Classes:
PageAclManager
@StableMinor(version="14.1", sinceVersion="4.0") public interface IPageAclManager 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, PageConfig pageConfig, ITransaction transaction)
Add an Access Control List to the Page.void
checkRequiredPermissions(AccessControlList acl)
Checks if the required permissions were given for someone.AccessControlList
get(SessionConfig sessionConfig, String pageId, ITransaction transaction)
Get the Page's Access Control List.void
update(SessionConfig sessionConfig, String pageId, AccessControlList acl, ITransaction transaction)
Update the Page'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
-
-
-
-
Field Detail
-
PERMISSION_DEFAULT
static final int PERMISSION_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
add
String add(SessionConfig sessionConfig, PageConfig pageConfig, ITransaction transaction) throws ManagerException, PortalException
Add an Access Control List to the Page. To access this method, the user needs the PERMISSION_TYPE_MANAGE_PAGE_SECURITY permission in the page.- Parameters:
sessionConfig
-pageConfig
-transaction
-- Returns:
- a String.
- Throws:
ManagerException
PortalException
-
get
AccessControlList get(SessionConfig sessionConfig, String pageId, ITransaction transaction) throws ManagerException, PortalException
Get the Page's Access Control List. To access this method, the user needs the PERMISSION_TYPE_VIEW_PAGE permission in the page.- Parameters:
sessionConfig
-pageId
-transaction
-- Returns:
- a AccessControlList.
- Throws:
ManagerException
PortalException
-
update
void update(SessionConfig sessionConfig, String pageId, AccessControlList acl, ITransaction transaction) throws ManagerException, PortalException
Update the Page's ACL. To access this method, the user needs the PERMISSION_TYPE_MANAGE_PAGE_SECURITY permission in the page.- Parameters:
sessionConfig
-pageId
-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.
-
-