Class NameSetPermissionCollection

All Implemented Interfaces:
Serializable, Iterable<Permission>, PermissionVerifier

public abstract class NameSetPermissionCollection extends AbstractPermissionCollection
A permission collection for permissions with a finite set of names, which is based on a simple bit set. In this type of collection, each bit represents a unique permission of a given name. This type is not suitable for permissions with actions.
Author:
David M. Lloyd
See Also:
  • Method Details

    • newInstance

      public static AbstractPermissionCollection newInstance(AbstractNameSetOnlyPermission<?> sourcePermission)
      Construct a new instance. The name enumeration is pulled from the source permission object.
      Parameters:
      sourcePermission - the source permission object (must not be null)
      Returns:
      the permission collection
    • newInstance

      public static AbstractPermissionCollection newInstance(AbstractPermission<?> sourcePermission, StringEnumeration nameEnumeration)
      Construct a new instance.
      Parameters:
      sourcePermission - the source permission object (must not be null)
      nameEnumeration - the name enumeration for this permission type (must not be null)
      Returns:
      the permission collection