Package com.jalios.jcms
Class WFTransition
- java.lang.Object
 - 
- com.jalios.jcms.WFTransition
 
 
- 
public class WFTransition extends java.lang.ObjectThis class represents a transition in a Workflow- Since:
 - jcms-2.1
 - Version:
 - $Revision: 72474 $
 - Author:
 - Olivier Dedieu
 
 
- 
- 
Constructor Summary
Constructors Constructor Description WFTransition(WFState source, WFState target, WFRole role)Creates a new transition between two states for a given group 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRole(WFRole role)Adds a role to this transitionbooleancheckRule(ObjectIntTreeMap grpVoteMap, java.util.TreeSet<Member> mbrVoteSet, Publication publication, Member loggedMember)Perform the rulebooleancontains(WFRole role)Check if a given role can perform this transitionjava.util.Set<WFRole>getRoleSet()WFStategetSource()WFStategetTarget()voidremoveRole(WFRole role)Removes a role to this transitionjava.lang.StringtoString() 
 - 
 
- 
- 
Field Detail
- 
REVISION
public static final java.lang.String REVISION
- See Also:
 - Constant Field Values
 
 
- 
source
protected WFState source
 
- 
target
protected WFState target
 
- 
roleSet
protected java.util.Set<WFRole> roleSet
 
 - 
 
- 
Method Detail
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
contains
public boolean contains(WFRole role)
Check if a given role can perform this transition- Parameters:
 role- the role- Returns:
 - true if the role can perform this transition
 - Since:
 - jcms-4.0.2
 
 
- 
addRole
public void addRole(WFRole role)
Adds a role to this transition- Parameters:
 role- the role to add- Since:
 - jcms-4.0.2
 
 
- 
removeRole
public void removeRole(WFRole role)
Removes a role to this transition- Parameters:
 role- the role to add- Since:
 - jcms-5.5.0
 
 
- 
checkRule
public boolean checkRule(ObjectIntTreeMap grpVoteMap, java.util.TreeSet<Member> mbrVoteSet, Publication publication, Member loggedMember)
Perform the rule- Parameters:
 grpVoteMap- contains the votes for the state changembrVoteSet- contains the members who have votedpublication- the publicationloggedMember- the member who performs this rule- Returns:
 - true if rule is ok false instead
 
 
- 
getSource
public WFState getSource()
- Returns:
 - the source state
 - Since:
 - jcms-2.1
 
 
- 
getTarget
public WFState getTarget()
- Returns:
 - the target state
 - Since:
 - jcms-2.1
 
 
- 
getRoleSet
public java.util.Set<WFRole> getRoleSet()
- Returns:
 - the set of role bound to this transition
 - Since:
 - jcms-4.0.2
 
 
 - 
 
 -