Package org.ametys.core.util
Class UsersAndGroupsDataDisableCondition
- All Implemented Interfaces:
DisableCondition,Initializable,Component,Configurable
DisableCondition for users and groups data
Users and groups data can not be accessed by a specific object, so VoidStaticRelativeDisableCondition.getStoredRelativeValue(String, Optional, Object, Map) can not be implemented-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.runtime.model.disableconditions.AbstractRelativeDisableCondition
AbstractRelativeDisableCondition.RelativeDefinitionAndValueNested classes/interfaces inherited from interface org.ametys.runtime.model.disableconditions.DisableCondition
DisableCondition.OPERATOR -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe contextual parameter key for parameter's definitionsstatic final StringThe contextual parameter key for values prefixFields inherited from class org.ametys.runtime.model.disableconditions.AbstractRelativeDisableCondition
_id, _name, _operator, _valueFields inherited from interface org.ametys.runtime.model.disableconditions.DisableCondition
EXTERNAL_CONDITION_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelItemgetModelItem(ModelItemAccessor modelItemAccessor, String dataPath, Map<String, Object> contextualParameters) Retrieves the model itemMethods inherited from class org.ametys.runtime.model.disableconditions.VoidStaticRelativeDisableCondition
getStoredRelativeValueMethods inherited from class org.ametys.runtime.model.disableconditions.AbstractStaticRelativeDisableCondition
configure, initializeMethods inherited from class org.ametys.runtime.model.disableconditions.AbstractRelativeDisableCondition
_emptyStringToNull, _getConditionDefinitionAndValue, checkModelItemPathSegment, containsRelativeValue, evaluate, evaluateDisableConditionValue, getAllModelItemsInPath, getId, getName, getOperator, getRelativeValueFromMap, getValue, initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.runtime.model.disableconditions.DisableCondition
isExternal
-
Field Details
-
DEFINITIONS_PARAMETER_KEY
The contextual parameter key for parameter's definitions- See Also:
-
PREFIX_PARAMETER_KEY
The contextual parameter key for values prefix- See Also:
-
-
Constructor Details
-
UsersAndGroupsDataDisableCondition
public UsersAndGroupsDataDisableCondition()
-
-
Method Details
-
getModelItem
protected ModelItem getModelItem(ModelItemAccessor modelItemAccessor, String dataPath, Map<String, Object> contextualParameters) throws UndefinedItemPathExceptionDescription copied from class:AbstractRelativeDisableConditionRetrieves the model item- Overrides:
getModelItemin classAbstractRelativeDisableCondition- Parameters:
modelItemAccessor- the relative accessor to the given data pathdataPath- the data path of the model item to retrievecontextualParameters- the contextual parameters- Returns:
- the model item
- Throws:
UndefinedItemPathException- If no item is found for the given path
-