lumis.portal.acl
Class PortalAclManager
java.lang.Object
lumis.util.security.acl.AclManager
lumis.portal.acl.PortalAclManager
- All Implemented Interfaces:
- IPortalAclManager, IConfigKeyChecker, IAclManager
public class PortalAclManager
- extends AclManager
- implements IPortalAclManager
Method Summary |
boolean |
checkPermission(SessionConfig sessionConfig,
IPermission permission,
ITransaction transaction)
This method verifies if the permission is valid. |
AccessControlList |
get(SessionConfig sessionConfig,
ITransaction transaction)
Get the Portal's Access Control List. |
AccessControlList |
get(SessionConfig sessionConfig,
String id,
ITransaction transaction)
|
protected AccessControlList |
getAclInternal(SessionConfig sessionConfig,
ITransaction transaction)
|
protected AccessControlList |
getAclInternal(SessionConfig sessionConfig,
String ignoreItemId,
ITransaction transaction)
|
protected int |
getRequiredPermissions()
|
void |
update(SessionConfig sessionConfig,
AccessControlList acl,
ITransaction transaction)
Update the Portal'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 |
PortalAclManager
public PortalAclManager()
get
public AccessControlList get(SessionConfig sessionConfig,
String id,
ITransaction transaction)
throws PortalException
- Specified by:
get
in class AclManager
- Throws:
PortalException
get
public AccessControlList get(SessionConfig sessionConfig,
ITransaction transaction)
throws PortalException
- Description copied from interface:
IPortalAclManager
- Get the Portal's Access Control List. To access this method, the user
needs the PERMISSION_TYPE_MANAGE_PORTAL_SECURITY permission in the page.
- Specified by:
get
in interface IPortalAclManager
- Returns:
- Return the Access Control List of the user.
- Throws:
PortalException
update
public void update(SessionConfig sessionConfig,
AccessControlList acl,
ITransaction transaction)
throws PortalException
- Description copied from interface:
IPortalAclManager
- Update the Portal's ACL. To access this method, the user needs the
PERMISSION_TYPE_MANAGE_PORTAL_SECURITY permission.
- Specified by:
update
in interface IPortalAclManager
- Throws:
PortalException
checkPermission
public boolean checkPermission(SessionConfig sessionConfig,
IPermission permission,
ITransaction transaction)
throws ManagerException,
PortalException
- Description copied from interface:
IPortalAclManager
- This method verifies if the permission is valid.
- Specified by:
checkPermission
in interface IPortalAclManager
- Returns:
- Returns true if the permission is valid and false it is denied.
- Throws:
ManagerException
PortalException
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig,
String ignoreItemId,
ITransaction transaction)
throws PortalException
- Specified by:
getAclInternal
in class AclManager
- Throws:
PortalException
getAclInternal
protected AccessControlList getAclInternal(SessionConfig sessionConfig,
ITransaction transaction)
throws PortalException
- Throws:
PortalException
getRequiredPermissions
protected int getRequiredPermissions()
throws PortalException
- Specified by:
getRequiredPermissions
in class AclManager
- Throws:
PortalException
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.