public static class Operations.List extends AbstractSet<Operations> implements Serializable
Operations
objects, that are
clearly disjunct with respect to their
Operations
.accept()
criteria.Operations
Constructor and Description |
---|
List() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Operations ops)
Add an Operations object to the list.
|
boolean |
contains(Object o) |
Operations |
findFirst(Principal source,
String user,
char key)
Fetch a fitting Operations object (if feasible).
|
Operations |
getOperations(Principal source,
CharSequence users,
char key)
Fetch or make an Operations object.
|
Iterator<Operations> |
iterator()
Enumerate the contained (lists of) operations.
|
int |
size()
The number of entries.
|
equals, hashCode, removeAll
addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public Operations getOperations(Principal source, CharSequence users, char key)
Operations
's
sole constructor and as
Operations.isSame()
.Operations
object, that has the same criteria according to
Operations.isSame()
.Operations
object is made, entered in the
list and returned.source
- the source of of the operation requestusers
- the list of acceptable user's nameskey
- (meaning a stroke from a real button in most using process
control applications) to execute the operation(s)public boolean add(Operations ops) throws NullPointerException
getOperations()
) after the removal of a list
element, the Iterator iterator()
will fetch the elements in
their adding sequence.remove()
places the new
element at the (sequence) spot of the removed one.add
in interface Collection<Operations>
add
in interface Set<Operations>
add
in class AbstractCollection<Operations>
NullPointerException
- if null shall be addedCollection.add(java.lang.Object)
public int size()
size
in interface Collection<Operations>
size
in interface Set<Operations>
size
in class AbstractCollection<Operations>
public final Iterator<Operations> iterator()
Operations.List
.iterator
in interface Iterable<Operations>
iterator
in interface Collection<Operations>
iterator
in interface Set<Operations>
iterator
in class AbstractCollection<Operations>
public boolean contains(Object o)
contains
in interface Collection<Operations>
contains
in interface Set<Operations>
contains
in class AbstractCollection<Operations>
public Operations findFirst(Principal source, String user, char key)
Operations
object from this list
fulfilling the criteria of
Operations
.accept(source, user, key)
.iterator()
.source
- of the actual action demand; null means ignore as criterion.
(non null must be the same object as ACLentry.getPrincipal()
)user
- requesting user (account), must be in the list;
null means ignore as criterion.key
- The key belonging to the operation request; 0 means not a
criterionOperations.accept(java.security.Principal, java.lang.String, char)