Class PermissionGroup

java.lang.Object
hudson.security.PermissionGroup
All Implemented Interfaces:
Comparable<PermissionGroup>, Iterable<Permission>

public final class PermissionGroup extends Object implements Iterable<Permission>, Comparable<PermissionGroup>
Group of Permissions that share the same owner. Sortable by the owner class name.
  • Field Details

    • owner

      @NonNull public final Class owner
    • title

      public final org.jvnet.localizer.Localizable title
      Human readable title of this permission group. This should be short.
  • Constructor Details

    • PermissionGroup

      public PermissionGroup(@NonNull Class owner, org.jvnet.localizer.Localizable title) throws IllegalStateException
      Both creates a registers a new permission group.
      Parameters:
      owner - sets owner
      title - sets title
      Throws:
      IllegalStateException - if this group was already registered
    • PermissionGroup

      public PermissionGroup(String id, @NonNull Class owner, org.jvnet.localizer.Localizable title) throws IllegalStateException
      Both creates a registers a new permission group.
      Parameters:
      owner - sets owner
      title - sets title
      Throws:
      IllegalStateException - if this group was already registered
      Since:
      2.127
  • Method Details