|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.workflow.engine.AbstractReferrableObject
com.silverpeas.workflow.engine.model.ConsequenceImpl
public class ConsequenceImpl
Class implementing the representation of the <consequence> element of a Process Model.
| Constructor Summary | |
|---|---|
ConsequenceImpl()
Constructor |
|
| Method Summary | |
|---|---|
void |
addNotifiedUsers(QualifiedUsers notifyUsers)
Add a new notifiedUser to the collection |
void |
addTargetState(StateSetter stateSetter)
Add a new Target State to the collection |
void |
addUnsetState(StateSetter stateSetter)
Add a new Unset State to the collection |
QualifiedUsers |
createQualifiedUsers()
Create and return an object implementing QalifiedUsers |
StateSetter |
createStateSetter()
Create a new state Setter object |
Triggers |
createTriggers()
|
int |
getId()
|
String |
getItem()
Get the item on which the comparison will be processed |
String |
getKey()
This method has to be implemented by the referrable object it has to compute the unique key |
boolean |
getKill()
Get the flag that specifies if instance has to be removed |
List<QualifiedUsers> |
getNotifiedUsers()
Get all the users that have to be notified |
String |
getOperator()
Get the operator used to compare item and value |
AbstractDescriptor |
getParent()
|
int |
getStep()
|
State |
getTargetState(String strStateName)
Get the target state with the given state name |
State[] |
getTargetStates()
Get the target states |
Triggers |
getTriggers()
|
State |
getUnsetState(String strStateName)
Get the state to un-set with the given state name |
State[] |
getUnsetStates()
Get the states to unset |
String |
getValue()
Get the value to compare with item |
boolean |
hasId()
|
boolean |
isVerified(String itemValue)
Check if the consequence is verified or not |
Iterator<QualifiedUsers> |
iterateNotifiedUsers()
|
Iterator<StateSetter> |
iterateTargetState()
Iterate through Target States. |
Iterator<StateSetter> |
iterateUnsetState()
Iterate through Unset States. |
void |
setId(int id)
*********** Implemented methods **************************************** |
void |
setItem(String string)
Set the item on which the comparison will be processed |
void |
setKill(boolean kill)
Set the flag that specifies if instance has to be removed |
void |
setNotifiedUsers(List<QualifiedUsers> notifiedUsersList)
Set all the users that have to be notified |
void |
setOperator(String string)
Set the operator used to compare item and value |
void |
setParent(AbstractDescriptor parent)
|
void |
setStep(int id)
|
void |
setTriggers(Triggers triggers)
|
void |
setValue(String string)
Set the value to compare with item |
| Methods inherited from class com.silverpeas.workflow.engine.AbstractReferrableObject |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsequenceImpl()
| Method Detail |
|---|
public State getTargetState(String strStateName)
Consequence
getTargetState in interface ConsequencestrStateName - the name of the state
null if not foundpublic State[] getTargetStates()
getTargetStates in interface Consequencepublic void addTargetState(StateSetter stateSetter)
Consequence
addTargetState in interface ConsequencestateSetter - object to be addedpublic StateSetter createStateSetter()
Consequence
createStateSetter in interface Consequencepublic Iterator<StateSetter> iterateTargetState()
Consequence
iterateTargetState in interface Consequencepublic Iterator<QualifiedUsers> iterateNotifiedUsers()
public State getUnsetState(String strStateName)
Consequence
getUnsetState in interface ConsequencestrStateName - the name of the state
null if not foundpublic State[] getUnsetStates()
getUnsetStates in interface Consequencepublic void addUnsetState(StateSetter stateSetter)
Consequence
addUnsetState in interface ConsequencestateSetter - object to be addedpublic Iterator<StateSetter> iterateUnsetState()
Consequence
iterateUnsetState in interface Consequencepublic boolean getKill()
getKill in interface Consequencepublic void setKill(boolean kill)
setKill in interface Consequencekill - true if instance has to be removedpublic List<QualifiedUsers> getNotifiedUsers()
getNotifiedUsers in interface Consequencepublic void setNotifiedUsers(List<QualifiedUsers> notifiedUsersList)
setNotifiedUsers in interface ConsequenceQualifiedUsers - object containing notified userspublic QualifiedUsers createQualifiedUsers()
public String getItem()
Consequence
getItem in interface Consequencepublic String getOperator()
Consequence
getOperator in interface Consequencepublic String getValue()
Consequence
getValue in interface Consequencepublic boolean isVerified(String itemValue)
isVerified in interface ConsequenceitemValue - - the value of the folder item (specified in xml attribute 'item'
public void setItem(String string)
Consequence
setItem in interface Consequencepublic void setOperator(String string)
Consequence
setOperator in interface Consequencepublic void setValue(String string)
Consequence
setValue in interface Consequencepublic void setStep(int id)
public int getStep()
public Triggers createTriggers()
createTriggers in interface Consequencepublic Triggers getTriggers()
getTriggers in interface Consequencepublic void setTriggers(Triggers triggers)
public void setId(int id)
setId in interface AbstractDescriptorpublic int getId()
getId in interface AbstractDescriptorpublic void setParent(AbstractDescriptor parent)
setParent in interface AbstractDescriptorpublic AbstractDescriptor getParent()
getParent in interface AbstractDescriptorpublic boolean hasId()
hasId in interface AbstractDescriptorpublic String getKey()
AbstractReferrableObject
getKey in interface ReferrableObjectIntfgetKey in class AbstractReferrableObjectequals,
hashCodepublic void addNotifiedUsers(QualifiedUsers notifyUsers)
Consequence
addNotifiedUsers in interface Consequence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||