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>

public class AllowableActionSet extends HashSet<AllowableAction> implements AllowableActions
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 Details

    • AllowableActionSet

      public AllowableActionSet()
    • AllowableActionSet

      public AllowableActionSet(AllowableAction... allowableActions)
    • AllowableActionSet

      public AllowableActionSet(Collection<? extends AllowableAction> c)
    • AllowableActionSet

      public AllowableActionSet(Iterable<? extends AllowableAction> actions)
    • AllowableActionSet

      public AllowableActionSet(String... actionIds)
  • Method Details

    • contains

      public boolean contains(AllowableAction action)
      Description copied from interface: AllowableActions
      Checks if a certain action is allowed by verifying it is present in the collection.
      Specified by:
      contains in interface AllowableActions
      Parameters:
      action - that should be checked
      Returns:
      true if the action is allowed