Class ServiceTierAttribute
java.lang.Object
com.codebarrel.automation.rulecomponent.jira.condition.affectedservices.serviceentity.ServiceTierAttribute
- All Implemented Interfaces:
ServiceEntityAttribute
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValueForCondition(ServiceEntityBean serviceEntityBean, Condition condition) Returns the attribute value from a ServiceEntity as a stringgetConfigValue(String config) Interprets the stored configuration value for the attributeGet the conditions and field matchers that are supported by the attribute.any additional logic to validate the ServiceEntityAttribute that is required can be extended here
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
ServiceTierAttribute
public ServiceTierAttribute()
-
-
Method Details
-
validate
Description copied from interface:ServiceEntityAttributeany additional logic to validate the ServiceEntityAttribute that is required can be extended here- Specified by:
validatein interfaceServiceEntityAttribute- Parameters:
compareValue- the value to use in comparisons for the attribute- Returns:
- Either and empty optional to indicate that not issues found. Or a key to for a error that can be translated
-
supportedConditions
Description copied from interface:ServiceEntityAttributeGet the conditions and field matchers that are supported by the attribute.- Specified by:
supportedConditionsin interfaceServiceEntityAttribute- Returns:
- a map of conditions and they associated field matchers
-
getAttributeValueForCondition
public Set<String> getAttributeValueForCondition(ServiceEntityBean serviceEntityBean, Condition condition) Description copied from interface:ServiceEntityAttributeReturns the attribute value from a ServiceEntity as a string- Specified by:
getAttributeValueForConditionin interfaceServiceEntityAttribute- Parameters:
serviceEntityBean- the object to get the attribute value from- Returns:
- an empty or string representation of the attribute value
-
getConfigValue
Description copied from interface:ServiceEntityAttributeInterprets the stored configuration value for the attribute- Specified by:
getConfigValuein interfaceServiceEntityAttribute- Parameters:
config- the configuration value to be interpreted- Returns:
- a set of values that can be used in a comparison
-