Package com.jalios.jcms
Class WFRule
- java.lang.Object
-
- com.jalios.jcms.WFRule
-
public class WFRule extends java.lang.ObjectThis class represent a Workflow Rule.- Since:
- jcms-4.0.2
- Version:
- $Revision: 34194 $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREVISION
-
Constructor Summary
Constructors Constructor Description WFRule()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static booleancheckGroup(WKRole role, Group group, int currentWeight, Publication pub)protected static booleancheckGroupList(WKRole role, ObjectIntTreeMap grpVoteMap, Publication pub)protected static booleancheckMemberList(Publication pub, WKRole role, java.util.TreeSet<Member> mbrVoteSet)static booleancheckRule(java.util.Set<WFRole> roleSet, ObjectIntTreeMap grpVoteMap, java.util.TreeSet<Member> mbrVoteSet, Publication pub, Member mbr)This method determines whether a transition can be performed.
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkRule
public static boolean checkRule(java.util.Set<WFRole> roleSet, ObjectIntTreeMap grpVoteMap, java.util.TreeSet<Member> mbrVoteSet, Publication pub, Member mbr)
This method determines whether a transition can be performed.- Parameters:
roleSet- the set of WFRole bound to the transitiongrpVoteMap- an HashMap with Group as keys, and an int[] for value This HashMap represent the current state of vote in the WFNotes associated with a transitionmbrVoteSet- a list of memberpub- the publication to be checkedmbr- the member who performs this rule- Returns:
- true if the transition must be made, false instead
- Since:
- jcms-4.0.2
-
checkMemberList
protected static boolean checkMemberList(Publication pub, WKRole role, java.util.TreeSet<Member> mbrVoteSet)
-
checkGroupList
protected static boolean checkGroupList(WKRole role, ObjectIntTreeMap grpVoteMap, Publication pub)
-
checkGroup
protected static boolean checkGroup(WKRole role, Group group, int currentWeight, Publication pub)
-
-