Interface DataHubTypeService

All Known Implementing Classes:
CachingTypeService, CanonicalTypeService, UniqueTypeService

public interface DataHubTypeService
This service provides canonical item type definitions for the data access operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    deriveTypeCode(com.hybris.datahub.dto.item.ItemData item)
    Determines type of the specified item.
    boolean
    exists(String code)
    Determines whether a canonical type matching the specified type code exists in a DataHub.
    Retrieves codes of all types defined in a DataHub.
    com.hybris.cockpitng.dataaccess.facades.type.DataType
    Retrieves definition of a data type.
  • Method Details

    • exists

      boolean exists(String code)
      Determines whether a canonical type matching the specified type code exists in a DataHub.
      Parameters:
      code - a type code to check.
      Returns:
      true, if the type exists; false, otherwise.
    • getAllTypeCodes

      Collection<String> getAllTypeCodes()
      Retrieves codes of all types defined in a DataHub.
      Returns:
      a collection of all type codes existing in a DataHub.
    • getType

      com.hybris.cockpitng.dataaccess.facades.type.DataType getType(String code)
      Retrieves definition of a data type.
      Parameters:
      code - type code for the data type to retrieve.
      Returns:
      details about how the type is defined or null, if the type does not exist.
    • deriveTypeCode

      String deriveTypeCode(com.hybris.datahub.dto.item.ItemData item)
      Determines type of the specified item.
      Parameters:
      item - an item to determine type of.
      Returns:
      code of the item's type.