Package org.ametys.core.authentication
Class IsGrantedAction
- java.lang.Object
-
- org.ametys.core.authentication.IsGrantedAction
-
- All Implemented Interfaces:
Component
,Configurable
,Action
public class IsGrantedAction extends Object implements 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
Fields Modifier and Type Field Description private boolean
_isGranted
-
Constructor Summary
Constructors Constructor Description IsGrantedAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
configure(Configuration configuration)
-
-
-
Field Detail
-
_isGranted
private boolean _isGranted
-
-
Constructor Detail
-
IsGrantedAction
public IsGrantedAction()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-
-