public final class ByNamePermissionCollection extends AbstractPermissionCollection
ALL, NONE
Constructor and Description |
---|
ByNamePermissionCollection(AbstractPermission<?> sourcePermission)
The source permission used to construct this collection.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doAdd(AbstractPermission<?> permission)
Perform the work of adding a permission.
|
Enumeration<Permission> |
elements()
Iterate over this permission collection.
|
boolean |
implies(Permission permission)
Determine if the permission is verified by this object.
|
Iterator<Permission> |
iterator()
Iterate over this permission collection.
|
int |
size()
Get the size of this permission collection.
|
add
isReadOnly, setReadOnly, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
and, checkPermission, from, from, from, from, not, or, toPermissionCollection, unless, xor
public ByNamePermissionCollection(AbstractPermission<?> sourcePermission)
sourcePermission
- the source permission (must not be null
)public int size()
AbstractPermissionCollection
size
in class AbstractPermissionCollection
public Iterator<Permission> iterator()
AbstractPermissionCollection
iterator
in interface Iterable<Permission>
iterator
in class AbstractPermissionCollection
null
)public Enumeration<Permission> elements()
AbstractPermissionCollection
elements
in class AbstractPermissionCollection
null
)protected void doAdd(AbstractPermission<?> permission)
AbstractPermissionCollection
AbstractPermissionCollection.add(Permission)
method was called.doAdd
in class AbstractPermissionCollection
permission
- the non-null
permissionpublic boolean implies(Permission permission)
PermissionVerifier
implies
in interface PermissionVerifier
implies
in class PermissionCollection
permission
- the permission to verify (must not be null
)true
if the permission is implied by this verifier, false
otherwiseCopyright © 2020 JBoss by Red Hat. All rights reserved.