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, _rightManagerFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetBaseContext(Parameters parameters, Map objectModel) Return the base context when not specifiedvoidservice(ServiceManager smanager) Methods inherited from class org.ametys.plugins.core.right.HasRightAction
act, configureMethods inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableAction
_getCurrentUserMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
HasRightAction
public HasRightAction()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classHasRightAction- Throws:
ServiceException
-
getBaseContext
Description copied from class:HasRightActionReturn the base context when not specified- Overrides:
getBaseContextin classHasRightAction- Parameters:
parameters- The sitemap parametersobjectModel- the objectModel of the calling environment- Returns:
- the base context when not specified
-