Package org.ametys.cms.rights.actions
Class HasRightAction
- 
- All Implemented Interfaces:
 Component,Configurable,LogEnabled,Serviceable,ThreadSafe,Action
public class HasRightAction extends HasRightAction
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. 
- 
- 
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
Constructors Constructor Description HasRightAction() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, 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 Detail
- 
HasRightAction
public HasRightAction()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classHasRightAction- Throws:
 ServiceException
 
- 
getBaseContext
protected String getBaseContext(Parameters parameters, Map objectModel)
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
 
 
 - 
 
 -