|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.dataengine.action.AbstractAction
An Action contains logic to carry out some action on an Object.
Field Summary | |
static java.lang.String |
DEFAULT_TYPE
Type of action subclasses are. |
Constructor Summary | |
AbstractAction()
|
Method Summary | |
java.lang.Object |
clone()
|
AbstractAction |
cloneAction()
|
ActionDescriptor |
getDefaultDescriptor()
Get the default action descriptor for this action. |
abstract java.lang.String |
getDefaultLocation()
Get the default location where this action is to be generated |
ActionDescriptor |
getDescriptor()
Get the descriptor for this action. |
java.util.List |
getDetailsLocations()
Gets the locations where this action should be generated on the details page |
java.util.List |
getDetailsModes()
Gets the modes for which this action can be displayed in the details screen. |
java.lang.String |
getLocation()
Deprecated. Replaced with getLocations(), since there could be more than one |
java.util.List |
getLocations()
Get the locations where this action is to be generated (on the results screen). |
abstract java.lang.String |
getName()
Subclasses may override if necessary. |
java.lang.String |
getType()
Subclasses may override if necessary. |
java.lang.Object |
handleAction(ExecutingContext ec)
Subclasses need to provide logic to handle the action they wish to perform. |
java.lang.Object |
handleAction(java.lang.Object o)
Subclasses need to provide logic to handle the action they wish to perform. |
abstract java.lang.Object |
handleAction(java.lang.Object o,
ExecutingContext ec)
Subclasses need to provide logic to handle the action they wish to perform. |
void |
setDescriptor(ActionDescriptor descriptor)
Set the descriptor for this action. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_TYPE
Constructor Detail |
public AbstractAction()
Method Detail |
public ActionDescriptor getDescriptor()
public java.util.List getDetailsLocations()
public java.util.List getDetailsModes()
public java.lang.Object clone()
public AbstractAction cloneAction()
public ActionDescriptor getDefaultDescriptor()
public abstract java.lang.String getDefaultLocation()
public java.lang.String getLocation()
public java.util.List getLocations()
public abstract java.lang.String getName()
public java.lang.String getType()
public final java.lang.Object handleAction(ExecutingContext ec) throws CMException
ec
- context in which code is running
CMException
public final java.lang.Object handleAction(java.lang.Object o) throws CMException
o
- Object to perform the action on
CMException
public abstract java.lang.Object handleAction(java.lang.Object o, ExecutingContext ec) throws CMException
o
- Object to perform the action on
CMException
public void setDescriptor(ActionDescriptor descriptor)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |