planetj.dataengine.action
Class NamedOperationAction
java.lang.Object
planetj.dataengine.action.AbstractAction
planetj.dataengine.action.ObjectAction
planetj.dataengine.action.NamedAction
planetj.dataengine.action.NamedOperationAction
- All Implemented Interfaces:
- java.lang.Cloneable, IHttpAction, IOperationAction, java.io.Serializable
- public class NamedOperationAction
- extends NamedAction
- implements IHttpAction, IOperationAction, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedOperationAction
public NamedOperationAction(java.lang.String actionName,
Operation actionObject)
createActionRequest
public IActionRequest createActionRequest(java.lang.Object o,
HttpServletRequest request,
HttpServletResponse response)
throws CMException
- Description copied from interface:
IHttpAction
- Get a magic request that may be used to execute this action.
- Specified by:
createActionRequest
in interface IHttpAction
- Throws:
CMException
getOperation
public Operation getOperation()
- Gets the Operation tied to this action.
getType
public java.lang.String getType()
- Description copied from class:
AbstractAction
- Subclasses may override if necessary. Doing so will allow subclasses
to have their own distinct property group descriptors.
- Overrides:
getType
in class AbstractAction
handleObjectAction
public final java.lang.Object handleObjectAction(IActionObject ao,
java.lang.Object o,
ExecutingContext ec)
throws CMException
- Ensure given object to perform action on is an Operation.
- Overrides:
handleObjectAction
in class ObjectAction
- Parameters:
o
- Object to perform the action on
- Throws:
CMException
handleOperationAction
public java.lang.Object handleOperationAction(Operation op,
java.lang.Object o,
ExecutingContext ec)
throws CMException
- Subclasses need to provide logic to handle the action
they wish to perform.
- Parameters:
op
- Operation to perform action on
- Throws:
CMException