Class NameSetPermissionCollection

    • Method Detail

      • 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