public final class PermissionGroup extends Object implements Iterable<Permission>, Comparable<PermissionGroup>
Permission
s that share the same owner
.
Sortable by the owner class name.Modifier and Type | Field and Description |
---|---|
Class |
owner |
org.jvnet.localizer.Localizable |
title
Human readable title of this permission group.
|
Constructor and Description |
---|
PermissionGroup(Class owner,
org.jvnet.localizer.Localizable title) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PermissionGroup that) |
Permission |
find(String name)
Finds a permission that has the given name.
|
static PermissionGroup |
get(Class owner)
Gets the
PermissionGroup whose owner is the given class. |
static List<PermissionGroup> |
getAll()
Returns all the
PermissionGroup s available in the system. |
List<Permission> |
getPermissions()
Lists up all the permissions in this group.
|
boolean |
hasPermissionContainedBy(PermissionScope scope) |
Iterator<Permission> |
iterator() |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final Class owner
public final org.jvnet.localizer.Localizable title
public PermissionGroup(Class owner, org.jvnet.localizer.Localizable title)
public Iterator<Permission> iterator()
iterator
in interface Iterable<Permission>
public List<Permission> getPermissions()
public boolean hasPermissionContainedBy(PermissionScope scope)
public Permission find(String name)
public int compareTo(PermissionGroup that)
compareTo
in interface Comparable<PermissionGroup>
public int size()
public static List<PermissionGroup> getAll()
PermissionGroup
s available in the system.public static PermissionGroup get(Class owner)
PermissionGroup
whose owner
is the given class.Copyright © 2016. All rights reserved.