public final class SimplePermissionCollection extends AbstractPermissionCollection
ALL, NONE
Constructor and Description |
---|
SimplePermissionCollection(AbstractPermission<?> sourcePermission)
Construct a new instance.
|
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 SimplePermissionCollection(AbstractPermission<?> sourcePermission)
sourcePermission
- the source permission for this collection (must not be null
)public int size()
AbstractPermissionCollection
size
in class AbstractPermissionCollection
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
otherwisepublic Iterator<Permission> iterator()
AbstractPermissionCollection
iterator
in interface Iterable<Permission>
iterator
in class AbstractPermissionCollection
null
)public Enumeration<Permission> elements()
AbstractPermissionCollection
elements
in class AbstractPermissionCollection
null
)Copyright © 2020 JBoss by Red Hat. All rights reserved.