org.apache.portals.graffito.security.impl
Class CmsAccessControllerImpl

java.lang.Object
  extended by org.apache.portals.graffito.security.impl.CmsAccessControllerImpl
All Implemented Interfaces:
CmsAccessController

public class CmsAccessControllerImpl
extends java.lang.Object
implements CmsAccessController

Default implementation for CmsAccessController

Author:
Lombart Christophe

Constructor Summary
CmsAccessControllerImpl(org.apache.portals.graffito.context.CmsRequestContextManager cmsRequestContextManager)
          Instantiate a new CmsAccessController with a CmsRequestContextManager
 
Method Summary
 boolean hasPermission(java.lang.Object object, java.lang.String actions)
          check if the Subject can do specific actions on the a cms object
 boolean hasPermission(java.lang.String uri, java.lang.String actions)
          Check permission for an cms object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsAccessControllerImpl

public CmsAccessControllerImpl(org.apache.portals.graffito.context.CmsRequestContextManager cmsRequestContextManager)
Instantiate a new CmsAccessController with a CmsRequestContextManager

Parameters:
cmsRequestContextManager -
Method Detail

hasPermission

public boolean hasPermission(java.lang.Object object,
                             java.lang.String actions)
Description copied from interface: CmsAccessController
check if the Subject can do specific actions on the a cms object

Specified by:
hasPermission in interface CmsAccessController
Parameters:
object - The object on which the permission has to be checked. This object can be a CmsObject, a Server or an HistoryElement
actions - a comma separated list of actions
Returns:
true if the action(s) are permitted
See Also:
CmsAccessController.hasPermission(java.lang.Object, java.lang.String)

hasPermission

public boolean hasPermission(java.lang.String uri,
                             java.lang.String actions)
Description copied from interface: CmsAccessController
Check permission for an cms object

Specified by:
hasPermission in interface CmsAccessController
Parameters:
uri - The uri assigned to the cms object
actions - The actions to checl (comma separeted list of actions)
Returns:
true if the user has sufficient permission
See Also:
CmsAccessController.hasPermission(java.lang.String, java.lang.String)


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.