public class PermissionCollection extends 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 |
|---|---|
Iterable<Map.Entry<String,List<PermissionRule>>> |
getDeclaredPermissions()
Obtain all declared permission rules that match the reference.
|
List<PermissionRule> |
getPermission(String permissionName)
Obtain all permission rules for a given type of permission.
|
boolean |
isUserSpecific() |
public boolean isUserSpecific()
public List<PermissionRule> getPermission(String permissionName)
permissionName - type of permission.public Iterable<Map.Entry<String,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.