Class ProcessGroup

java.lang.Object
ru.bgcrm.model.process.ProcessGroup
All Implemented Interfaces:
Comparable<ProcessGroup>

public class ProcessGroup extends Object implements Comparable<ProcessGroup>
  • Field Details

    • groupId

      protected int groupId
    • roleId

      protected int roleId
  • Constructor Details

    • ProcessGroup

      public ProcessGroup()
    • ProcessGroup

      public ProcessGroup(int groupId)
    • ProcessGroup

      public ProcessGroup(int groupId, int roleId)
  • Method Details

    • getRoleId

      public int getRoleId()
    • setRoleId

      public void setRoleId(int roleId)
    • getGroupId

      public int getGroupId()
    • setGroupId

      public void setGroupId(int groupId)
    • toGroupRolePair

      public String toGroupRolePair()
    • checkGroupAndRole

      public boolean checkGroupAndRole(int groupId, int roleId)
    • createProcessGroup

      public ProcessGroup createProcessGroup()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(ProcessGroup o)
      Specified by:
      compareTo in interface Comparable<ProcessGroup>
    • serialize

      public static final String serialize(Set<ProcessGroup> processGroups)
    • toGroupSet

      public static final Set<Integer> toGroupSet(Set<ProcessGroup> processGroups)
    • toProcessGroupSet

      public static Set<ProcessGroup> toProcessGroupSet(Set<Integer> set)
    • toProcessGroupSet

      public static ProcessGroups toProcessGroupSet(Set<Integer> set, int roleId)
    • parseFromStringSet

      public static Set<ProcessGroup> parseFromStringSet(Set<String> values)
    • getGroupsWithRole

      public static Set<Integer> getGroupsWithRole(Set<ProcessGroup> processGroupSet, int role)
    • isGroupWithRoleExist

      public static boolean isGroupWithRoleExist(Set<ProcessGroup> processGroupSet, int group, int role)