Class RequestPolicyList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<PolicyIface>
-
- edu.cornell.mannlib.vitro.webapp.auth.policy.PolicyList
-
- edu.cornell.mannlib.vitro.webapp.auth.policy.RequestPolicyList
-
- All Implemented Interfaces:
PolicyIface,Serializable,Cloneable,Iterable<PolicyIface>,Collection<PolicyIface>,List<PolicyIface>,RandomAccess
public class RequestPolicyList extends PolicyList
Allow us to store policies in a Request, in addition to those in the ServletContext- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description RequestPolicyList()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddPolicy(javax.servlet.ServletRequest request, PolicyIface policy)static PolicyListgetPolicies(javax.servlet.http.HttpServletRequest request)Get a copy of the current list of policies.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.auth.policy.PolicyList
isAuthorized
-
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
-
-
-
-
Method Detail
-
getPolicies
public static PolicyList getPolicies(javax.servlet.http.HttpServletRequest request)
Get a copy of the current list of policies. This includes the policies in the ServletContext, followed by any stored in the request. This method may return an empty list, but it never returns null.
-
addPolicy
public static void addPolicy(javax.servlet.ServletRequest request, PolicyIface policy)
-
-