Package org.ametys.core.authentication
Class IsGrantedAction
java.lang.Object
org.ametys.core.authentication.IsGrantedAction
- All Implemented Interfaces:
Component,Configurable,Action
This action return EMPTY_MAP or null depending if the request was granted or not.
The effect can be revert by a configuration parameter "is-granted"
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) voidconfigure(Configuration configuration)
-
Constructor Details
-
IsGrantedAction
public IsGrantedAction()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-