Class AbstractExternalDisableCondition
java.lang.Object
org.ametys.runtime.model.disableconditions.AbstractExternalDisableCondition
- All Implemented Interfaces:
DisableCondition
- Direct Known Subclasses:
BlockMCCSession2DisableCondition,ExcludeFromMCCDisableCondition,NotShared2DisableCondition
External implementation for
DisableCondition-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.runtime.model.disableconditions.DisableCondition
DisableCondition.OPERATOR -
Field Summary
FieldsFields inherited from interface org.ametys.runtime.model.disableconditions.DisableCondition
EXTERNAL_CONDITION_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the idgetName()Get the nameGet the operatorgetValue()Get the valuevoidUsed to do more initialization, checks, ...booleanisExternal(DefinitionContext context) Check if the current disable condition is external An external condition can not be computed only from the object's valuesMethods 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
evaluate
-
Field Details
-
_id
the condition identifier
-
-
Constructor Details
-
AbstractExternalDisableCondition
public AbstractExternalDisableCondition()Creates an external disable condition
-
-
Method Details
-
init
Description copied from interface:DisableConditionUsed to do more initialization, checks, ... needing model items of distant objects Called byModelparsing when the model items of all models have been initialized.- Specified by:
initin interfaceDisableCondition- Parameters:
model- the model containing the definitiondefinition- the model item defining this disable condition- Throws:
Exception- if an error occurs or if an additional check fails.
-
getId
Description copied from interface:DisableConditionGet the id- Specified by:
getIdin interfaceDisableCondition- Returns:
- the condition identifier
-
getName
Description copied from interface:DisableConditionGet the name- Specified by:
getNamein interfaceDisableCondition- Returns:
- the condition name
-
getOperator
Description copied from interface:DisableConditionGet the operator- Specified by:
getOperatorin interfaceDisableCondition- Returns:
- The comparison operator
-
getValue
Description copied from interface:DisableConditionGet the value- Specified by:
getValuein interfaceDisableCondition- Returns:
- The value to compare to
-
isExternal
Description copied from interface:DisableConditionCheck if the current disable condition is external An external condition can not be computed only from the object's values- Specified by:
isExternalin interfaceDisableCondition- Parameters:
context- the definition context- Returns:
trueif the disable condition is external,falseotherwise
-