public class SimplePermission extends AAAObjectBase implements Permission
An immutable permission implementation
| Modifier and Type | Class and Description |
|---|---|
static class |
SimplePermission.Builder |
Permission.F| Constructor and Description |
|---|
SimplePermission() |
SimplePermission(String name,
boolean isDynamic) |
SimplePermission(String name,
Collection<? extends Permission> implied) |
SimplePermission(String name,
Collection<? extends Permission> implied,
boolean dynamic) |
| Modifier and Type | Method and Description |
|---|---|
Set<Permission> |
getImplied() |
Set<Permission> |
implied()
Return permissions that are implied by this permission.
|
boolean |
isDynamic()
Whether this right is dynamic.
|
equals, getName, getProperty, hashCode, propertyKeys, setProperty, toString, unsetPropertyclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitequals, getName, getProperty, hashCode, propertyKeys, setProperty, toString, unsetPropertyequals, toStringpublic SimplePermission()
public SimplePermission(String name, boolean isDynamic)
public SimplePermission(String name, Collection<? extends Permission> implied)
public SimplePermission(String name, Collection<? extends Permission> implied, boolean dynamic)
public boolean isDynamic()
PermissionWhether this right is dynamic. An example of dynamic right is a customer has right to access only orders owned by the customer, while order manager has right to access all orders which is a static right.
public Set<Permission> implied()
PermissionReturn permissions that are implied by this permission.
If a principal has been granted this permission then he/she automatically persist the implied permissions of this permission
public Set<Permission> getImplied()
Copyright © 2017–2020 OSGL (Open Source General Library). All rights reserved.