Package | Description |
---|---|
pb138.dal.entities | |
pb138.dal.repository | |
pb138.service.facades | |
pb138.service.filters | |
pb138.service.services | |
pb138.web.email |
Modifier and Type | Method and Description |
---|---|
Item |
Shipment.getItem()
Gets item
|
Item |
Sale.getItem()
Gets item
|
Modifier and Type | Method and Description |
---|---|
void |
Shipment.setItem(Item item)
Sets item
|
void |
Sale.setItem(Item item)
Sets item
|
Modifier and Type | Method and Description |
---|---|
Item |
ItemRepository.getById(long id)
Retrieves entity by id
|
Modifier and Type | Method and Description |
---|---|
Iterable<Item> |
ItemRepository.find(ItemFilter filter)
Filters according to criteria specified by filter
|
Modifier and Type | Method and Description |
---|---|
void |
ItemRepository.create(Item item)
Creates entity in database
|
void |
ItemRepository.delete(Item item)
Deletes the entity from database
|
void |
ItemRepository.update(Item item)
Updates entity in database
|
Modifier and Type | Method and Description |
---|---|
Item |
ItemFacadeImpl.changeItem(String newName,
String newDescription,
String newCategory,
Integer newAlertThreshold,
String newUnit,
Item item) |
Item |
ItemFacade.changeItem(String newName,
String newDescription,
String newCategory,
Integer newAlertThreshold,
String newUnit,
Item item)
Updates existing item, but doesn't store it in db
|
Item |
ItemFacadeImpl.getItemByEan(long ean) |
Item |
ItemFacade.getItemByEan(long ean)
Gets item by its ean
|
Item |
ItemFacadeImpl.storeItemInDb(Pair<Item,CreateOrUpdate> i) |
Item |
ItemFacade.storeItemInDb(Pair<Item,CreateOrUpdate> i)
Item will be created in db
|
Item |
ItemFacadeImpl.updateItemFromWeb(long ean,
int newAmount,
Integer newThreshold,
String newUnit) |
Item |
ItemFacade.updateItemFromWeb(long ean,
int newAmount,
Integer newThreshold,
String newUnit)
For updating items from web interface
|
Modifier and Type | Method and Description |
---|---|
Pair<Item,CreateOrUpdate> |
ItemFacadeImpl.createOrUpdateItem(String name,
String description,
String categoryName,
Integer alertThreshold,
String unit,
long ean) |
Pair<Item,CreateOrUpdate> |
ItemFacade.createOrUpdateItem(String name,
String description,
String categoryName,
Integer alertThreshold,
String unit,
long ean)
Creates a new item, or updates it if it already exist but doesn't do the actual storing in db
|
List<Item> |
ItemFacadeImpl.getAllItems() |
List<Item> |
ItemFacade.getAllItems()
Return all items
|
List<Item> |
ItemFacadeImpl.getAllItemsByCategory(String categoryName) |
List<Item> |
ItemFacade.getAllItemsByCategory(String categoryName)
Return all items with given category
|
Modifier and Type | Method and Description |
---|---|
Item |
ItemFacadeImpl.changeItem(String newName,
String newDescription,
String newCategory,
Integer newAlertThreshold,
String newUnit,
Item item) |
Item |
ItemFacade.changeItem(String newName,
String newDescription,
String newCategory,
Integer newAlertThreshold,
String newUnit,
Item item)
Updates existing item, but doesn't store it in db
|
List<Sale> |
SaleFacadeImpl.getSalesForProduct(Item item,
Date from,
Date to) |
List<Sale> |
SaleFacade.getSalesForProduct(Item item,
Date from,
Date to)
Get all sales for given item from given period of time
|
Modifier and Type | Method and Description |
---|---|
Item |
ItemFacadeImpl.storeItemInDb(Pair<Item,CreateOrUpdate> i) |
Item |
ItemFacade.storeItemInDb(Pair<Item,CreateOrUpdate> i)
Item will be created in db
|
Modifier and Type | Method and Description |
---|---|
Item |
ShipmentFilter.getItem()
Gets item
|
Item |
SaleFilter.getItem()
Gets item
|
Modifier and Type | Method and Description |
---|---|
void |
ShipmentFilter.setItem(Item item)
Sets item
|
void |
SaleFilter.setItem(Item item)
Sets item
|
Modifier and Type | Method and Description |
---|---|
Item |
ItemServiceImpl.getByEan(long ean) |
Item |
ItemService.getByEan(long ean)
Return item of given ean
|
Item |
ItemServiceImpl.getById(long id) |
Item |
ItemService.getById(long id)
Return item of given id
|
Modifier and Type | Method and Description |
---|---|
List<Item> |
ItemServiceImpl.getAllItems() |
List<Item> |
ItemService.getAllItems()
Returns list of all items
|
List<Item> |
ItemServiceImpl.getByCategory(Category c) |
List<Item> |
ItemService.getByCategory(Category c)
Returns all items belonging to given category
|
Modifier and Type | Method and Description |
---|---|
long |
ItemServiceImpl.create(Item item) |
long |
ItemService.create(Item item)
Creates new item
|
void |
ItemServiceImpl.delete(Item item) |
void |
ItemService.delete(Item item)
Deletes item
|
void |
ItemServiceImpl.update(Item item) |
void |
ItemService.update(Item item)
Updates item
|
Modifier and Type | Method and Description |
---|---|
void |
EmailSender.sendAlerts(List<Item> items)
Sends email alerts for all items below a threshold
|
Modifier and Type | Method and Description |
---|---|
void |
EmailSenderImpl.sendAlerts(List<Item> items) |
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.