public class PermissionCollection
extends java.lang.Object
A collection may be user specific if a matching AccessSection uses "${username}" in
its name. The permissions granted in that section may only be granted to the username that
appears in the reference name, and also only if the user is a member of the relevant group.
| Modifier and Type | Class and Description |
|---|---|
static class |
PermissionCollection.Factory |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.util.List<PermissionRule>>> |
getDeclaredPermissions()
Obtain all declared permission rules that match the reference.
|
java.util.List<PermissionRule> |
getPermission(java.lang.String permissionName)
Obtain all permission rules for a given type of permission.
|
boolean |
isUserSpecific() |
public boolean isUserSpecific()
public java.util.List<PermissionRule> getPermission(java.lang.String permissionName)
permissionName - type of permission.public java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.util.List<PermissionRule>>> getDeclaredPermissions()
Permission.FORGE_SERVER, then it will not be represented in
the result even if getPermission(String) returns an empty list for the same
permission.