Class CachingTypeService
java.lang.Object
de.hybris.platform.datahubbackoffice.dataaccess.metadata.impl.CachingTypeService
- All Implemented Interfaces:
DataHubTypeService,DataHubServerAware,Serializable
public class CachingTypeService
extends Object
implements DataHubTypeService, DataHubServerAware, Serializable
Provides cache for another
DataHubTypeService.- See Also:
-
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.voidsetDataHubServer(DataHubServer server) Specifies DataHub server instance for the component context.voidsetDelegate(@NotNull DataHubTypeService s)
-
Constructor Details
-
CachingTypeService
public CachingTypeService()
-
-
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.
-
setDataHubServer
Description copied from interface:DataHubServerAwareSpecifies DataHub server instance for the component context.- Specified by:
setDataHubServerin interfaceDataHubServerAware- Parameters:
server- a DataHub server to use.
-
setDelegate
-
getDelegate
-