planetj.dataengine.action
Interface IActionObject

All Known Implementing Classes:
Field, Operation, Row, RowCollection

public interface IActionObject

Any object extending this interface allows for actions to be carried out upon the action object.


Method Summary
 AbstractAction createAction(java.lang.String name, ExecutingContext ec)
          Create an action for the given action name.
 java.lang.String getActionDefaultLocation()
          Get the location where this action is to be generated
 ActionDescriptor getActionDescriptor(AbstractAction action)
          Get an action descriptor for the given action type and name.
 IActionRequest getActionRequest(AbstractAction action, HttpServletRequest request, HttpServletResponse response)
          Get the magic request used to handle a given action.
 IActionRequest getActionRequest(AbstractAction action, java.lang.Object o, HttpServletRequest request, HttpServletResponse response)
          Get the magic request used to handle a given action.
 java.util.List getActions(ExecutingContext ec)
          Get a List of the actions this object supports.
 java.lang.Object handleAction(java.lang.String action, ExecutingContext ec)
          Check to see if this Row has child rows.
 boolean isActionApplicable(java.lang.String action, ExecutingContext ec)
          Check to see if an action is applicable for this object
 

Method Detail

getActionDescriptor

public ActionDescriptor getActionDescriptor(AbstractAction action)
Get an action descriptor for the given action type and name.


handleAction

public java.lang.Object handleAction(java.lang.String action,
                                     ExecutingContext ec)
                              throws CMException
Check to see if this Row has child rows.

Throws:
CMException

getActions

public java.util.List getActions(ExecutingContext ec)
Get a List of the actions this object supports.


createAction

public AbstractAction createAction(java.lang.String name,
                                   ExecutingContext ec)
Create an action for the given action name.


getActionDefaultLocation

public java.lang.String getActionDefaultLocation()
Get the location where this action is to be generated


getActionRequest

public IActionRequest getActionRequest(AbstractAction action,
                                       HttpServletRequest request,
                                       HttpServletResponse response)
Get the magic request used to handle a given action.


getActionRequest

public IActionRequest getActionRequest(AbstractAction action,
                                       java.lang.Object o,
                                       HttpServletRequest request,
                                       HttpServletResponse response)
Get the magic request used to handle a given action.


isActionApplicable

public boolean isActionApplicable(java.lang.String action,
                                  ExecutingContext ec)
                           throws CMException
Check to see if an action is applicable for this object

Throws:
CMException