Class LinkAttributeAccessor
- java.lang.Object
-
- com.hybris.backoffice.workflow.designer.persistence.LinkAttributeAccessor
-
public class LinkAttributeAccessor extends java.lang.ObjectAccessor forLinkModel's attributes
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAND_CONNECTION_PROPERTYstatic java.lang.StringAND_CONNECTION_TEMPLATE_PROPERTY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetAndConnectionAttribute(LinkModel linkModel)static <T> java.util.Optional<T>getAttribute(LinkModel linkModel, java.lang.String attributeQualifier, java.lang.Class<T> attributeType)Retrieves attribute value fromLinkModel
-
-
-
Field Detail
-
AND_CONNECTION_TEMPLATE_PROPERTY
public static final java.lang.String AND_CONNECTION_TEMPLATE_PROPERTY
- See Also:
- Constant Field Values
-
AND_CONNECTION_PROPERTY
public static final java.lang.String AND_CONNECTION_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAndConnectionAttribute
public static boolean getAndConnectionAttribute(LinkModel linkModel)
- Parameters:
linkModel- model with and connection attribute- Returns:
- and connection attribute value or false when model is not saved
-
getAttribute
public static <T> java.util.Optional<T> getAttribute(LinkModel linkModel, java.lang.String attributeQualifier, java.lang.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
-
-