Class AllowableActionSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<AllowableAction>
com.foreach.across.modules.spring.security.actions.AllowableActionSet
- All Implemented Interfaces:
AllowableActions,Serializable,Cloneable,Iterable<AllowableAction>,Collection<AllowableAction>,Set<AllowableAction>
Fixed set of
AllowableActions.
This implementation can also be used to convert a transient
AllowableActions implementation - for example one
that evaluates every call against the security principal at that moment - to a fixed set.- Author:
- Arne Vandamme
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAllowableActionSet(AllowableAction... allowableActions) AllowableActionSet(Iterable<? extends AllowableAction> actions) AllowableActionSet(String... actionIds) AllowableActionSet(Collection<? extends AllowableAction> c) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(AllowableAction action) Checks if a certain action is allowed by verifying it is present in the collection.Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
AllowableActionSet
public AllowableActionSet() -
AllowableActionSet
-
AllowableActionSet
-
AllowableActionSet
-
AllowableActionSet
-
-
Method Details
-
contains
Description copied from interface:AllowableActionsChecks if a certain action is allowed by verifying it is present in the collection.- Specified by:
containsin interfaceAllowableActions- Parameters:
action- that should be checked- Returns:
- true if the action is allowed
-