Interface ItemService
- All Known Implementing Classes:
AnonItemService
,SuperuserItemService
public interface ItemService
Allows for accessing of the various
Item
s in the database.-
Method Summary
Modifier and TypeMethodDescriptioncreateItem
(CreateItemRequest item) Creates a newItem
.getItemByIdOrName
(String identifier) Get anItem
by it's specific database-unique identifier.Gets zero or moreItem
s from the database.updateItem
(String identifier, UpdateItemRequest item) Updates the specificItem
.
-
Method Details
-
getItemByIdOrName
Get anItem
by it's specific database-unique identifier.- Parameters:
identifier
- the identifier- Returns:
- the
Item
-
getItems
Gets zero or moreItem
s 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
- theItem
to create- Returns:
- the item, as it was written
-