Class DefaultIntegrationObjectService

java.lang.Object
de.hybris.platform.integrationservices.service.impl.DefaultIntegrationObjectService
All Implemented Interfaces:
IntegrationObjectService

public class DefaultIntegrationObjectService extends Object implements IntegrationObjectService
The default implementation of the IntegrationObjectService
  • Constructor Details

    • DefaultIntegrationObjectService

      public DefaultIntegrationObjectService()
  • Method Details

    • findIntegrationObject

      public IntegrationObjectModel findIntegrationObject(String integrationObjectCode)
      Description copied from interface: IntegrationObjectService
      Find an integration object with the given code.
      Specified by:
      findIntegrationObject in interface IntegrationObjectService
      Parameters:
      integrationObjectCode - Integration object's code
      Returns:
      integration object with the given code
    • findAllIntegrationObjectItems

      public Set<IntegrationObjectItemModel> findAllIntegrationObjectItems(String integrationObjectCode)
      Description copied from interface: IntegrationObjectService
      Find all integration object item models
      Specified by:
      findAllIntegrationObjectItems in interface IntegrationObjectService
      Parameters:
      integrationObjectCode - Integration object's code
      Returns:
      Set of integration object items, or empty set if none is found
    • findAllDependencyTypes

      public Set<IntegrationObjectItemModel> findAllDependencyTypes(String integrationObjectItemCode, String integrationObjectCode)
      Description copied from interface: IntegrationObjectService
      Find all the dependency types, which include dependencies of dependencies, for the given integration object item code.
      Specified by:
      findAllDependencyTypes in interface IntegrationObjectService
      Parameters:
      integrationObjectItemCode - Integration object item's code
      integrationObjectCode - Integration object's code
      Returns:
      Set of integration object items, or empty set if none is found
    • findAllIntegrationObjects

      public Set<IntegrationObjectModel> findAllIntegrationObjects(String itemTypeCode)
      Description copied from interface: IntegrationObjectService
      Find all IntegrationObjectModel associated with IntegrationObjectItemModel, which associates with the given itemTypeCode.
      Specified by:
      findAllIntegrationObjects in interface IntegrationObjectService
      Parameters:
      itemTypeCode - ComposedType associated with IntegrationObjectItemModel
      Returns:
      Set of integration objects, or empty set if none is found
    • findItemAttributeName

      public String findItemAttributeName(String integrationObjectCode, String integrationObjectItemCode, String integrationObjectItemAttributeName)
      Description copied from interface: IntegrationObjectService
      Find the attribute name if it exists for the given integrationObjectCode, integrationObjectItemCode, and integrationObjectItemAttributeName
      Specified by:
      findItemAttributeName in interface IntegrationObjectService
      Parameters:
      integrationObjectCode - Integration object's code
      integrationObjectItemCode - Integration object item's code
      integrationObjectItemAttributeName - Integration object item attribute Name
      Returns:
      the name (qualifier) for the attribute as it is called in the Type System.
    • findItemTypeCode

      public String findItemTypeCode(String integrationObjectCode, String integrationObjectItemCode)
      Description copied from interface: IntegrationObjectService
      Find the type system type code referenced by the given integrationObjectCode and integrationObjectItemCode.
      Specified by:
      findItemTypeCode in interface IntegrationObjectService
      Parameters:
      integrationObjectCode - Integration object's code
      integrationObjectItemCode - Integration object item's code
      Returns:
      typeCode of the integrationObjectItem or empty String if not found.
    • findIntegrationObjectItemByTypeCode

      public IntegrationObjectItemModel findIntegrationObjectItemByTypeCode(String integrationObjectCode, String typeCode)
      Description copied from interface: IntegrationObjectService
      Find the integration object item's code referenced by the given integrationObjectCode and item type code.
      Specified by:
      findIntegrationObjectItemByTypeCode in interface IntegrationObjectService
      Parameters:
      integrationObjectCode - Integration object's code
      typeCode - typeCode of the itemModel the IntegrationObjectItem refers to.
      Returns:
      the integrationObjectItem
    • findIntegrationObjectItemByParentTypeCode

      public IntegrationObjectItemModel findIntegrationObjectItemByParentTypeCode(String integrationObjectCode, String typeCode)
      Description copied from interface: IntegrationObjectService
      Find the integration object item's code referenced by the given integrationObjectCode and item type code also searching by the parent of the type code.
      Specified by:
      findIntegrationObjectItemByParentTypeCode in interface IntegrationObjectService
      Parameters:
      integrationObjectCode - Integration object's code
      typeCode - typeCode of the itemModel the IntegrationObjectItem refers to.
      Returns:
      the integrationObjectItem
    • toAttributeDescriptor

    • byName

      protected Predicate<IntegrationObjectItemAttributeModel> byName(String attributeName)
    • findIntegrationObjectItem

      public Optional<IntegrationObjectItemModel> findIntegrationObjectItem(String integrationObjectCode, String integrationObjectItemCode)
      Description copied from interface: IntegrationObjectService
      Searches the integration object definitions for an item with the matching characteristics.
      Specified by:
      findIntegrationObjectItem in interface IntegrationObjectService
      Parameters:
      integrationObjectCode - code of the integration object that should contain the item.
      integrationObjectItemCode - code for an item withing the the specified integration object.
      Returns:
      an Optional containing the matching integration object item or an Optional.empty(), if the specified integration object does not exist or it exists but does not contain an item with the specified item code.
    • accumulateDependencyTypesFromAttributeDefinitions

      protected void accumulateDependencyTypesFromAttributeDefinitions(String integrationObjectCode, String integrationObjectItemCode, Set<IntegrationObjectItemAttributeModel> attributeDefinitionModels, Set<IntegrationObjectItemModel> dependencyTypes)
    • accumulateAllDependencyTypes

      protected void accumulateAllDependencyTypes(String integrationObjectCode, String integrationObjectItemCode, Set<IntegrationObjectItemModel> dependencyTypes)
    • isValidAttributeDescriptor

      protected boolean isValidAttributeDescriptor(AttributeDescriptorModel attributeDescriptor)
    • isValidReturnIntegrationObjectItem

      protected boolean isValidReturnIntegrationObjectItem(String returnIntegrationObjectItemCode, String integrationObjectItemCode)
    • isValidIntegrationObjectItemCode

      protected boolean isValidIntegrationObjectItemCode(String integrationObjectItemCode)
    • getFlexibleSearchService

      protected FlexibleSearchService getFlexibleSearchService()
    • setFlexibleSearchService

      public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
    • getTypeService

      public TypeService getTypeService()
    • setTypeService

      public void setTypeService(TypeService typeService)