|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.AbstractBean
org.beanfabrics.ValidatableBean
org.beanfabrics.model.AbstractPM
org.beanfabrics.model.AbstractOperationPM
org.beanfabrics.model.OperationPM
public class OperationPM
The Operation is a presentation model that maintains a list of
ExecutionMethod
s that will be executed whenever the
execute()
method is invoked.
Nested Class Summary | |
---|---|
class |
OperationPM.DefaultValidationRule
|
Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractPM |
---|
AbstractPM.PropertiesValidationRule |
Field Summary | |
---|---|
protected static java.lang.String |
KEY_MESSAGE_NO_EXECUTION_METHODS
|
Fields inherited from class org.beanfabrics.model.AbstractPM |
---|
KEY_MESSAGE_ONE_OR_MORE_INVALID |
Constructor Summary | |
---|---|
OperationPM()
|
Method Summary | |
---|---|
void |
addExecutionMethod(ExecutionMethod exe)
|
boolean |
containsExecutionMethod(ExecutionMethod exe)
|
boolean |
execute()
Executes this operation. |
java.util.Collection<ExecutionMethod> |
getExecutionMethods()
|
boolean |
hasExecutionMethods()
|
void |
removeExecutionMethod(ExecutionMethod exe)
|
void |
setExecutionMethods(java.util.Collection<ExecutionMethod> newExecutionMethods)
|
Methods inherited from class org.beanfabrics.model.AbstractOperationPM |
---|
check, getDescription, getIcon, getTitle, isEnabled, setDescription, setIcon, setIconUrl, setTitle |
Methods inherited from class org.beanfabrics.model.AbstractPM |
---|
getComparable, getContext, getSupportMap, revalidateProperties |
Methods inherited from class org.beanfabrics.ValidatableBean |
---|
getValidationState, getValidator, isValid, revalidate, setValidationState |
Methods inherited from class org.beanfabrics.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.beanfabrics.model.IOperationPM |
---|
getValidator |
Methods inherited from interface org.beanfabrics.Bean |
---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface org.beanfabrics.validation.Validatable |
---|
getValidationState, isValid, revalidate |
Methods inherited from interface org.beanfabrics.support.Supportable |
---|
getSupportMap |
Methods inherited from interface org.beanfabrics.context.ContextOwner |
---|
getContext |
Methods inherited from interface org.beanfabrics.HasComparable |
---|
getComparable |
Field Detail |
---|
protected static final java.lang.String KEY_MESSAGE_NO_EXECUTION_METHODS
Constructor Detail |
---|
public OperationPM()
Method Detail |
---|
public boolean execute() throws java.lang.Throwable
execute
in interface IOperationPM
execute
in class AbstractOperationPM
true
if this operation has been executed successfully
java.lang.Throwable
public java.util.Collection<ExecutionMethod> getExecutionMethods()
public void setExecutionMethods(java.util.Collection<ExecutionMethod> newExecutionMethods)
public void addExecutionMethod(ExecutionMethod exe)
public void removeExecutionMethod(ExecutionMethod exe)
public boolean containsExecutionMethod(ExecutionMethod exe)
public boolean hasExecutionMethods()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |