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
Method Summary |
void |
add(SessionConfig sessionConfig,
PageConfig pageTemplateConfig,
ITransaction transaction)
Add an Access Control List to the Page. |
AccessControlList |
get(SessionConfig sessionConfig,
String pageTemplateId,
ITransaction transaction)
Get the Page Template's Access Control List. |
protected AccessControlList |
getAclInternal(SessionConfig sessionConfig,
String pageTemplateId,
ITransaction transaction)
|
protected int |
getRequiredPermissions()
|
void |
parentAclUpdated(SessionConfig sessionConfig,
String parentChannelId,
AccessControlList parentChannelAcl,
ITransaction transaction)
Update Page Template's inheriting permissions. |
void |
setInheritance(SessionConfig sessionConfig,
String pageTemplateId,
boolean inherit,
ITransaction transaction)
Specifies if the page template inherits its parent channel`s ACL. |
void |
update(SessionConfig sessionConfig,
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 |
PageTemplateAclManager
public PageTemplateAclManager()
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 interface IPageTemplateAclManager
- Throws:
ManagerException
PortalException
get
public AccessControlList get(SessionConfig sessionConfig,
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 interface IPageTemplateAclManager
- Specified by:
get
in class AclManager
- Returns:
- Returns the AccessControlList.
- Throws:
ManagerException
PortalException
update
public void update(SessionConfig sessionConfig,
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 interface IPageTemplateAclManager
- Throws:
ManagerException
PortalException
setInheritance
public void setInheritance(SessionConfig sessionConfig,
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 interface IPageTemplateAclManager
- Throws:
ManagerException
PortalException
parentAclUpdated
public void parentAclUpdated(SessionConfig sessionConfig,
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 interface IPageTemplateAclManager
- Throws:
ManagerException
PortalException
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig,
String pageTemplateId,
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
Lumisportal 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.