public class HasRightAction extends AbstractCurrentUserProviderServiceableAction implements Configurable
Modifier and Type | Field and Description |
---|---|
protected String |
_baseContext
The right context to use
|
protected boolean |
_hasRight
Is the action in has right mode? or has not right mode?
|
protected RightManager |
_rightManager
The runtime rights manager
|
manager
EMPTY_MAP
Constructor and Description |
---|
HasRightAction() |
Modifier and Type | Method and Description |
---|---|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
configure(Configuration configuration) |
protected String |
getBaseContext(Parameters parameters,
Map objectModel)
Return the base context when not specified
|
void |
service(ServiceManager smanager) |
_getCurrentUser
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected RightManager _rightManager
protected boolean _hasRight
protected String _baseContext
public HasRightAction()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
protected String getBaseContext(Parameters parameters, Map objectModel)
parameters
- The sitemap parametersobjectModel
- the objectModel of the calling environmentpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception