org.apache.jetspeed.velocity
Class PageActionAccess
java.lang.Object
org.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
Constructor Summary |
PageActionAccess(boolean anonymous,
org.apache.jetspeed.om.page.Page page)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
anonymous
private boolean anonymous
editAllowed
private boolean editAllowed
fragmentActionAccess
private HashMap fragmentActionAccess
PageActionAccess
public PageActionAccess(boolean anonymous,
org.apache.jetspeed.om.page.Page page)
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.