Package lumis.portal.page.template.acl
Class PageTemplateAclManager
- java.lang.Object
-
- lumis.util.security.acl.AclManager
-
- lumis.portal.page.template.acl.PageTemplateAclManager
-
- All Implemented Interfaces:
IPageTemplateAclManager
,IConfigKeyChecker
,IAclManager
public class PageTemplateAclManager extends AclManager implements IPageTemplateAclManager
-
-
Field Summary
-
Fields inherited from class lumis.util.security.acl.AclManager
aclCache, checkRequiredPermissionsInternalFlag
-
Fields inherited from interface lumis.portal.page.template.acl.IPageTemplateAclManager
PERMISSION_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description PageTemplateAclManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SessionConfig sessionConfig, PageConfig pageTemplateConfig, ITransaction transaction)
Add an Access Control List to the Page.AccessControlList
get(SessionConfig sessionConfig, java.lang.String pageTemplateId, ITransaction transaction)
Get the Page Template's Access Control List.protected AccessControlList
getAclInternal(SessionConfig sessionConfig, java.lang.String pageTemplateId, ITransaction transaction)
protected int
getRequiredPermissions()
void
parentAclUpdated(SessionConfig sessionConfig, java.lang.String parentChannelId, AccessControlList parentChannelAcl, ITransaction transaction)
Update Page Template's inheriting permissions.void
setInheritance(SessionConfig sessionConfig, java.lang.String pageTemplateId, boolean inherit, ITransaction transaction)
Specifies if the page template inherits its parent channel`s ACL.void
update(SessionConfig sessionConfig, java.lang.String pageTemplateId, AccessControlList acl, ITransaction transaction)
Update the Page Template'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 void add(SessionConfig sessionConfig, PageConfig pageTemplateConfig, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IPageTemplateAclManager
Add an Access Control List to the Page. To access this method, the user needs the PERMISSION_TYPE_MANAGE_PAGE_TEMPLATE_SECURITY permission in the page template.- Specified by:
add
in interfaceIPageTemplateAclManager
- Throws:
ManagerException
PortalException
-
get
public AccessControlList get(SessionConfig sessionConfig, java.lang.String pageTemplateId, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IPageTemplateAclManager
Get the Page Template's Access Control List. To access this method, the user needs the PERMISSION_TYPE_VIEW_PAGE_TEMPLATE permission in the page template.- Specified by:
get
in interfaceIPageTemplateAclManager
- Specified by:
get
in classAclManager
- Returns:
- Returns the AccessControlList.
- Throws:
ManagerException
PortalException
-
update
public void update(SessionConfig sessionConfig, java.lang.String pageTemplateId, AccessControlList acl, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IPageTemplateAclManager
Update the Page Template's ACL. To access this method, the user needs the PERMISSION_TYPE_MANAGE_PAGE_TEMPLATE_SECURITY permission in the page template.- Specified by:
update
in interfaceIPageTemplateAclManager
- Throws:
ManagerException
PortalException
-
setInheritance
public void setInheritance(SessionConfig sessionConfig, java.lang.String pageTemplateId, boolean inherit, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IPageTemplateAclManager
Specifies if the page template inherits its parent channel`s ACL. To access this method, the user needs the PERMISSION_TYPE_MANAGE_PAGE_TEMPLATE_SECURITY permission in the page template.- Specified by:
setInheritance
in interfaceIPageTemplateAclManager
- Throws:
ManagerException
PortalException
-
parentAclUpdated
public void parentAclUpdated(SessionConfig sessionConfig, java.lang.String parentChannelId, AccessControlList parentChannelAcl, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IPageTemplateAclManager
Update Page Template's inheriting permissions. To access this method, the user needs the PERMISSION_TYPE_MANAGE_PAGE_TEMPLATE_SECURITY permission in the page.- Specified by:
parentAclUpdated
in interfaceIPageTemplateAclManager
- Throws:
ManagerException
PortalException
-
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig, java.lang.String pageTemplateId, 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
-
-