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 Details

    • CachingTypeService

      public CachingTypeService()
  • Method Details

    • exists

      public boolean exists(String code)
      Description copied from interface: DataHubTypeService
      Determines whether a canonical type matching the specified type code exists in a DataHub.
      Specified by:
      exists in interface DataHubTypeService
      Parameters:
      code - a type code to check.
      Returns:
      true, if the type exists; false, otherwise.
    • getAllTypeCodes

      public Collection<String> getAllTypeCodes()
      Description copied from interface: DataHubTypeService
      Retrieves codes of all types defined in a DataHub.
      Specified by:
      getAllTypeCodes in interface DataHubTypeService
      Returns:
      a collection of all type codes existing in a DataHub.
    • getType

      public com.hybris.cockpitng.dataaccess.facades.type.DataType getType(String code)
      Description copied from interface: DataHubTypeService
      Retrieves definition of a data type.
      Specified by:
      getType in interface DataHubTypeService
      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

      public String deriveTypeCode(com.hybris.datahub.dto.item.ItemData item)
      Description copied from interface: DataHubTypeService
      Determines type of the specified item.
      Specified by:
      deriveTypeCode in interface DataHubTypeService
      Parameters:
      item - an item to determine type of.
      Returns:
      code of the item's type.
    • setDataHubServer

      public void setDataHubServer(DataHubServer server)
      Description copied from interface: DataHubServerAware
      Specifies DataHub server instance for the component context.
      Specified by:
      setDataHubServer in interface DataHubServerAware
      Parameters:
      server - a DataHub server to use.
    • setDelegate

      public void setDelegate(@NotNull @NotNull DataHubTypeService s)
    • getDelegate

      public DataHubTypeService getDelegate()