|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.WFTransition
public class WFTransition
This class represents a transition in a Workflow
Field Summary | |
---|---|
static String |
REVISION
|
protected Set<WFRole> |
roleSet
|
protected WFState |
source
|
protected WFState |
target
|
Constructor Summary | |
---|---|
WFTransition(WFState source,
WFState target,
WFRole role)
Creates a new transition between two states for a given group |
Method Summary | |
---|---|
void |
addRole(WFRole role)
Adds a role to this transition |
boolean |
checkRule(ObjectIntTreeMap grpVoteMap,
TreeSet<Member> mbrVoteSet,
Publication publication,
Member loggedMember)
Perform the rule |
boolean |
contains(WFRole role)
Check if a given role can perform this transition |
Set<WFRole> |
getRoleSet()
|
WFState |
getSource()
|
WFState |
getTarget()
|
void |
removeRole(WFRole role)
Removes a role to this transition |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
protected WFState source
protected WFState target
protected Set<WFRole> roleSet
Constructor Detail |
---|
public WFTransition(WFState source, WFState target, WFRole role)
source
- the outgoing statetarget
- the incoming staterole
- the role authorized to perform this transitionMethod Detail |
---|
public String toString()
toString
in class Object
public boolean contains(WFRole role)
role
- the role
public void addRole(WFRole role)
role
- the role to addpublic void removeRole(WFRole role)
role
- the role to addpublic boolean checkRule(ObjectIntTreeMap grpVoteMap, TreeSet<Member> mbrVoteSet, Publication publication, Member loggedMember)
grpVoteMap
- contains the votes for the state changembrVoteSet
- contains the members who have votedpublication
- the publicationloggedMember
- the member who performs this rule
public WFState getSource()
public WFState getTarget()
public Set<WFRole> getRoleSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |