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 TypeMethodDescriptionderiveTypeCode(com.hybris.datahub.dto.item.ItemData item) Determines type of the specified item.booleanDetermines 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.DataTypeRetrieves definition of a data type.
-
Method Details
-
exists
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
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
Determines type of the specified item.- Parameters:
item- an item to determine type of.- Returns:
- code of the item's type.
-