Package org.ametys.cms.workflow
Class CreateContentByCopyRightCondition
- java.lang.Object
-
- org.ametys.plugins.workflow.AbstractWorkflowComponent
-
- org.ametys.plugins.workflow.component.CheckRightsCondition
-
- org.ametys.cms.workflow.CreateContentRightCondition
-
- org.ametys.cms.workflow.CreateContentByCopyRightCondition
-
- All Implemented Interfaces:
com.opensymphony.workflow.Condition,Disposable,Initializable,LogEnabled,Serviceable
public class CreateContentByCopyRightCondition extends CreateContentRightCondition
Condition for checking if an user has the right to create a content of the requested type.
-
-
Field Summary
Fields Modifier and Type Field Description private AmetysObjectResolver_resolver-
Fields inherited from class org.ametys.cms.workflow.CreateContentRightCondition
_contentTypeExtensionPoint, _rootContentHelper
-
Fields inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
__CONTEXT_KEY, __DEFAULT_CONTEXT, __RIGHT_KEY, _rightManager, FORCE
-
Fields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
-
-
Constructor Summary
Constructors Constructor Description CreateContentByCopyRightCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<String>getRights(Map transientVars)Get the needed right for creationvoidservice(ServiceManager manager)-
Methods inherited from class org.ametys.cms.workflow.CreateContentRightCondition
dispose, hasRight, initialize, passesCondition
-
Methods inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
_checkRights, _computeContext, checkMultipleAndRights, checkMultipleOrRights
-
Methods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
-
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
-
-
Constructor Detail
-
CreateContentByCopyRightCondition
public CreateContentByCopyRightCondition()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractWorkflowComponent- Throws:
ServiceException
-
getRights
protected Set<String> getRights(Map transientVars) throws com.opensymphony.workflow.WorkflowException
Description copied from class:CreateContentRightConditionGet the needed right for creation- Overrides:
getRightsin classCreateContentRightCondition- Parameters:
transientVars- variables that will not be persisted.- Returns:
- The required right
- Throws:
com.opensymphony.workflow.WorkflowException- If an error occured
-
-