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.RelativeDefinitionAndValue
Nested classes/interfaces inherited from interface org.ametys.runtime.model.disableconditions.DisableCondition
DisableCondition.OPERATOR
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The contextual parameter key for parameter's definitionsstatic final String
The contextual parameter key for values prefixFields inherited from class org.ametys.runtime.model.disableconditions.AbstractRelativeDisableCondition
_id, _name, _operator, _value
Fields inherited from interface org.ametys.runtime.model.disableconditions.DisableCondition
EXTERNAL_CONDITION_ID_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelItem
getModelItem
(ModelItemAccessor modelItemAccessor, String dataPath, Map<String, Object> contextualParameters) Retrieves the model itemMethods inherited from class org.ametys.runtime.model.disableconditions.VoidStaticRelativeDisableCondition
getStoredRelativeValue
Methods inherited from class org.ametys.runtime.model.disableconditions.AbstractStaticRelativeDisableCondition
configure, initialize
Methods inherited from class org.ametys.runtime.model.disableconditions.AbstractRelativeDisableCondition
_emptyStringToNull, _getConditionDefinitionAndValue, checkModelItemPathSegment, containsRelativeValue, evaluate, evaluateDisableConditionValue, getAllModelItemsInPath, getId, getName, getOperator, getRelativeValueFromMap, getValue, init
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:AbstractRelativeDisableCondition
Retrieves the model item- Overrides:
getModelItem
in 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
-