Interface SpiGenericService

All Known Implementing Classes:
DefaultSpiGenericService

@Deprecated(since="2208") public interface SpiGenericService
Deprecated.
2208
Service responsible for handling ItemModel related operations.
Since:
2111
  • Method Summary

    Modifier and Type
    Method
    Description
    createItem(Class itemClass)
    Deprecated.
    Creates a new item model of the given class.
    getItem(String typeCode, String id)
    Deprecated.
    Retrieves an item model of a specific typeCode with the given id
    getItem(String typeCode, Map<String,String> params)
    Deprecated.
    Retrieves an item model of a specific typeCode with the given parameters
    void
    Deprecated.
    Saves the given item model to the database.
  • Method Details

    • getItem

      ItemModel getItem(String typeCode, String id)
      Deprecated.
      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)
      Deprecated.
      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)
      Deprecated.
      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)
      Deprecated.
      Saves the given item model to the database.
      Parameters:
      item - the item model