org.apache.jetspeed.layout.impl
Class RolesSecurityBehavior

java.lang.Object
  extended by org.apache.jetspeed.layout.impl.RolesSecurityBehavior
All Implemented Interfaces:
org.apache.jetspeed.layout.PortletActionSecurityBehavior

public class RolesSecurityBehavior
extends Object
implements org.apache.jetspeed.layout.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  List roles
           
 
Constructor Summary
RolesSecurityBehavior(List roles)
           
 
Method Summary
 boolean checkAccess(org.apache.jetspeed.request.RequestContext context, String action)
           
 boolean createNewPageOnEdit(org.apache.jetspeed.request.RequestContext context)
           
 boolean isCreateNewPageOnEditEnabled()
           
 boolean isPageQualifiedForCreateNewPageOnEdit(org.apache.jetspeed.request.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 List roles
Constructor Detail

RolesSecurityBehavior

public RolesSecurityBehavior(List roles)
Method Detail

checkAccess

public boolean checkAccess(org.apache.jetspeed.request.RequestContext context,
                           String action)
Specified by:
checkAccess in interface org.apache.jetspeed.layout.PortletActionSecurityBehavior

isCreateNewPageOnEditEnabled

public boolean isCreateNewPageOnEditEnabled()
Specified by:
isCreateNewPageOnEditEnabled in interface org.apache.jetspeed.layout.PortletActionSecurityBehavior

isPageQualifiedForCreateNewPageOnEdit

public boolean isPageQualifiedForCreateNewPageOnEdit(org.apache.jetspeed.request.RequestContext context)
Specified by:
isPageQualifiedForCreateNewPageOnEdit in interface org.apache.jetspeed.layout.PortletActionSecurityBehavior

createNewPageOnEdit

public boolean createNewPageOnEdit(org.apache.jetspeed.request.RequestContext context)
Specified by:
createNewPageOnEdit in interface org.apache.jetspeed.layout.PortletActionSecurityBehavior


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.