Class VoidStaticRelativeDisableCondition
java.lang.Object
org.ametys.runtime.model.disableconditions.AbstractRelativeDisableCondition
org.ametys.runtime.model.disableconditions.AbstractStaticRelativeDisableCondition
org.ametys.runtime.model.disableconditions.VoidStaticRelativeDisableCondition
- All Implemented Interfaces:
DisableCondition,Initializable,Component,Configurable
- Direct Known Subclasses:
UsersAndGroupsDataDisableCondition
Disable condition referencing a relative model item. The condition can not be evaluated on a stored object. It can evaluated only on a Map of values
This is a static (i.e. coming from configurable component) implementation, used by schedulables, users and groups
-
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
Fields 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
Methods 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, getModelItem, 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
-
Constructor Details
-
VoidStaticRelativeDisableCondition
public VoidStaticRelativeDisableCondition()
-
-
Method Details
-
getStoredRelativeValue
protected <T> Object getStoredRelativeValue(String conditionDataPath, Optional<String> oldConditionDataPath, T object, Map<String, Object> contextualParameters) Description copied from class:AbstractRelativeDisableConditionRetrieves the condition value from data stored in the given object- Specified by:
getStoredRelativeValuein classAbstractRelativeDisableCondition- Type Parameters:
T- Type of object holding the data to evaluate- Parameters:
conditionDataPath- the absolute data path of the conditionoldConditionDataPath- the absolute old data path of the conditionobject- the object holding the data to evaluate and the condition valuecontextualParameters- the contextual parameters- Returns:
- the condition value from data stored in the object
-