Class AbstractExternalDisableCondition
java.lang.Object
org.ametys.runtime.model.disableconditions.AbstractExternalDisableCondition
- All Implemented Interfaces:
DisableCondition
- Direct Known Subclasses:
BlockMCCSession2DisableCondition
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 valuevoid
Used to do more initialization, checks, ...boolean
isExternal
(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, wait
Methods 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:DisableCondition
Used to do more initialization, checks, ... needing model items of distant objects Called byModel
parsing when the model items of all models have been initialized.- Specified by:
init
in 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:DisableCondition
Get the id- Specified by:
getId
in interfaceDisableCondition
- Returns:
- the condition identifier
-
getName
Description copied from interface:DisableCondition
Get the name- Specified by:
getName
in interfaceDisableCondition
- Returns:
- the condition name
-
getOperator
Description copied from interface:DisableCondition
Get the operator- Specified by:
getOperator
in interfaceDisableCondition
- Returns:
- The comparison operator
-
getValue
Description copied from interface:DisableCondition
Get the value- Specified by:
getValue
in interfaceDisableCondition
- Returns:
- The value to compare to
-
isExternal
Description copied from interface:DisableCondition
Check if the current disable condition is external An external condition can not be computed only from the object's values- Specified by:
isExternal
in interfaceDisableCondition
- Parameters:
context
- the definition context- Returns:
true
if the disable condition is external,false
otherwise
-