Class SuperuserItemService

java.lang.Object
dev.getelements.elements.service.goods.SuperuserItemService
All Implemented Interfaces:
ItemService

public class SuperuserItemService extends Object implements ItemService
  • Constructor Details

    • SuperuserItemService

      public SuperuserItemService()
  • Method Details

    • getItemByIdOrName

      public Item getItemByIdOrName(String identifier)
      Description copied from interface: ItemService
      Get an Item by it's specific database-unique identifier.
      Specified by:
      getItemByIdOrName in interface ItemService
      Parameters:
      identifier - the identifier
      Returns:
      the Item
    • getItems

      public Pagination<Item> getItems(int offset, int count, List<String> tags, String category, String query)
      Description copied from interface: ItemService
      Gets zero or more Items from the database.
      Specified by:
      getItems in interface ItemService
      Returns:
      the Item
    • updateItem

      public Item updateItem(String identifier, UpdateItemRequest itemRequest)
      Description copied from interface: ItemService
      Updates the specific Item.
      Specified by:
      updateItem in interface ItemService
      Parameters:
      itemRequest - the item to update
      Returns:
      the item, as it was written
    • createItem

      public Item createItem(CreateItemRequest itemRequest)
      Description copied from interface: ItemService
      Creates a new Item.
      Specified by:
      createItem in interface ItemService
      Parameters:
      itemRequest - the Item to create
      Returns:
      the item, as it was written
    • deleteItem

      public void deleteItem(String identifier)
      Description copied from interface: ItemService
      Soft deletes the item with the given identifier.
      Specified by:
      deleteItem in interface ItemService
      Parameters:
      identifier - Item name or id
    • getItemDao

      public ItemDao getItemDao()
    • setItemDao

      @Inject public void setItemDao(ItemDao itemDao)
    • getMetadataSpecDao

      public MetadataSpecDao getMetadataSpecDao()
    • setMetadataSpecDao

      @Inject public void setMetadataSpecDao(MetadataSpecDao metadataSpecDao)
    • getItemLedgerDao

      public ItemLedgerDao getItemLedgerDao()
    • setItemLedgerDao

      @Inject public void setItemLedgerDao(ItemLedgerDao itemLedgerDao)
    • getUser

      public User getUser()
    • setUser

      @Inject public void setUser(User user)