org.apache.jetspeed.velocity
Class PageActionAccess

java.lang.Object
  extended byorg.apache.jetspeed.velocity.PageActionAccess
All Implemented Interfaces:
Serializable

public class PageActionAccess
extends Object
implements Serializable

PageActionAccess

Version:
$Id: PageActionAccess.java 188506 2005-04-21 08:50:37Z ate $
Author:
Ate Douma
See Also:
Serialized Form

Nested Class Summary
private static class PageActionAccess.ActionAccess
           
 
Field Summary
private  boolean anonymous
           
private  boolean editAllowed
           
private  HashMap fragmentActionAccess
           
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
PageActionAccess(boolean anonymous, org.apache.jetspeed.om.page.Page page)
           
 
Method Summary
protected  boolean checkActionAccess(String fragmentId, String portletName, String action)
           
protected  boolean checkEditPage(org.apache.jetspeed.om.page.Page page)
           
protected  boolean checkPermission(String resource, String action)
          Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.
 boolean checkPortletMode(String fragmentId, String portletName, javax.portlet.PortletMode mode)
           
 void checkReset(boolean anonymous, org.apache.jetspeed.om.page.Page page)
           
 boolean checkWindowState(String fragmentId, String portletName, javax.portlet.WindowState state)
           
protected  int getActionMask(String action)
           
 boolean isAnonymous()
           
 boolean isEditAllowed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log

anonymous

private boolean anonymous

editAllowed

private boolean editAllowed

fragmentActionAccess

private HashMap fragmentActionAccess
Constructor Detail

PageActionAccess

public PageActionAccess(boolean anonymous,
                        org.apache.jetspeed.om.page.Page page)
Method Detail

checkReset

public void checkReset(boolean anonymous,
                       org.apache.jetspeed.om.page.Page page)

isAnonymous

public boolean isAnonymous()

isEditAllowed

public boolean isEditAllowed()

checkPortletMode

public boolean checkPortletMode(String fragmentId,
                                String portletName,
                                javax.portlet.PortletMode mode)

checkWindowState

public boolean checkWindowState(String fragmentId,
                                String portletName,
                                javax.portlet.WindowState state)

checkActionAccess

protected boolean checkActionAccess(String fragmentId,
                                    String portletName,
                                    String action)

checkPermission

protected boolean checkPermission(String resource,
                                  String action)
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.

Parameters:
resource - The fully qualified resource name of the portlet (PA::portletName)
action - The action to perform on this resource (i.e. view, edit, help, max, min...)
Returns:
true if the action is allowed, false if it is not

checkEditPage

protected boolean checkEditPage(org.apache.jetspeed.om.page.Page page)

getActionMask

protected int getActionMask(String action)
                     throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException


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