org.apache.jetspeed.layout.impl
Class RolesSecurityBehavior
java.lang.Object
org.apache.jetspeed.layout.impl.RolesSecurityBehavior
- All Implemented Interfaces:
- PortletActionSecurityBehavior
public class RolesSecurityBehavior
- extends java.lang.Object
- implements PortletActionSecurityBehavior
Abstracted behavior of security checks for portlet actions
- Version:
- $Id: $
- Author:
- David Sean Taylor
Field Summary |
protected org.apache.commons.logging.Log |
log
|
protected java.util.List |
roles
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.apache.commons.logging.Log log
roles
protected java.util.List roles
RolesSecurityBehavior
public RolesSecurityBehavior(java.util.List roles)
checkAccess
public boolean checkAccess(RequestContext context,
java.lang.String action)
- Specified by:
checkAccess
in interface PortletActionSecurityBehavior
isCreateNewPageOnEditEnabled
public boolean isCreateNewPageOnEditEnabled()
- Specified by:
isCreateNewPageOnEditEnabled
in interface PortletActionSecurityBehavior
isPageQualifiedForCreateNewPageOnEdit
public boolean isPageQualifiedForCreateNewPageOnEdit(RequestContext context)
- Specified by:
isPageQualifiedForCreateNewPageOnEdit
in interface PortletActionSecurityBehavior
createNewPageOnEdit
public boolean createNewPageOnEdit(RequestContext context)
- Specified by:
createNewPageOnEdit
in interface PortletActionSecurityBehavior
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.