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 SummaryNested classes/interfaces inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponentAbstractWorkflowComponent.ConditionFailure
- 
Field SummaryFields inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition__CONTEXT_KEY, __DEFAULT_CONTEXT, __RIGHT_KEY, _i18nUtils, _rightManager, _rightsExtensionPoint, FORCEFields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_VALIDATION_KEY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected I18nizableText_getSingleConditionDescriptionKey(List<String> parameters) Get condition description when there is one rightvoidcontextualize(Context context) getLabel()Get the label for this conditionprotected booleanhasRight(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, getContentMethods inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition_checkRights, _getMultipleConditionsDescriptionKey, _getRightsEnumerator, checkMultipleAndRights, checkMultipleOrRights, dispose, getArguments, getFullLabel, initialize, passesConditionMethods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponentaddWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, serviceMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.workflow.EnhancedConditiongetVisibilities
- 
Constructor Details- 
ContextualizedContentCheckRightsCondition
 
- 
- 
Method Details- 
contextualize- Specified by:
- contextualizein interface- Contextualizable
- Throws:
- ContextException
 
- 
hasRightDescription copied from class:CheckRightsConditionTest if a user has a right on a context.- Overrides:
- hasRightin class- CheckRightsCondition
- Parameters:
- user- the user
- right- the right to check.
- context- the right context.
- Returns:
- true if the user has the right, false otherwise.
 
- 
getLabelDescription copied from interface:EnhancedConditionGet the label for this condition- Specified by:
- getLabelin interface- EnhancedCondition
- Overrides:
- getLabelin class- ContentCheckRightsCondition
- Returns:
- the label
 
- 
_getSingleConditionDescriptionKeyDescription copied from class:CheckRightsConditionGet condition description when there is one right- Overrides:
- _getSingleConditionDescriptionKeyin class- ContentCheckRightsCondition
- Parameters:
- parameters- the right label as a List
- Returns:
- the description
 
 
-