Class FixedEntityAllowableActionsBuilder
java.lang.Object
com.foreach.across.modules.entity.actions.FixedEntityAllowableActionsBuilder
- All Implemented Interfaces:
EntityConfigurationAllowableActionsBuilder
public class FixedEntityAllowableActionsBuilder
extends Object
implements EntityConfigurationAllowableActionsBuilder
Implementation of
EntityConfigurationAllowableActionsBuilder
that
will always return the same set of AllowableAction
s.- Author:
- Arne Vandamme
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.foreach.across.modules.spring.security.actions.AllowableActions
DummyAllowableActions
that will reply positively for every action but cannot be iterated. -
Constructor Summary
ConstructorDescriptionFixedEntityAllowableActionsBuilder
(com.foreach.across.modules.spring.security.actions.AllowableActions allowableActions) -
Method Summary
Modifier and TypeMethodDescriptioncom.foreach.across.modules.spring.security.actions.AllowableActions
getAllowableActions
(EntityConfiguration<?> entityConfiguration) <V> com.foreach.across.modules.spring.security.actions.AllowableActions
getAllowableActions
(EntityConfiguration<V> entityConfiguration, V entity)
-
Field Details
-
DEFAULT_ALLOWABLE_ACTIONS
public static final com.foreach.across.modules.spring.security.actions.AllowableActions DEFAULT_ALLOWABLE_ACTIONSDummyAllowableActions
that will reply positively for every action but cannot be iterated.
-
-
Constructor Details
-
FixedEntityAllowableActionsBuilder
public FixedEntityAllowableActionsBuilder(com.foreach.across.modules.spring.security.actions.AllowableActions allowableActions)
-
-
Method Details
-
getAllowableActions
public com.foreach.across.modules.spring.security.actions.AllowableActions getAllowableActions(EntityConfiguration<?> entityConfiguration) - Specified by:
getAllowableActions
in interfaceEntityConfigurationAllowableActionsBuilder
-
getAllowableActions
public <V> com.foreach.across.modules.spring.security.actions.AllowableActions getAllowableActions(EntityConfiguration<V> entityConfiguration, V entity) - Specified by:
getAllowableActions
in interfaceEntityConfigurationAllowableActionsBuilder
-