Class AnonItemService
java.lang.Object
dev.getelements.elements.service.goods.AnonItemService
- All Implemented Interfaces:
ItemService
-
Constructor Summary
Constructors -
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.voidsetItemDao(ItemDao itemDao) updateItem(String id, UpdateItemRequest item) Updates the specificItem.
-
Constructor Details
-
AnonItemService
public AnonItemService()
-
-
Method Details
-
getItemByIdOrName
Description copied from interface:ItemServiceGet anItemby it's specific database-unique identifier.- Specified by:
getItemByIdOrNamein interfaceItemService- 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:ItemServiceGets zero or moreItems from the database.- Specified by:
getItemsin interfaceItemService- Returns:
- the
Item
-
updateItem
Description copied from interface:ItemServiceUpdates the specificItem.- Specified by:
updateItemin interfaceItemService- Parameters:
item- the item to update- Returns:
- the item, as it was written
-
createItem
Description copied from interface:ItemServiceCreates a newItem.- Specified by:
createItemin interfaceItemService- Parameters:
item- theItemto create- Returns:
- the item, as it was written
-
getItemDao
-
setItemDao
-