org.apache.jetspeed.layout.impl
Class RolesSecurityBehavior

java.lang.Object
  extended by 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
           
 
Constructor Summary
RolesSecurityBehavior(java.util.List roles)
           
 
Method Summary
 boolean checkAccess(RequestContext context, java.lang.String action)
           
 boolean createNewPageOnEdit(RequestContext context)
           
 boolean isCreateNewPageOnEditEnabled()
           
 boolean isPageQualifiedForCreateNewPageOnEdit(RequestContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log

roles

protected java.util.List roles
Constructor Detail

RolesSecurityBehavior

public RolesSecurityBehavior(java.util.List roles)
Method Detail

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-2009 Apache Software Foundation. All Rights Reserved.