Package org.ametys.cms.rights.actions
Class HasRightAction
- All Implemented Interfaces:
Component
,Configurable
,LogEnabled
,Serviceable
,ThreadSafe
,Action
This action determines if the user has a right given in src.
return EMPTY_MAP if the user has right and null otherwise
You can use the 'context' parameter to specify the right context. /cms is the default value.
return EMPTY_MAP if the user has right and null otherwise
You can use the 'context' parameter to specify the right context. /cms is the default value.
-
Field Summary
Fields inherited from class org.ametys.plugins.core.right.HasRightAction
_baseContext, _hasRight, _rightManager
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getBaseContext
(Parameters parameters, Map objectModel) Return the base context when not specifiedvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.plugins.core.right.HasRightAction
act, configure
Methods inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableAction
_getCurrentUser
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
HasRightAction
public HasRightAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classHasRightAction
- Throws:
ServiceException
-
getBaseContext
Description copied from class:HasRightAction
Return the base context when not specified- Overrides:
getBaseContext
in classHasRightAction
- Parameters:
parameters
- The sitemap parametersobjectModel
- the objectModel of the calling environment- Returns:
- the base context when not specified
-