Interface DataHubTypeService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String deriveTypeCode​(com.hybris.datahub.dto.item.ItemData item)
      Determines type of the specified item.
      boolean exists​(java.lang.String code)
      Determines whether a canonical type matching the specified type code exists in a DataHub.
      java.util.Collection<java.lang.String> getAllTypeCodes()
      Retrieves codes of all types defined in a DataHub.
      com.hybris.cockpitng.dataaccess.facades.type.DataType getType​(java.lang.String code)
      Retrieves definition of a data type.
    • Method Detail

      • exists

        boolean exists​(java.lang.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

        java.util.Collection<java.lang.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​(java.lang.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

        java.lang.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.