Class UniqueTypeService
java.lang.Object
de.hybris.platform.datahubbackoffice.dataaccess.metadata.impl.UniqueTypeService
- All Implemented Interfaces:
DataHubTypeService
This service ensures uniqueness of the DataHub types within a backoffice application.
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
UniqueTypeService
Default constructor.- Parameters:
service- The DataHubTypeService
-
-
Method Details
-
exists
Description copied from interface:DataHubTypeServiceDetermines whether a canonical type matching the specified type code exists in a DataHub.- Specified by:
existsin interfaceDataHubTypeService- Parameters:
code- a type code to check.- Returns:
true, if the type exists;false, otherwise.
-
getAllTypeCodes
Description copied from interface:DataHubTypeServiceRetrieves codes of all types defined in a DataHub.- Specified by:
getAllTypeCodesin interfaceDataHubTypeService- Returns:
- a collection of all type codes existing in a DataHub.
-
getType
Description copied from interface:DataHubTypeServiceRetrieves definition of a data type.- Specified by:
getTypein interfaceDataHubTypeService- 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
Description copied from interface:DataHubTypeServiceDetermines type of the specified item.- Specified by:
deriveTypeCodein interfaceDataHubTypeService- Parameters:
item- an item to determine type of.- Returns:
- code of the item's type.
-