lumis.portal.acl
Class PortalAclManager

Package class diagram package PortalAclManager
java.lang.Object
  extended by lumis.util.security.acl.AclManager
      extended by lumis.portal.acl.PortalAclManager
All Implemented Interfaces:
IPortalAclManager, IConfigKeyChecker, IAclManager

public class PortalAclManager
extends AclManager
implements IPortalAclManager


Field Summary
 
Fields inherited from class lumis.util.security.acl.AclManager
aclCache
 
Fields inherited from interface lumis.portal.acl.IPortalAclManager
PERMISSION_DEFAULT, PORTAL_ACL_ID
 
Constructor Summary
PortalAclManager()
           
 
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
 
Methods inherited from interface lumis.portal.serialization.operation.IConfigKeyChecker
keyExists
 

Constructor Detail

PortalAclManager

public PortalAclManager()
Method Detail

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  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.