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 Link icon

    • groupId Link icon

      protected int groupId
    • roleId Link icon

      protected int roleId
  • Constructor Details Link icon

    • ProcessGroup Link icon

      public ProcessGroup()
    • ProcessGroup Link icon

      public ProcessGroup(int groupId)
    • ProcessGroup Link icon

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

    • getRoleId Link icon

      public int getRoleId()
    • setRoleId Link icon

      public void setRoleId(int roleId)
    • getGroupId Link icon

      public int getGroupId()
    • setGroupId Link icon

      public void setGroupId(int groupId)
    • toGroupRolePair Link icon

      public String toGroupRolePair()
    • checkGroupAndRole Link icon

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

      public ProcessGroup createProcessGroup()
    • hashCode Link icon

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

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

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

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

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

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

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

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

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