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 anItem
by it's specific database-unique identifier.Gets zero or moreItem
s from the database.void
setItemDao
(ItemDao itemDao) updateItem
(String id, UpdateItemRequest item) Updates the specificItem
.
-
Constructor Details
-
AnonItemService
public AnonItemService()
-
-
Method Details
-
getItemByIdOrName
Description copied from interface:ItemService
Get anItem
by it's specific database-unique identifier.- Specified by:
getItemByIdOrName
in 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:ItemService
Gets zero or moreItem
s from the database.- Specified by:
getItems
in interfaceItemService
- Returns:
- the
Item
-
updateItem
Description copied from interface:ItemService
Updates the specificItem
.- Specified by:
updateItem
in interfaceItemService
- Parameters:
item
- the item to update- Returns:
- the item, as it was written
-
createItem
Description copied from interface:ItemService
Creates a newItem
.- Specified by:
createItem
in interfaceItemService
- Parameters:
item
- theItem
to create- Returns:
- the item, as it was written
-
getItemDao
-
setItemDao
-