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
|
managerEMPTY_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) |
_getCurrentUserenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected RightManager _rightManager
protected boolean _hasRight
protected String _baseContext
public HasRightAction()
public void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class ServiceableActionServiceExceptionprotected 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