Class DefaultTmaGenericItemService

java.lang.Object
de.hybris.platform.b2ctelcoservices.services.impl.DefaultTmaGenericItemService
All Implemented Interfaces:
TmaGenericItemService

public class DefaultTmaGenericItemService extends Object implements TmaGenericItemService
Default implementation of TmaGenericItemService.
Since:
2202
  • Constructor Details

    • DefaultTmaGenericItemService

      public DefaultTmaGenericItemService(de.hybris.platform.servicelayer.model.ModelService modelService, TmaGenericItemDao tmaGenericItemDao)
  • Method Details

    • getItem

      public ItemModel getItem(String typeCode, String id)
      Description copied from interface: TmaGenericItemService
      Retrieves an item model of a specific typeCode with the given id
      Specified by:
      getItem in interface TmaGenericItemService
      Parameters:
      typeCode - the typeCode of the model
      id - the id
      Returns:
      the model found, null otherwise
    • getItem

      public ItemModel getItem(String typeCode, Map<String,String> params)
      Description copied from interface: TmaGenericItemService
      Retrieves an item model of a specific typeCode with the given parameters
      Specified by:
      getItem in interface TmaGenericItemService
      Parameters:
      typeCode - the typeCode of the model
      params - the key-value pairs to filter the response
      Returns:
      the item found
    • createItem

      public ItemModel createItem(Class itemClass)
      Description copied from interface: TmaGenericItemService
      Creates a new item model of the given class.
      Specified by:
      createItem in interface TmaGenericItemService
      Parameters:
      itemClass - the class of the item to be created.
      Returns:
      the created item.
    • saveItem

      public void saveItem(ItemModel item)
      Description copied from interface: TmaGenericItemService
      Saves the given item model to the database.
      Specified by:
      saveItem in interface TmaGenericItemService
      Parameters:
      item - the item model
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
    • getTmaGenericItemDao

      protected TmaGenericItemDao getTmaGenericItemDao()