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, FORCEFields 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 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.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, serviceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.workflow.EnhancedCondition
getVisibilities
-
Constructor Details
-
ContextualizedContentCheckRightsCondition
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
hasRight
Description copied from class:CheckRightsConditionTest if a user has a right on a context.- Overrides:
hasRightin 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:EnhancedConditionGet the label for this condition- Specified by:
getLabelin interfaceEnhancedCondition- Overrides:
getLabelin classContentCheckRightsCondition- Returns:
- the label
-
_getSingleConditionDescriptionKey
Description copied from class:CheckRightsConditionGet condition description when there is one right- Overrides:
_getSingleConditionDescriptionKeyin classContentCheckRightsCondition- Parameters:
parameters- the right label as a List- Returns:
- the description
-