Class BatchPermission

  • All Implemented Interfaces:
    Serializable, Guard, org.wildfly.security.permission.PermissionVerifier

    public final class BatchPermission
    extends org.wildfly.security.permission.AbstractNameSetOnlyPermission<BatchPermission>
    A general batch permission. The permission name must be one of the following:
    • start
    • stop
    • restart
    • abandon
    • read
    The actions are not used and should be empty or null.
    Author:
    David M. Lloyd, James R. Perkins
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface org.wildfly.security.permission.PermissionVerifier

        ALL, NONE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static BatchPermission forName​(String name)
      Get the permission with the given name.
      BatchPermission withName​(String name)  
      • Methods inherited from class org.wildfly.security.permission.AbstractNameSetOnlyPermission

        impliesName, nameEquals, nameHashCode, newPermissionCollection
      • Methods inherited from class org.wildfly.security.permission.AbstractNamedPermission

        equals, hashCode, implies, impliesName, impliesName, nameEquals, nameEquals
      • Methods inherited from class org.wildfly.security.permission.AbstractPermission

        equals, getActions, implies, requireEmptyActions
      • Methods inherited from interface org.wildfly.security.permission.PermissionVerifier

        and, checkPermission, not, or, toPermissionCollection, unless, xor
    • Constructor Detail

      • BatchPermission

        public BatchPermission​(String name)
        Construct a new instance.
        Parameters:
        name - the name of the permission
      • BatchPermission

        public BatchPermission​(String name,
                               String actions)
        Construct a new instance.
        Parameters:
        name - the name of the permission
        actions - the actions (should be empty)
    • Method Detail

      • forName

        public static BatchPermission forName​(String name)
        Get the permission with the given name.
        Parameters:
        name - the name (must not be null)
        Returns:
        the permission (not null)
        Throws:
        IllegalArgumentException - if the name is not valid