com.jalios.jcms
Class WFRule

java.lang.Object
  extended by com.jalios.jcms.WFRule

public class WFRule
extends Object

This class represent a Workflow Rule.

Since:
jcms-4.0.2
Version:
$Revision: 30556 $

Field Summary
static String REVISION
           
 
Constructor Summary
WFRule()
           
 
Method Summary
protected static boolean checkGroup(WKRole role, Group group, int currentWeight, Publication pub)
           
protected static boolean checkGroupList(WKRole role, ObjectIntTreeMap grpVoteMap, Publication pub)
           
protected static boolean checkMemberList(Publication pub, WKRole role, TreeSet<Member> mbrVoteSet)
           
static boolean checkRule(Set<WFRole> roleSet, ObjectIntTreeMap grpVoteMap, TreeSet<Member> mbrVoteSet, Publication pub, Member mbr)
          This method determines whether a transition can be performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

WFRule

public WFRule()
Method Detail

checkRule

public static boolean checkRule(Set<WFRole> roleSet,
                                ObjectIntTreeMap grpVoteMap,
                                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 transition
grpVoteMap - 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 transition
mbrVoteSet - a list of member
pub - the publication to be checked
mbr - 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,
                                         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)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.