Class PolicyList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<PolicyIface>
-
- edu.cornell.mannlib.vitro.webapp.auth.policy.PolicyList
-
- All Implemented Interfaces:
PolicyIface,Serializable,Cloneable,Iterable<PolicyIface>,Collection<PolicyIface>,List<PolicyIface>,RandomAccess
- Direct Known Subclasses:
RequestPolicyList
public class PolicyList extends ArrayList<PolicyIface> implements PolicyIface
This is a List of Policy Objects that implements PolciyIface. The intent is to make it easy to query a list of policies for a PolicyDecision. The Policy objects in the PolicyList are queried for authorization in order and return the first AUTHORIZED or UNAUTHROIZED decision. INCONCLUSIVE or null decisions will be ignored and the next policy on the list will be queried.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description PolicyList()PolicyList(Collection<PolicyIface> policies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyDecisionisAuthorized(IdentifierBundle whoToAuth, RequestedAction whatToAuth)-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
PolicyList
public PolicyList()
-
PolicyList
public PolicyList(Collection<PolicyIface> policies)
-
-
Method Detail
-
isAuthorized
public PolicyDecision isAuthorized(IdentifierBundle whoToAuth, RequestedAction whatToAuth)
- Specified by:
isAuthorizedin interfacePolicyIface
-
-