Class LinkAttributeAccessor

java.lang.Object
com.hybris.backoffice.workflow.designer.persistence.LinkAttributeAccessor

public class LinkAttributeAccessor extends Object
Accessor for LinkModel's attributes
  • Field Details

  • Method Details

    • 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> Optional<T> getAttribute(LinkModel linkModel, String attributeQualifier, Class<T> attributeType)
      Retrieves attribute value from LinkModel
      Type Parameters:
      T - generic type that represents attribute type
      Parameters:
      linkModel - model with attributes
      attributeQualifier - identifier of the attribute
      attributeType - 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