Interface TmaGenericItemService

All Known Implementing Classes:
DefaultTmaGenericItemService

public interface TmaGenericItemService
Service responsible for handling ItemModel related operations.
Since:
2202
  • Method Details

    • getItem

      ItemModel getItem(String typeCode, String id)
      Retrieves an item model of a specific typeCode with the given id
      Parameters:
      typeCode - the typeCode of the model
      id - the id
      Returns:
      the model found, null otherwise
    • getItem

      ItemModel getItem(String typeCode, Map<String,String> params)
      Retrieves an item model of a specific typeCode with the given parameters
      Parameters:
      typeCode - the typeCode of the model
      params - the key-value pairs to filter the response
      Returns:
      the item found
    • createItem

      ItemModel createItem(Class itemClass)
      Creates a new item model of the given class.
      Parameters:
      itemClass - the class of the item to be created.
      Returns:
      the created item.
    • saveItem

      void saveItem(ItemModel item)
      Saves the given item model to the database.
      Parameters:
      item - the item model