Class RightSet
java.lang.Object
com.webmethods.portal.service.meta2.access.RightSet
- All Implemented Interfaces:
IRightSet
Class RightSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add all rights to the right setboolean
static RightSet
fromBitMask
(int rightValues) Convert old rightset bitmask to a RightSetboolean
hasAllRights
(IRightSet rightSet) Whether this right set contains all rights from specified right setboolean
hasRight
(int rightValue) Whether this right set contains specified rightiterator()
Returns iterator over Integers values of rights containing in this right setvoid
Removes all rights from the specified right setvoid
Retains all rights from the specified right setvoid
setRight
(int rightValue) Add right to right setint
size()
How many rights this set containsReturns right set as collectionint
toInt()
Converts right set to int bitmask.int[]
Converts to int[] of right valuestoString()
void
unsetRight
(int rightValue) Remove right to right set
-
Constructor Details
-
RightSet
public RightSet() -
RightSet
-
RightSet
-
RightSet
public RightSet(int... rightValue) -
RightSet
Deprecated.useRightSet(int...)
orfromBitMask(int)
insteadDeprecated, useRightSet(int...)
instead- Parameters:
rightValues
- bitset of the rights to set
-
RightSet
-
-
Method Details
-
fromBitMask
Convert old rightset bitmask to a RightSet- Parameters:
rightValues
- bitset of the rights to set- Returns:
- RightSet containing the set rights
-
hasAllRights
Description copied from interface:IRightSet
Whether this right set contains all rights from specified right set- Specified by:
hasAllRights
in interfaceIRightSet
- Returns:
-
hasRight
public boolean hasRight(int rightValue) Description copied from interface:IRightSet
Whether this right set contains specified right -
setRight
public void setRight(int rightValue) Description copied from interface:IRightSet
Add right to right set -
addAll
Description copied from interface:IRightSet
Add all rights to the right set -
removeAll
Description copied from interface:IRightSet
Removes all rights from the specified right set -
retainAll
Description copied from interface:IRightSet
Retains all rights from the specified right set -
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) -
toString
-
unsetRight
public void unsetRight(int rightValue) Description copied from interface:IRightSet
Remove right to right set- Specified by:
unsetRight
in interfaceIRightSet
-
toIntArray
public int[] toIntArray()Description copied from interface:IRightSet
Converts to int[] of right values- Specified by:
toIntArray
in interfaceIRightSet
- Returns:
-
iterator
Description copied from interface:IRightSet
Returns iterator over Integers values of rights containing in this right set -
size
public int size()Description copied from interface:IRightSet
How many rights this set contains -
toCollection
Description copied from interface:IRightSet
Returns right set as collection- Specified by:
toCollection
in interfaceIRightSet
- Returns:
-
equals
-
RightSet(int...)
orfromBitMask(int)
instead