Interface ItemService

All Known Implementing Classes:
AnonItemService, SuperuserItemService

public interface ItemService
Allows for accessing of the various Items in the database.
  • Method Details

    • getItemByIdOrName

      Item getItemByIdOrName(String identifier)
      Get an Item by it's specific database-unique identifier.
      Parameters:
      identifier - the identifier
      Returns:
      the Item
    • getItems

      Pagination<Item> getItems(int offset, int count, List<String> tags, String category, String query)
      Gets zero or more Items from the database.
      Returns:
      the Item
    • updateItem

      Item updateItem(String identifier, UpdateItemRequest item)
      Updates the specific Item.
      Parameters:
      item - the item to update
      Returns:
      the item, as it was written
    • createItem

      Item createItem(CreateItemRequest item)
      Creates a new Item.
      Parameters:
      item - the Item to create
      Returns:
      the item, as it was written