org.apache.jetspeed.decoration
Class PageActionAccess

java.lang.Object
  extended by org.apache.jetspeed.decoration.PageActionAccess
All Implemented Interfaces:
java.io.Serializable, PageEditAccess

public class PageActionAccess
extends java.lang.Object
implements PageEditAccess, java.io.Serializable

PageActionAccess

Version:
$Id: PageActionAccess.java 516448 2007-03-09 16:25:47Z ate $
Author:
Ate Douma
See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
PageActionAccess(boolean anonymous, Page page)
           
 
Method Summary
protected  boolean checkActionAccess(java.lang.String fragmentId, java.lang.String portletName, java.lang.String action)
           
protected  boolean checkEditPage(Page page)
           
 boolean checkPortletMode(java.lang.String fragmentId, java.lang.String portletName, javax.portlet.PortletMode mode)
           
 void checkReset(boolean anonymous, Page page)
           
 boolean checkWindowState(java.lang.String fragmentId, java.lang.String portletName, javax.portlet.WindowState state)
           
 boolean isAnonymous()
           
 boolean isEditAllowed()
           
 boolean isEditing()
           
 void setEditing(boolean editing)
          Switch the Page edit state.
 
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
Constructor Detail

PageActionAccess

public PageActionAccess(boolean anonymous,
                        Page page)
Method Detail

checkReset

public void checkReset(boolean anonymous,
                       Page page)

isAnonymous

public boolean isAnonymous()

isEditAllowed

public boolean isEditAllowed()
Specified by:
isEditAllowed in interface PageEditAccess
Returns:
true if page editing is allowed

isEditing

public boolean isEditing()
Specified by:
isEditing in interface PageEditAccess
Returns:
true if page in edit mode

setEditing

public void setEditing(boolean editing)
Description copied from interface: PageEditAccess
Switch the Page edit state.

Specified by:
setEditing in interface PageEditAccess
Parameters:
editing - intended Page edit state

checkPortletMode

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

checkWindowState

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

checkActionAccess

protected boolean checkActionAccess(java.lang.String fragmentId,
                                    java.lang.String portletName,
                                    java.lang.String action)

checkEditPage

protected boolean checkEditPage(Page page)


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