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
AllowableAction
s.
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
ConstructorDescriptionAllowableActionSet
(AllowableAction... allowableActions) AllowableActionSet
(Iterable<? extends AllowableAction> actions) AllowableActionSet
(String... actionIds) AllowableActionSet
(Collection<? extends AllowableAction> c) -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(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, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:AllowableActions
Checks if a certain action is allowed by verifying it is present in the collection.- Specified by:
contains
in interfaceAllowableActions
- Parameters:
action
- that should be checked- Returns:
- true if the action is allowed
-