|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.modules.Assembler org.apache.turbine.modules.Action org.apache.turbine.modules.ActionEvent org.apache.jetspeed.modules.actions.portlets.PortletActionEvent org.apache.jetspeed.modules.actions.portlets.PortletAction org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
Provides standard portal and MVC related action functionality. Developers extend this class for thier own actions and provide implementations of the build*Context methods apropos to thier portlet needs.
Field Summary | |
protected static JetspeedLogger |
logger
Static initialization of the logger for this class |
Fields inherited from class org.apache.turbine.modules.ActionEvent |
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX |
Constructor Summary | |
GenericMVCAction()
Creates a new instance of GenericMVCAction |
Method Summary | |
protected void |
buildConfigureContext(Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData rundata)
Subclasses should override this method if they wish to provide their own customization behavior. |
protected void |
buildMaximizedContext(Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData rundata)
Subclasses should override this method if they wish to build specific content when maximized. |
protected void |
buildNormalContext(Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData rundata)
Subclasses must override this method to provide default behavior for the portlet action |
void |
checkAdministrativeAction(org.apache.turbine.util.RunData data)
Throws an exception if user attempts to perform unathorized action. |
void |
doPerform(org.apache.turbine.util.RunData rundata,
org.apache.velocity.context.Context context)
You SHOULD override this method and implement it in your action. |
java.lang.String |
getAttribute(java.lang.String attrName,
org.apache.velocity.context.Context context)
Convenience method for retreiving this action's PortletInstance attribute. |
java.lang.String |
getAttribute(java.lang.String attrName,
java.lang.String defaultValue,
org.apache.velocity.context.Context context)
Convenience method for retreiving this action's PortletInstance attribute. |
PortletInstance |
getPortletInstance(org.apache.velocity.context.Context context)
Convenience method for retreiving this action's PortletInstance |
protected void |
perform(org.apache.turbine.util.RunData rundata)
This overrides the default Action.perform() to execute the doEvent() method. |
void |
setAttribute(java.lang.String attrName,
java.lang.String value,
org.apache.velocity.context.Context context)
Convenience method for setting this action's PortletInstance attribute. |
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.PortletAction |
doPerform, getContext, getPortlet, getTemplate, resetTemplate, setTemplate, setTemplate |
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.PortletActionEvent |
executeEvents, fireEvent |
Methods inherited from class org.apache.turbine.modules.ActionEvent |
executeEvents, formatString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final JetspeedLogger logger
Constructor Detail |
public GenericMVCAction()
Method Detail |
protected void perform(org.apache.turbine.util.RunData rundata) throws java.lang.Exception
PortletActionEvent
perform
in class PortletActionEvent
rundata
- A Turbine RunData object.
java.lang.Exception
public void doPerform(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context) throws java.lang.Exception
PortletAction
doPerform
in class PortletAction
rundata
- Turbine information.context
- Context for web pages.
java.lang.Exception
protected void buildMaximizedContext(Portlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata) throws java.lang.Exception
buildMaximizedContext
in class PortletAction
java.lang.Exception
protected void buildConfigureContext(Portlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata) throws java.lang.Exception
buildConfigureContext
in class PortletAction
java.lang.Exception
protected void buildNormalContext(Portlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata) throws java.lang.Exception
buildNormalContext
in class PortletAction
java.lang.Exception
public PortletInstance getPortletInstance(org.apache.velocity.context.Context context)
public java.lang.String getAttribute(java.lang.String attrName, org.apache.velocity.context.Context context)
public java.lang.String getAttribute(java.lang.String attrName, java.lang.String defaultValue, org.apache.velocity.context.Context context)
public void setAttribute(java.lang.String attrName, java.lang.String value, org.apache.velocity.context.Context context) throws PortalPersistenceException
PortalPersistenceException
public void checkAdministrativeAction(org.apache.turbine.util.RunData data) throws java.lang.SecurityException
data
-
java.lang.SecurityException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |