Class WFRule


  • public class WFRule
    extends java.lang.Object
    This class represent a Workflow Rule.
    Since:
    jcms-4.0.2
    • Constructor Detail

      • WFRule

        public WFRule()
    • 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 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,
                                                 java.util.TreeSet<Member> mbrVoteSet)
      • checkGroup

        protected static boolean checkGroup​(WKRole role,
                                            Group group,
                                            int currentWeight,
                                            Publication pub)