Interface ItemService
- All Known Implementing Classes:
AnonItemService,SuperuserItemService
public interface ItemService
Allows for accessing of the various
Items in the database.-
Method Summary
Modifier and TypeMethodDescriptioncreateItem(CreateItemRequest item) Creates a newItem.getItemByIdOrName(String identifier) Get anItemby it's specific database-unique identifier.Gets zero or moreItems from the database.updateItem(String identifier, UpdateItemRequest item) Updates the specificItem.
-
Method Details
-
getItemByIdOrName
Get anItemby it's specific database-unique identifier.- Parameters:
identifier- the identifier- Returns:
- the
Item
-
getItems
Gets zero or moreItems from the database.- Returns:
- the
Item
-
updateItem
Updates the specificItem.- Parameters:
item- the item to update- Returns:
- the item, as it was written
-
createItem
Creates a newItem.- Parameters:
item- theItemto create- Returns:
- the item, as it was written
-