java.lang.Object
com.webmethods.portal.service.meta2.access.RightSet
All Implemented Interfaces:
IRightSet

public class RightSet extends Object implements IRightSet
Class RightSet
  • Constructor Details

  • Method Details

    • fromBitMask

      public static RightSet fromBitMask(int rightValues)
      Convert old rightset bitmask to a RightSet
      Parameters:
      rightValues - bitset of the rights to set
      Returns:
      RightSet containing the set rights
    • hasAllRights

      public boolean hasAllRights(IRightSet rightSet)
      Description copied from interface: IRightSet
      Whether this right set contains all rights from specified right set
      Specified by:
      hasAllRights in interface IRightSet
      Returns:
    • hasRight

      public boolean hasRight(int rightValue)
      Description copied from interface: IRightSet
      Whether this right set contains specified right
      Specified by:
      hasRight in interface IRightSet
      Returns:
    • setRight

      public void setRight(int rightValue)
      Description copied from interface: IRightSet
      Add right to right set
      Specified by:
      setRight in interface IRightSet
    • addAll

      public void addAll(IRightSet rightSet)
      Description copied from interface: IRightSet
      Add all rights to the right set
      Specified by:
      addAll in interface IRightSet
    • removeAll

      public void removeAll(IRightSet rightSet)
      Description copied from interface: IRightSet
      Removes all rights from the specified right set
      Specified by:
      removeAll in interface IRightSet
    • retainAll

      public void retainAll(IRightSet rightSet)
      Description copied from interface: IRightSet
      Retains all rights from the specified right set
      Specified by:
      retainAll in interface IRightSet
    • toInt

      public int toInt()
      Description copied from interface: IRightSet
      Converts right set to int bitmask. This is compatibility method only first 30 rights will be present (those that fitst 30 bits of int excluding sign bit)
      Specified by:
      toInt in interface IRightSet
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • unsetRight

      public void unsetRight(int rightValue)
      Description copied from interface: IRightSet
      Remove right to right set
      Specified by:
      unsetRight in interface IRightSet
    • toIntArray

      public int[] toIntArray()
      Description copied from interface: IRightSet
      Converts to int[] of right values
      Specified by:
      toIntArray in interface IRightSet
      Returns:
    • iterator

      public Iterator<Integer> iterator()
      Description copied from interface: IRightSet
      Returns iterator over Integers values of rights containing in this right set
      Specified by:
      iterator in interface IRightSet
      Returns:
    • size

      public int size()
      Description copied from interface: IRightSet
      How many rights this set contains
      Specified by:
      size in interface IRightSet
      Returns:
    • toCollection

      public Collection<Integer> toCollection()
      Description copied from interface: IRightSet
      Returns right set as collection
      Specified by:
      toCollection in interface IRightSet
      Returns:
    • equals

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