Class LinkAttributeAccessor
java.lang.Object
com.hybris.backoffice.workflow.designer.persistence.LinkAttributeAccessor
Accessor for
LinkModel's attributes-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetAndConnectionAttribute(LinkModel linkModel) static <T> Optional<T>getAttribute(LinkModel linkModel, String attributeQualifier, Class<T> attributeType) Retrieves attribute value fromLinkModel
-
Field Details
-
AND_CONNECTION_TEMPLATE_PROPERTY
- See Also:
-
AND_CONNECTION_PROPERTY
- See Also:
-
-
Method Details
-
getAndConnectionAttribute
- Parameters:
linkModel- model with and connection attribute- Returns:
- and connection attribute value or false when model is not saved
-
getAttribute
public static <T> Optional<T> getAttribute(LinkModel linkModel, String attributeQualifier, Class<T> attributeType) Retrieves attribute value fromLinkModel- Type Parameters:
T- generic type that represents attribute type- Parameters:
linkModel- model with attributesattributeQualifier- identifier of the attributeattributeType- type of the attribute (the value will be casted)- Returns:
- casted attribute value or empty if the attribute does not exist or cannot be casted
-