|
||||||||||
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 Consequence
strStateName
- the name of the state
null
if not foundpublic State[] getTargetStates()
getTargetStates
in interface Consequence
public void addTargetState(StateSetter stateSetter)
Consequence
addTargetState
in interface Consequence
stateSetter
- object to be addedpublic StateSetter createStateSetter()
Consequence
createStateSetter
in interface Consequence
public Iterator<StateSetter> iterateTargetState()
Consequence
iterateTargetState
in interface Consequence
public Iterator<QualifiedUsers> iterateNotifiedUsers()
public State getUnsetState(String strStateName)
Consequence
getUnsetState
in interface Consequence
strStateName
- the name of the state
null
if not foundpublic State[] getUnsetStates()
getUnsetStates
in interface Consequence
public void addUnsetState(StateSetter stateSetter)
Consequence
addUnsetState
in interface Consequence
stateSetter
- object to be addedpublic Iterator<StateSetter> iterateUnsetState()
Consequence
iterateUnsetState
in interface Consequence
public boolean getKill()
getKill
in interface Consequence
public void setKill(boolean kill)
setKill
in interface Consequence
kill
- true if instance has to be removedpublic List<QualifiedUsers> getNotifiedUsers()
getNotifiedUsers
in interface Consequence
public void setNotifiedUsers(List<QualifiedUsers> notifiedUsersList)
setNotifiedUsers
in interface Consequence
QualifiedUsers
- object containing notified userspublic QualifiedUsers createQualifiedUsers()
public String getItem()
Consequence
getItem
in interface Consequence
public String getOperator()
Consequence
getOperator
in interface Consequence
public String getValue()
Consequence
getValue
in interface Consequence
public boolean isVerified(String itemValue)
isVerified
in interface Consequence
itemValue
- - the value of the folder item (specified in xml attribute 'item'
public void setItem(String string)
Consequence
setItem
in interface Consequence
public void setOperator(String string)
Consequence
setOperator
in interface Consequence
public void setValue(String string)
Consequence
setValue
in interface Consequence
public void setStep(int id)
public int getStep()
public Triggers createTriggers()
createTriggers
in interface Consequence
public Triggers getTriggers()
getTriggers
in interface Consequence
public void setTriggers(Triggers triggers)
public void setId(int id)
setId
in interface AbstractDescriptor
public int getId()
getId
in interface AbstractDescriptor
public void setParent(AbstractDescriptor parent)
setParent
in interface AbstractDescriptor
public AbstractDescriptor getParent()
getParent
in interface AbstractDescriptor
public boolean hasId()
hasId
in interface AbstractDescriptor
public String getKey()
AbstractReferrableObject
getKey
in interface ReferrableObjectIntf
getKey
in class AbstractReferrableObject
equals
,
hashCode
public 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 |