public interface DefinitionsService
Modifier and Type | Method and Description |
---|---|
Condition |
extractConditionBySystemTag(Condition rootCondition,
String systemTag)
Retrieves a condition matching the specified system tag identifier from the specified root condition.
|
Condition |
extractConditionByTag(Condition rootCondition,
String tag)
Deprecated.
As of 1.2.0-incubating, please use
extractConditionBySystemTag(Condition, String) instead |
Set<Condition> |
extractConditionsByType(Condition rootCondition,
String typeId)
Retrieves all conditions of the specified type from the specified root condition.
|
ActionType |
getActionType(String id)
Retrieves the action type associated with the specified identifier.
|
Set<ActionType> |
getActionTypeBySystemTag(String tag)
Retrieves the set of action types with the specified system tag.
|
Set<ActionType> |
getActionTypeByTag(String tag)
Retrieves the set of action types with the specified tag.
|
Collection<ActionType> |
getAllActionTypes()
Retrieves all known action types.
|
Collection<ConditionType> |
getAllConditionTypes()
Retrieves all condition types.
|
Collection<ValueType> |
getAllValueTypes()
Retrieves all known value types.
|
ConditionType |
getConditionType(String id)
Retrieves the condition type associated with the specified identifier.
|
Set<ConditionType> |
getConditionTypesBySystemTag(String tag)
Retrieves the set of condition types with the specified system tag.
|
Set<ConditionType> |
getConditionTypesByTag(String tag)
Retrieves the set of condition types with the specified tag.
|
PropertyMergeStrategyType |
getPropertyMergeStrategyType(String id)
Retrieves the property merge strategy type associated with the specified identifier.
|
Map<Long,List<PluginType>> |
getTypesByPlugin()
Retrieves a Map of plugin identifier to a list of plugin types defined by that particular plugin.
|
ValueType |
getValueType(String id)
Retrieves the value type associated with the specified identifier.
|
Set<ValueType> |
getValueTypeByTag(String tag)
Retrieves the set of value types with the specified tag.
|
void |
refresh()
Forces a refresh of the definitions from the persistence service.
|
void |
removeActionType(String id)
Remove the action type
|
void |
removeConditionType(String id)
Remove the condition type
|
boolean |
resolveConditionType(Condition rootCondition)
Resolves (if possible) the
ConditionType s for the specified condition and its sub-conditions (if any) from the type identifiers existing on the specified condition
TODO: remove from API and move to a different class? |
void |
setActionType(ActionType actionType)
Stores the action type
|
void |
setConditionType(ConditionType conditionType)
Stores the condition type
|
Collection<ConditionType> getAllConditionTypes()
Set<ConditionType> getConditionTypesByTag(String tag)
tag
- the tag marking the condition types we want to retrieveSet<ConditionType> getConditionTypesBySystemTag(String tag)
tag
- the system tag marking the condition types we want to retrieveConditionType getConditionType(String id)
id
- the identifier of the condition type to retrievenull
if no such condition type existsvoid setConditionType(ConditionType conditionType)
conditionType
- the condition type to storevoid removeConditionType(String id)
id
- the condition type to removeCollection<ActionType> getAllActionTypes()
Set<ActionType> getActionTypeByTag(String tag)
tag
- the tag marking the action types we want to retrieveSet<ActionType> getActionTypeBySystemTag(String tag)
tag
- the system tag marking the action types we want to retrieveActionType getActionType(String id)
id
- the identifier of the action type to retrievenull
if no such action type existsvoid setActionType(ActionType actionType)
actionType
- the action type to storevoid removeActionType(String id)
id
- the action type to removeCollection<ValueType> getAllValueTypes()
Set<ValueType> getValueTypeByTag(String tag)
tag
- the tag marking the value types we want to retrieveValueType getValueType(String id)
id
- the identifier of the value type to retrievenull
if no such value type existsMap<Long,List<PluginType>> getTypesByPlugin()
PropertyMergeStrategyType getPropertyMergeStrategyType(String id)
id
- the identifier of the property merge strategy type to retrievenull
if no such property merge strategy type existsSet<Condition> extractConditionsByType(Condition rootCondition, String typeId)
rootCondition
- the condition from which we want to extract all conditions with the specified typetypeId
- the identifier of the condition type we want conditions to extract to match@Deprecated Condition extractConditionByTag(Condition rootCondition, String tag)
extractConditionBySystemTag(Condition, String)
insteadrootCondition
- the root condition where to start the extraction by classtag
- the tag to use to extract the conditionCondition extractConditionBySystemTag(Condition rootCondition, String systemTag)
rootCondition
- the root condition where to start the extraction by classsystemTag
- the tag to use to extract the conditionboolean resolveConditionType(Condition rootCondition)
ConditionType
s for the specified condition and its sub-conditions (if any) from the type identifiers existing on the specified condition
TODO: remove from API and move to a different class?rootCondition
- the condition for which we want to resolve the condition types from the existing condition type identifierstrue
void refresh()
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.