public abstract class AbstractRegionSet extends java.lang.Object implements ApplicableRegionSet
| Constructor and Description |
|---|
AbstractRegionSet() |
| Modifier and Type | Method and Description |
|---|---|
StateFlag.State |
queryState(RegionAssociable subject,
StateFlag... flags)
Get the (effective) value for a list of state flags.
|
boolean |
testState(RegionAssociable subject,
StateFlag... flags)
Test whether the (effective) value for a list of state flags equals
ALLOW. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRegions, isMemberOfAll, isOwnerOfAll, isVirtual, queryAllValues, queryValue, sizepublic boolean testState(@Nullable
RegionAssociable subject,
StateFlag... flags)
ApplicableRegionSetALLOW.
subject can be non-null to satisfy region group requirements,
otherwise it will be assumed that the caller that is not a member of any
regions. (Flags on a region can be changed so that they only apply
to certain users.) The subject argument is required if the
Flags.BUILD flag is in the list of flags.
testState in interface ApplicableRegionSetsubject - an optional subject, which would be used to determine the region groups that applyflags - a list of flags to checkALLOWApplicableRegionSet.queryState(RegionAssociable, StateFlag...)@Nullable public StateFlag.State queryState(@Nullable RegionAssociable subject, StateFlag... flags)
ApplicableRegionSetDENY overrides ALLOW,
and ALLOW overrides NONE. One flag may override another.
subject can be non-null to satisfy region group requirements,
otherwise it will be assumed that the caller that is not a member of any
regions. (Flags on a region can be changed so that they only apply
to certain users.) The subject argument is required if the
Flags.BUILD flag is in the list of flags.
queryState in interface ApplicableRegionSetsubject - an optional subject, which would be used to determine the region groups that applyflags - a list of flags to check