Package org.ametys.odf.workflow
Class ContextualizedContentCheckRightsCondition
java.lang.Object
org.ametys.plugins.workflow.AbstractWorkflowComponent
org.ametys.plugins.workflow.component.CheckRightsCondition
org.ametys.cms.workflow.ContentCheckRightsCondition
org.ametys.odf.workflow.ContextualizedContentCheckRightsCondition
- All Implemented Interfaces:
com.opensymphony.workflow.Condition
,EnhancedCondition
,Disposable
,Initializable
,Contextualizable
,LogEnabled
,Serviceable
public class ContextualizedContentCheckRightsCondition
extends ContentCheckRightsCondition
implements Contextualizable
Check that user is allowed for current educational path as producer of the program item.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
AbstractWorkflowComponent.ConditionFailure
-
Field Summary
Fields inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
__CONTEXT_KEY, __DEFAULT_CONTEXT, __RIGHT_KEY, _i18nUtils, _rightManager, _rightsExtensionPoint, FORCE
Fields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_VALIDATION_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText
_getSingleConditionDescriptionKey
(List<String> parameters) Get condition description when there is one rightvoid
contextualize
(Context context) getLabel()
Get the label for this conditionprotected boolean
hasRight
(UserIdentity user, String right, Object context) Test if a user has a right on a context.Methods inherited from class org.ametys.cms.workflow.ContentCheckRightsCondition
_computeContext, getContent
Methods inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
_checkRights, _getMultipleConditionsDescriptionKey, _getRightsEnumerator, checkMultipleAndRights, checkMultipleOrRights, dispose, getArguments, getFullLabel, initialize, passesCondition
Methods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, service
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.workflow.EnhancedCondition
getVisibilities
-
Constructor Details
-
ContextualizedContentCheckRightsCondition
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
hasRight
Description copied from class:CheckRightsCondition
Test if a user has a right on a context.- Overrides:
hasRight
in classCheckRightsCondition
- Parameters:
user
- the userright
- the right to check.context
- the right context.- Returns:
- true if the user has the right, false otherwise.
-
getLabel
Description copied from interface:EnhancedCondition
Get the label for this condition- Specified by:
getLabel
in interfaceEnhancedCondition
- Overrides:
getLabel
in classContentCheckRightsCondition
- Returns:
- the label
-
_getSingleConditionDescriptionKey
Description copied from class:CheckRightsCondition
Get condition description when there is one right- Overrides:
_getSingleConditionDescriptionKey
in classContentCheckRightsCondition
- Parameters:
parameters
- the right label as a List- Returns:
- the description
-