Skip navigation links
A B C D E F G H I M N O P S T U V X 

A

addSale(long, Date, int) - Method in interface pb138.service.facades.SaleFacade
Adds one sale
addSale(long, Date, int) - Method in class pb138.service.facades.SaleFacadeImpl
 
addShipment(long, Date, int) - Method in interface pb138.service.facades.ShipmentFacade
Creates a new shipment, does not store it in db
addShipment(long, Date, int) - Method in class pb138.service.facades.ShipmentFacadeImpl
 
Automapper - Interface in pb138.service.mapper
Interface for mapping between DAL Entities and DTOs in Web layer
AutomapperImpl - Class in pb138.service.mapper
AutomapperImpl(DozerBeanMapper) - Constructor for class pb138.service.mapper.AutomapperImpl

B

BaseEntity - Class in pb138.dal.entities
Abstract base class for ORM Entities
BaseEntity() - Constructor for class pb138.dal.entities.BaseEntity
 

C

Category - Class in pb138.dal.entities
ORM Category PK: id BK: name
Category() - Constructor for class pb138.dal.entities.Category
 
CategoryDto - Class in pb138.service.dto
CategoryDto
CategoryDto() - Constructor for class pb138.service.dto.CategoryDto
 
CategoryFacade - Interface in pb138.service.facades
Interface for working with categories
CategoryFacadeImpl - Class in pb138.service.facades
Implements category facade
CategoryFacadeImpl(CategoryService) - Constructor for class pb138.service.facades.CategoryFacadeImpl
Constructor.
CategoryFilter - Class in pb138.service.filters
CategoryFilter() - Constructor for class pb138.service.filters.CategoryFilter
 
CategoryImporter - Interface in pb138.service.xmlImportExport
For importing categories
CategoryImporterImpl - Class in pb138.service.xmlImportExport
Implements category importer
CategoryImporterImpl(CategoryFacade) - Constructor for class pb138.service.xmlImportExport.CategoryImporterImpl
Constructor
CategoryRepository - Interface in pb138.dal.repository
CategoryService - Interface in pb138.service.services
Class for working with categories
CategoryServiceImpl - Class in pb138.service.services
Implements category service
CategoryServiceImpl(CategoryRepository) - Constructor for class pb138.service.services.CategoryServiceImpl
Construcot
changeItem(String, String, String, Integer, String, Item) - Method in interface pb138.service.facades.ItemFacade
Updates existing item, but doesn't store it in db
changeItem(String, String, String, Integer, String, Item) - Method in class pb138.service.facades.ItemFacadeImpl
 
changeItem(long, int, String, Integer) - Method in class pb138.web.controllers.SoapBean
Changes the parameters of an item
ConstraintValidator - Interface in pb138.dal.repository.validation
Validates ORM entity constraints
ConstraintValidatorImpl - Class in pb138.dal.repository.validation
Validates ORM entity constraints
ConstraintValidatorImpl() - Constructor for class pb138.dal.repository.validation.ConstraintValidatorImpl
Constructs a default validator
create(Category) - Method in interface pb138.dal.repository.CategoryRepository
Creates entity in database
create(T) - Method in interface pb138.dal.repository.EntityRepository
Creates entity in database
create(Item) - Method in interface pb138.dal.repository.ItemRepository
Creates entity in database
create(Sale) - Method in interface pb138.dal.repository.SaleRepository
Creates entity in database
create(Shipment) - Method in interface pb138.dal.repository.ShipmentRepository
Creates entity in database
create(Category) - Method in interface pb138.service.services.CategoryService
Creates new category
create(Category) - Method in class pb138.service.services.CategoryServiceImpl
 
create(Item) - Method in interface pb138.service.services.ItemService
Creates new item
create(Item) - Method in class pb138.service.services.ItemServiceImpl
 
create(Sale) - Method in interface pb138.service.services.SaleService
Creates new sale
create(Sale) - Method in class pb138.service.services.SaleServiceImpl
 
create(Shipment) - Method in interface pb138.service.services.ShipmentService
Creates new shipment
create(Shipment) - Method in class pb138.service.services.ShipmentServiceImpl
 
CreateOrUpdate - Enum in pb138.service.facades
Enum that says whether the item will be updated or created
createOrUpdateCategory(String, String) - Method in interface pb138.service.facades.CategoryFacade
Creates a new category, or updates it if another one with given name exist;
createOrUpdateCategory(String, String) - Method in class pb138.service.facades.CategoryFacadeImpl
 
createOrUpdateItem(String, String, String, Integer, String, long) - Method in interface pb138.service.facades.ItemFacade
Creates a new item, or updates it if it already exist but doesn't do the actual storing in db
createOrUpdateItem(String, String, String, Integer, String, long) - Method in class pb138.service.facades.ItemFacadeImpl
 

D

delete(Category) - Method in interface pb138.dal.repository.CategoryRepository
Deletes the entity from database
delete(T) - Method in interface pb138.dal.repository.EntityRepository
Deletes the entity from database
delete(Item) - Method in interface pb138.dal.repository.ItemRepository
Deletes the entity from database
delete(Sale) - Method in interface pb138.dal.repository.SaleRepository
Deletes the entity from database
delete(Shipment) - Method in interface pb138.dal.repository.ShipmentRepository
Deletes the entity from database
delete(Category) - Method in interface pb138.service.services.CategoryService
Deletes category
delete(Category) - Method in class pb138.service.services.CategoryServiceImpl
 
delete(Item) - Method in interface pb138.service.services.ItemService
Deletes item
delete(Item) - Method in class pb138.service.services.ItemServiceImpl
 
delete(Sale) - Method in interface pb138.service.services.SaleService
Deletes sale
delete(Sale) - Method in class pb138.service.services.SaleServiceImpl
 
delete(Shipment) - Method in interface pb138.service.services.ShipmentService
Deletes shipment
delete(Shipment) - Method in class pb138.service.services.ShipmentServiceImpl
 

E

EmailConfigLoader - Interface in pb138.web.email
Responsible for loading email sender configuration files
EmailConfigLoaderImpl - Class in pb138.web.email
EmailConfigLoaderImpl() - Constructor for class pb138.web.email.EmailConfigLoaderImpl
 
EmailScheduler - Class in pb138.web.email
Spring Scheduled class for sending emails every 24 hours
EmailScheduler(ItemCountWatchdogService, EmailConfigLoader) - Constructor for class pb138.web.email.EmailScheduler
DI constructor
EmailSender - Interface in pb138.service.services
Sends email alerts for all items below a threshold
EmailSenderImpl - Class in pb138.web.email
Sends an alert when count gets below a threshold
EmailSenderImpl(MailSender, SimpleMailMessage) - Constructor for class pb138.web.email.EmailSenderImpl
DI constructor
EntityAlreadyExistsException - Exception in pb138.service.exceptions
Exception for cases when item with the same business key already exists
EntityAlreadyExistsException(String) - Constructor for exception pb138.service.exceptions.EntityAlreadyExistsException
Creates new exception with given message
EntityDoesNotExistException - Exception in pb138.service.exceptions
Exception for cases when referenced item doesn't exist
EntityDoesNotExistException(String) - Constructor for exception pb138.service.exceptions.EntityDoesNotExistException
Creates new exception with given message
EntityDoesNotExistException(String, Throwable) - Constructor for exception pb138.service.exceptions.EntityDoesNotExistException
Creates new exception with given message
EntityFilter - Interface in pb138.service.filters
Represents a filter for filtering entities by user specified criteria No criteria fetches all items from the database
EntityRepository<T> - Interface in pb138.dal.repository
Represents a repository for entity manipulation and retrieval
EntityValidationException - Exception in pb138.dal.repository.validation
Represents exceptions thrown on constraint violations
EntityValidationException(String) - Constructor for exception pb138.dal.repository.validation.EntityValidationException
Represents exceptions thrown on constraint violations
EntityValidationException(String, Throwable) - Constructor for exception pb138.dal.repository.validation.EntityValidationException
Represents exceptions thrown on constraint violations
equals(Object) - Method in class pb138.dal.entities.Category
 
equals(Object) - Method in class pb138.dal.entities.Item
 
equals(Object) - Method in class pb138.dal.entities.Sale
 
equals(Object) - Method in class pb138.dal.entities.Shipment
 
equals(Object) - Method in class pb138.utils.Pair
Test this Pair for equality with another Object.
executeScan() - Method in class pb138.web.email.EmailScheduler
Executes scan of database with predetermined delay
exportAllItemsToXml() - Method in class pb138.web.controllers.SoapBean
Exports all items from DB
exportCategoryResultToXml(List<OverviewResultCategory>) - Method in interface pb138.service.overview.OverviewXmlExporter
Export overview results for category to xml.
exportCategoryResultToXml(List<OverviewResultCategory>) - Method in class pb138.service.overview.OverviewXmlExporterImpl
 
exportItemResultToXml(List<OverviewResultItem>) - Method in interface pb138.service.overview.OverviewXmlExporter
Export overview results for item to xml.
exportItemResultToXml(List<OverviewResultItem>) - Method in class pb138.service.overview.OverviewXmlExporterImpl
 
exportXmlToDoc() - Method in interface pb138.service.xmlImportExport.XmlExporter
Exports all items in database to xml file
exportXmlToDoc() - Method in class pb138.service.xmlImportExport.XmlExporterImpl
 
exportXmlToString() - Method in interface pb138.service.xmlImportExport.XmlExporter
Exports all items in database to string with XML
exportXmlToString() - Method in class pb138.service.xmlImportExport.XmlExporterImpl
 
extractEmailConfig() - Method in interface pb138.web.email.EmailConfigLoader
Returns map containing email config
extractEmailConfig() - Method in class pb138.web.email.EmailConfigLoaderImpl
Returns map containing email config

F

find(CategoryFilter) - Method in interface pb138.dal.repository.CategoryRepository
Filters according to criteria specified by filter
find(ItemFilter) - Method in interface pb138.dal.repository.ItemRepository
Filters according to criteria specified by filter
find(SaleFilter) - Method in interface pb138.dal.repository.SaleRepository
Filters according to criteria specified by filter
find(ShipmentFilter) - Method in interface pb138.dal.repository.ShipmentRepository
Filters according to criteria specified by filter

G

getAlertThreshold() - Method in class pb138.dal.entities.Item
Gets alertThreshold
getAlertThreshold() - Method in class pb138.service.dto.ItemDto
Gets alertThreshold
getAllCategories() - Method in interface pb138.service.facades.CategoryFacade
Get all categories from db.
getAllCategories() - Method in class pb138.service.facades.CategoryFacadeImpl
 
getAllCategories() - Method in interface pb138.service.services.CategoryService
Returns list of all categories
getAllCategories() - Method in class pb138.service.services.CategoryServiceImpl
 
getAllCategories() - Method in class pb138.web.controllers.SoapBean
Returns all categories
getAllItems() - Method in interface pb138.service.facades.ItemFacade
Return all items
getAllItems() - Method in class pb138.service.facades.ItemFacadeImpl
 
getAllItems() - Method in interface pb138.service.services.ItemService
Returns list of all items
getAllItems() - Method in class pb138.service.services.ItemServiceImpl
 
getAllItems() - Method in class pb138.web.controllers.SoapBean
Returns a list of all items in DB
getAllItemsByCategory(String) - Method in interface pb138.service.facades.ItemFacade
Return all items with given category
getAllItemsByCategory(String) - Method in class pb138.service.facades.ItemFacadeImpl
 
getAllItemsForCategory(String) - Method in class pb138.web.controllers.SoapBean
Gets all items in category
getAllSales() - Method in interface pb138.service.facades.SaleFacade
Get all sales
getAllSales() - Method in class pb138.service.facades.SaleFacadeImpl
 
getAllShipments() - Method in interface pb138.service.facades.ShipmentFacade
Get all shipments
getAllShipments() - Method in class pb138.service.facades.ShipmentFacadeImpl
 
getAllShipments() - Method in interface pb138.service.services.ShipmentService
Get all shipments
getAllShipments() - Method in class pb138.service.services.ShipmentServiceImpl
 
getByCategory(Category) - Method in interface pb138.service.services.ItemService
Returns all items belonging to given category
getByCategory(Category) - Method in class pb138.service.services.ItemServiceImpl
 
getByEan(long) - Method in interface pb138.service.services.ItemService
Return item of given ean
getByEan(long) - Method in class pb138.service.services.ItemServiceImpl
 
getByFilter(SaleFilter) - Method in interface pb138.service.services.SaleService
Returns sales based on given filter
getByFilter(SaleFilter) - Method in class pb138.service.services.SaleServiceImpl
 
getById(long) - Method in interface pb138.dal.repository.CategoryRepository
Retrieves entity by id
getById(long) - Method in interface pb138.dal.repository.EntityRepository
Retrieves entity by id
getById(long) - Method in interface pb138.dal.repository.ItemRepository
Retrieves entity by id
getById(long) - Method in interface pb138.dal.repository.SaleRepository
Retrieves entity by id
getById(long) - Method in interface pb138.dal.repository.ShipmentRepository
Retrieves entity by id
getById(long) - Method in interface pb138.service.services.CategoryService
Return category of given id
getById(long) - Method in class pb138.service.services.CategoryServiceImpl
 
getById(long) - Method in interface pb138.service.services.ItemService
Return item of given id
getById(long) - Method in class pb138.service.services.ItemServiceImpl
 
getById(long) - Method in interface pb138.service.services.SaleService
Return sale of given id
getById(long) - Method in class pb138.service.services.SaleServiceImpl
 
getById(long) - Method in interface pb138.service.services.ShipmentService
Return shipment of given id
getById(long) - Method in class pb138.service.services.ShipmentServiceImpl
 
getByName(String) - Method in interface pb138.service.services.CategoryService
Return category of given name
getByName(String) - Method in class pb138.service.services.CategoryServiceImpl
 
getCategory() - Method in class pb138.dal.entities.Item
Gets category
getCategory() - Method in class pb138.service.dto.ItemDto
Gets category
getCategory() - Method in class pb138.service.filters.ItemFilter
Gets category
getCategory() - Method in class pb138.service.filters.SaleFilter
Gets category
getCategory() - Method in class pb138.service.filters.ShipmentFilter
Gets category
getCategory() - Method in class pb138.service.overview.OverviewResultCategory
Gets category
getCategoryByName(String) - Method in interface pb138.service.facades.CategoryFacade
Find category with given name in db.
getCategoryByName(String) - Method in class pb138.service.facades.CategoryFacadeImpl
 
getCategoryByName(String) - Method in class pb138.web.controllers.SoapBean
Get category by categoryName
getCurrentCount() - Method in class pb138.dal.entities.Item
Gets currentCount
getCurrentCount() - Method in class pb138.service.dto.ItemDto
Gets currentCount
getDailySalesForCategory(String, Date, int) - Method in interface pb138.service.overview.OverviewProvider
Get daily count of sold items from given category.
getDailySalesForCategory(String, Date, int) - Method in class pb138.service.overview.OverviewProviderImpl
 
getDailySalesForCategory(String, Date, int) - Method in class pb138.web.controllers.SoapBean
Get daily count of sold items from given category.
getDailySalesForCategoryXml(String, Date, int) - Method in class pb138.web.controllers.SoapBean
Get daily count of sold items from given category.
getDailySalesForItem(long, Date, int) - Method in interface pb138.service.overview.OverviewProvider
Get daily count of sold items.
getDailySalesForItem(long, Date, int) - Method in class pb138.service.overview.OverviewProviderImpl
 
getDailySalesForItem(long, Date, int) - Method in class pb138.web.controllers.SoapBean
Get daily count of sold items.
getDailySalesForItemXml(long, Date, int) - Method in class pb138.web.controllers.SoapBean
Get daily count of sold items.
getDateImported() - Method in class pb138.dal.entities.Shipment
Gets dateImported
getDateImported() - Method in class pb138.service.dto.ShipmentDto
Gets dateImported
getDateImported() - Method in class pb138.service.filters.ShipmentFilter
Gets dateImported
getDateImportedFrom() - Method in class pb138.service.filters.ShipmentFilter
Gets dateImportedFrom INCLUSIVE
getDateImportedTo() - Method in class pb138.service.filters.ShipmentFilter
Gets dateImportedTo EXCLUSIVE
getDateSold() - Method in class pb138.dal.entities.Sale
Gets dateSold
getDateSold() - Method in class pb138.service.dto.SaleDto
Gets dateSold
getDateSold() - Method in class pb138.service.filters.SaleFilter
Gets dateSold
getDateSoldFrom() - Method in class pb138.service.filters.SaleFilter
Gets dateSoldFrom INCLUSIVE
getDateSoldTo() - Method in class pb138.service.filters.SaleFilter
Gets dateSoldTo EXCLUSIVE
getDescription() - Method in class pb138.dal.entities.Category
Gets description
getDescription() - Method in class pb138.dal.entities.Item
Gets description
getDescription() - Method in class pb138.service.dto.CategoryDto
Gets description
getDescription() - Method in class pb138.service.dto.ItemDto
Gets description
getEan() - Method in class pb138.dal.entities.Item
Gets ean
getEan() - Method in class pb138.service.dto.ItemDto
Gets ean
getEan() - Method in class pb138.service.filters.ItemFilter
Gets ean
getEntityCount() - Method in class pb138.service.overview.OverviewResultCategory
Gets entityCount
getEntityCount() - Method in class pb138.service.overview.OverviewResultItem
Gets entityCount
getFetchItemsBelowThreshold() - Method in class pb138.service.filters.ItemFilter
Items with count below specified threshold will be selected
getId() - Method in class pb138.dal.entities.BaseEntity
Gets id
getId() - Method in class pb138.service.dto.SaleDto
Gets id
getId() - Method in class pb138.service.dto.ShipmentDto
Gets id
getId() - Method in class pb138.service.filters.CategoryFilter
Gets id
getId() - Method in class pb138.service.filters.ItemFilter
Gets id
getId() - Method in class pb138.service.filters.SaleFilter
Gets id
getId() - Method in class pb138.service.filters.ShipmentFilter
Gets id
getItem() - Method in class pb138.dal.entities.Sale
Gets item
getItem() - Method in class pb138.dal.entities.Shipment
Gets item
getItem() - Method in class pb138.service.dto.SaleDto
Gets item
getItem() - Method in class pb138.service.dto.ShipmentDto
Gets item
getItem() - Method in class pb138.service.filters.SaleFilter
Gets item
getItem() - Method in class pb138.service.filters.ShipmentFilter
Gets item
getItem() - Method in class pb138.service.overview.OverviewResultItem
Gets item
getItemByEan(long) - Method in interface pb138.service.facades.ItemFacade
Gets item by its ean
getItemByEan(long) - Method in class pb138.service.facades.ItemFacadeImpl
 
getKey() - Method in class pb138.utils.Pair
Gets the key for this pair.
getMonthlySalesForCategory(String, Date, int) - Method in interface pb138.service.overview.OverviewProvider
Get monthly count of sold items from given category.
getMonthlySalesForCategory(String, Date, int) - Method in class pb138.service.overview.OverviewProviderImpl
 
getMonthlySalesForCategory(String, Date, int) - Method in class pb138.web.controllers.SoapBean
Get monthly count of sold items from given category.
getMonthlySalesForCategoryXml(String, Date, int) - Method in class pb138.web.controllers.SoapBean
Get monthly count of sold items from given category.
getMonthlySalesForItem(long, Date, int) - Method in interface pb138.service.overview.OverviewProvider
Get monthly count of sold items.
getMonthlySalesForItem(long, Date, int) - Method in class pb138.service.overview.OverviewProviderImpl
 
getMonthlySalesForItem(long, Date, int) - Method in class pb138.web.controllers.SoapBean
Get monthly count of sold items.
getMonthlySalesForItemXml(long, Date, int) - Method in class pb138.web.controllers.SoapBean
Get monthly count of sold items.
getName() - Method in class pb138.dal.entities.Category
Gets name
getName() - Method in class pb138.dal.entities.Item
Gets name
getName() - Method in class pb138.service.dto.CategoryDto
Gets name
getName() - Method in class pb138.service.dto.ItemDto
Gets name
getName() - Method in class pb138.service.filters.CategoryFilter
Gets name
getName() - Method in class pb138.service.filters.ItemFilter
Gets name
getQuantityImported() - Method in class pb138.dal.entities.Shipment
Gets quantityImported
getQuantityImported() - Method in class pb138.service.dto.ShipmentDto
Gets quantityImported
getQuantitySold() - Method in class pb138.dal.entities.Sale
Gets quantitySold
getQuantitySold() - Method in class pb138.service.dto.SaleDto
Gets quantitySold
getSalesForCategory(Category, Date, Date) - Method in interface pb138.service.facades.SaleFacade
Get all sales for given category from given period of time
getSalesForCategory(Category, Date, Date) - Method in class pb138.service.facades.SaleFacadeImpl
 
getSalesForProduct(Item, Date, Date) - Method in interface pb138.service.facades.SaleFacade
Get all sales for given item from given period of time
getSalesForProduct(Item, Date, Date) - Method in class pb138.service.facades.SaleFacadeImpl
 
getStartDate() - Method in class pb138.service.overview.OverviewResultCategory
Gets startDate
getStartDate() - Method in class pb138.service.overview.OverviewResultItem
Gets startDate
getTimespan() - Method in class pb138.service.overview.OverviewResultCategory
Gets timespan
getTimespan() - Method in class pb138.service.overview.OverviewResultItem
Gets timespan
getUnit() - Method in class pb138.dal.entities.Item
Gets unit
getUnit() - Method in class pb138.service.dto.ItemDto
Gets unit
getValue() - Method in class pb138.utils.Pair
Gets the value for this pair.
getWeeklySalesForCategory(String, Date, int) - Method in interface pb138.service.overview.OverviewProvider
Get weekly count of sold items from given category.
getWeeklySalesForCategory(String, Date, int) - Method in class pb138.service.overview.OverviewProviderImpl
 
getWeeklySalesForCategory(String, Date, int) - Method in class pb138.web.controllers.SoapBean
Get weekly count of sold items from given category.
getWeeklySalesForCategoryXml(String, Date, int) - Method in class pb138.web.controllers.SoapBean
Get weekly count of sold items from given category.
getWeeklySalesForItem(long, Date, int) - Method in interface pb138.service.overview.OverviewProvider
Get weekly count of sold items.
getWeeklySalesForItem(long, Date, int) - Method in class pb138.service.overview.OverviewProviderImpl
 
getWeeklySalesForItem(long, Date, int) - Method in class pb138.web.controllers.SoapBean
Get weekly count of sold items.
getWeeklySalesForItemXml(long, Date, int) - Method in class pb138.web.controllers.SoapBean
Get weekly count of sold items.

H

hashCode() - Method in class pb138.dal.entities.Category
 
hashCode() - Method in class pb138.dal.entities.Item
 
hashCode() - Method in class pb138.dal.entities.Sale
 
hashCode() - Method in class pb138.dal.entities.Shipment
 
hashCode() - Method in class pb138.utils.Pair
Generate a hash code for this Pair.

I

importCategories(Element) - Method in interface pb138.service.xmlImportExport.CategoryImporter
Imports categoires
importCategories(Element) - Method in class pb138.service.xmlImportExport.CategoryImporterImpl
 
importItems(Element) - Method in interface pb138.service.xmlImportExport.ItemImporter
Imports items
importItems(Element) - Method in class pb138.service.xmlImportExport.ItemImporterImpl
 
importSales(Element) - Method in interface pb138.service.xmlImportExport.SalesImporter
Imports sales
importSales(Element) - Method in class pb138.service.xmlImportExport.SalesImporterImpl
 
importShipments(Element) - Method in interface pb138.service.xmlImportExport.ShipmentImporter
Imports shipments
importShipments(Element) - Method in class pb138.service.xmlImportExport.ShipmentImporterImpl
 
importXml(String) - Method in interface pb138.service.xmlImportExport.XmlImporter
Imports xml file
importXml(String) - Method in class pb138.service.xmlImportExport.XmlImporterImpl
 
importXml(String) - Method in class pb138.web.controllers.SoapBean
Import XML
isValid(String, URL) - Method in interface pb138.service.xmlvalidator.XmlValidator
Check, if xml is valid against the schema.
isValid(String, URL) - Method in class pb138.service.xmlvalidator.XmlValidatorImpl
 
Item - Class in pb138.dal.entities
ORM Item PK: id BK: ean
Item() - Constructor for class pb138.dal.entities.Item
 
ItemCountWatchdogService - Interface in pb138.service.services
Class for watching whether current stock of items isn't below threshold
ItemCountWatchdogServiceImpl - Class in pb138.service.services
Implements watchdog
ItemCountWatchdogServiceImpl(ItemService, EmailSender) - Constructor for class pb138.service.services.ItemCountWatchdogServiceImpl
Constructor
ItemDto - Class in pb138.service.dto
ItemDto
ItemDto() - Constructor for class pb138.service.dto.ItemDto
 
ItemFacade - Interface in pb138.service.facades
For creating item from parameters and changing the stock amount I will find out whether the item with this ean exist(if getItemByEan returns null) and if it does, I will call update.
ItemFacadeImpl - Class in pb138.service.facades
Implements item facade
ItemFacadeImpl(ItemService, CategoryService) - Constructor for class pb138.service.facades.ItemFacadeImpl
Constructor.
ItemFilter - Class in pb138.service.filters
ItemFilter() - Constructor for class pb138.service.filters.ItemFilter
 
ItemImporter - Interface in pb138.service.xmlImportExport
For importing items
ItemImporterImpl - Class in pb138.service.xmlImportExport
Item importer
ItemImporterImpl(ItemFacade) - Constructor for class pb138.service.xmlImportExport.ItemImporterImpl
Constructor
ItemRepository - Interface in pb138.dal.repository
ItemService - Interface in pb138.service.services
Class for working with items
ItemServiceImpl - Class in pb138.service.services
Implements item service
ItemServiceImpl(ItemRepository) - Constructor for class pb138.service.services.ItemServiceImpl
Constructor

M

mapTo(Collection<?>, Class<Bean>) - Method in interface pb138.service.mapper.Automapper
Maps a generic collection of one Bean type onto targetClass Bean
mapTo(Object, Class<Bean>) - Method in interface pb138.service.mapper.Automapper
Maps one bean to another
mapTo(Collection<?>, Class<T>) - Method in class pb138.service.mapper.AutomapperImpl
Maps a generic collection of one Bean type onto targetClass Bean
mapTo(Object, Class<T>) - Method in class pb138.service.mapper.AutomapperImpl
Maps one bean to another

N

NotEnoughStoredException - Exception in pb138.service.exceptions
This is thrown when we want to sale more that is currently in stock
NotEnoughStoredException(String) - Constructor for exception pb138.service.exceptions.NotEnoughStoredException
Creates new exception with given message
NotEnoughStoredException(String, Throwable) - Constructor for exception pb138.service.exceptions.NotEnoughStoredException
Creates new exception with given message

O

OverviewProvider - Interface in pb138.service.overview
Provides overview of sold items.
OverviewProviderImpl - Class in pb138.service.overview
Implementation of OverviewProvider interface.
OverviewProviderImpl(SaleFacade, ItemService, CategoryService, Automapper) - Constructor for class pb138.service.overview.OverviewProviderImpl
Constructor.
OverviewResultCategory - Class in pb138.service.overview
Class representing overview of count of sold items from one category in given timespan.
OverviewResultCategory() - Constructor for class pb138.service.overview.OverviewResultCategory
Constructor.
OverviewResultCategory(Period, Date, CategoryDto, int) - Constructor for class pb138.service.overview.OverviewResultCategory
Constructor.
OverviewResultItem - Class in pb138.service.overview
Class representing overview of count of sold items in given timespan.
OverviewResultItem() - Constructor for class pb138.service.overview.OverviewResultItem
Constructor.
OverviewResultItem(Period, Date, ItemDto, int) - Constructor for class pb138.service.overview.OverviewResultItem
Constructor.
OverviewXmlExporter - Interface in pb138.service.overview
Exporter of overview results to xml.
OverviewXmlExporterImpl - Class in pb138.service.overview
Implementation of OverviewXmlExporter interface.
OverviewXmlExporterImpl(XmlValidator) - Constructor for class pb138.service.overview.OverviewXmlExporterImpl
Constructor.

P

Pair<K,V> - Class in pb138.utils
A convenience class to represent name-value pairs.
Pair(K, V) - Constructor for class pb138.utils.Pair
Creates a new pair
pb138.dal.entities - package pb138.dal.entities
 
pb138.dal.repository - package pb138.dal.repository
 
pb138.dal.repository.validation - package pb138.dal.repository.validation
 
pb138.service.dto - package pb138.service.dto
 
pb138.service.exceptions - package pb138.service.exceptions
 
pb138.service.facades - package pb138.service.facades
 
pb138.service.filters - package pb138.service.filters
 
pb138.service.mapper - package pb138.service.mapper
 
pb138.service.overview - package pb138.service.overview
 
pb138.service.services - package pb138.service.services
 
pb138.service.xmlImportExport - package pb138.service.xmlImportExport
 
pb138.service.xmlvalidator - package pb138.service.xmlvalidator
 
pb138.utils - package pb138.utils
 
pb138.web.controllers - package pb138.web.controllers
 
pb138.web.email - package pb138.web.email
 

S

Sale - Class in pb138.dal.entities
ORM Sale PK: id
Sale() - Constructor for class pb138.dal.entities.Sale
 
SaleDto - Class in pb138.service.dto
SaleDto
SaleDto() - Constructor for class pb138.service.dto.SaleDto
 
SaleFacade - Interface in pb138.service.facades
Facade for working with sales
SaleFacadeImpl - Class in pb138.service.facades
Implements SaleFacade
SaleFacadeImpl(SaleService, ItemService) - Constructor for class pb138.service.facades.SaleFacadeImpl
Constructor.
SaleFilter - Class in pb138.service.filters
SaleFilter() - Constructor for class pb138.service.filters.SaleFilter
 
SaleRepository - Interface in pb138.dal.repository
SaleService - Interface in pb138.service.services
Class for working with sales
SaleServiceImpl - Class in pb138.service.services
Implements sale service
SaleServiceImpl(SaleRepository) - Constructor for class pb138.service.services.SaleServiceImpl
Constructor
SalesImporter - Interface in pb138.service.xmlImportExport
For importing sales
SalesImporterImpl - Class in pb138.service.xmlImportExport
Sale importer
SalesImporterImpl(SaleFacade) - Constructor for class pb138.service.xmlImportExport.SalesImporterImpl
Constructor
scanItems() - Method in interface pb138.service.services.ItemCountWatchdogService
Goes through all items and sends notification with those that are below threshold
scanItems() - Method in class pb138.service.services.ItemCountWatchdogServiceImpl
 
sendAlerts(List<Item>) - Method in interface pb138.service.services.EmailSender
Sends email alerts for all items below a threshold
sendAlerts(List<Item>) - Method in class pb138.web.email.EmailSenderImpl
 
ServiceException - Exception in pb138.service.exceptions
Exception for cases when there are problems on service layer
ServiceException(String, Throwable) - Constructor for exception pb138.service.exceptions.ServiceException
Creates new exception with given message
ServiceException(String) - Constructor for exception pb138.service.exceptions.ServiceException
Creates new exception with given message
setAlertThreshold(Integer) - Method in class pb138.dal.entities.Item
Sets alertThreshold
setAlertThreshold(Integer) - Method in class pb138.service.dto.ItemDto
Sets alertThreshold
setCategory(Category) - Method in class pb138.dal.entities.Item
Sets category
setCategory(CategoryDto) - Method in class pb138.service.dto.ItemDto
Sets category
setCategory(Category) - Method in class pb138.service.filters.ItemFilter
Sets category
setCategory(Category) - Method in class pb138.service.filters.SaleFilter
Sets category
setCategory(Category) - Method in class pb138.service.filters.ShipmentFilter
Sets category
setCategory(CategoryDto) - Method in class pb138.service.overview.OverviewResultCategory
Sets category
setCurrentCount(int) - Method in class pb138.dal.entities.Item
Sets currentCount
setCurrentCount(int) - Method in class pb138.service.dto.ItemDto
Sets currentCount
setDateImported(Date) - Method in class pb138.dal.entities.Shipment
Sets dateImported
setDateImported(Date) - Method in class pb138.service.dto.ShipmentDto
Sets dateImported
setDateImported(Date) - Method in class pb138.service.filters.ShipmentFilter
Sets dateImported
setDateImportedFrom(Date) - Method in class pb138.service.filters.ShipmentFilter
Sets dateImportedFrom INCLUSIVE
setDateImportedTo(Date) - Method in class pb138.service.filters.ShipmentFilter
Sets dateImportedTo EXCLUSIVE
setDateSold(Date) - Method in class pb138.dal.entities.Sale
Sets dateSold
setDateSold(Date) - Method in class pb138.service.dto.SaleDto
Sets dateSold
setDateSold(Date) - Method in class pb138.service.filters.SaleFilter
Sets dateSold
setDateSoldFrom(Date) - Method in class pb138.service.filters.SaleFilter
Sets dateSoldFrom INCLUSIVE
setDateSoldTo(Date) - Method in class pb138.service.filters.SaleFilter
Sets dateSoldTo EXCLUSIVE
setDescription(String) - Method in class pb138.dal.entities.Category
Sets description
setDescription(String) - Method in class pb138.dal.entities.Item
Sets description
setDescription(String) - Method in class pb138.service.dto.CategoryDto
Sets description
setDescription(String) - Method in class pb138.service.dto.ItemDto
Sets description
setEan(long) - Method in class pb138.dal.entities.Item
Sets ean
setEan(long) - Method in class pb138.service.dto.ItemDto
Sets ean
setEan(Long) - Method in class pb138.service.filters.ItemFilter
Sets ean
setEntityCount(int) - Method in class pb138.service.overview.OverviewResultCategory
Sets entityCount
setEntityCount(int) - Method in class pb138.service.overview.OverviewResultItem
Sets entityCount
setFetchItemsBelowThreshold(Boolean) - Method in class pb138.service.filters.ItemFilter
Items with count below specified threshold will be selected
setId(long) - Method in class pb138.dal.entities.BaseEntity
Sets id
setId(Long) - Method in class pb138.service.dto.SaleDto
Sets id
setId(Long) - Method in class pb138.service.dto.ShipmentDto
Sets id
setId(Long) - Method in class pb138.service.filters.CategoryFilter
Sets id
setId(Long) - Method in class pb138.service.filters.ItemFilter
Sets id
setId(Long) - Method in class pb138.service.filters.SaleFilter
Sets id
setId(Long) - Method in class pb138.service.filters.ShipmentFilter
Sets id
setItem(Item) - Method in class pb138.dal.entities.Sale
Sets item
setItem(Item) - Method in class pb138.dal.entities.Shipment
Sets item
setItem(ItemDto) - Method in class pb138.service.dto.SaleDto
Sets item
setItem(ItemDto) - Method in class pb138.service.dto.ShipmentDto
Sets item
setItem(Item) - Method in class pb138.service.filters.SaleFilter
Sets item
setItem(Item) - Method in class pb138.service.filters.ShipmentFilter
Sets item
setItem(ItemDto) - Method in class pb138.service.overview.OverviewResultItem
Sets item
setName(String) - Method in class pb138.dal.entities.Category
Sets name
setName(String) - Method in class pb138.dal.entities.Item
Sets name
setName(String) - Method in class pb138.service.dto.CategoryDto
Sets name
setName(String) - Method in class pb138.service.dto.ItemDto
Sets name
setName(String) - Method in class pb138.service.filters.CategoryFilter
Sets name
setName(String) - Method in class pb138.service.filters.ItemFilter
Sets name
setQuantityImported(int) - Method in class pb138.dal.entities.Shipment
Sets quantityImported
setQuantityImported(int) - Method in class pb138.service.dto.ShipmentDto
Sets quantityImported
setQuantitySold(int) - Method in class pb138.dal.entities.Sale
Sets quantitySold
setQuantitySold(int) - Method in class pb138.service.dto.SaleDto
Sets quantitySold
setStartDate(Date) - Method in class pb138.service.overview.OverviewResultCategory
Sets startDate
setStartDate(Date) - Method in class pb138.service.overview.OverviewResultItem
Sets startDate
setTimespan(Period) - Method in class pb138.service.overview.OverviewResultCategory
Sets timespan
setTimespan(Period) - Method in class pb138.service.overview.OverviewResultItem
Sets timespan
setUnit(String) - Method in class pb138.dal.entities.Item
Sets unit
setUnit(String) - Method in class pb138.service.dto.ItemDto
Sets unit
Shipment - Class in pb138.dal.entities
ORM Shipment PK: id
Shipment() - Constructor for class pb138.dal.entities.Shipment
 
ShipmentDto - Class in pb138.service.dto
ShipmentDto
ShipmentDto() - Constructor for class pb138.service.dto.ShipmentDto
 
ShipmentFacade - Interface in pb138.service.facades
Facade for working with shipments;
ShipmentFacadeImpl - Class in pb138.service.facades
Implements shipment facade
ShipmentFacadeImpl(ShipmentService, ItemService) - Constructor for class pb138.service.facades.ShipmentFacadeImpl
Constructor.
ShipmentFilter - Class in pb138.service.filters
ShipmentFilter() - Constructor for class pb138.service.filters.ShipmentFilter
 
ShipmentImporter - Interface in pb138.service.xmlImportExport
For importing shipments
ShipmentImporterImpl - Class in pb138.service.xmlImportExport
Shipment importer
ShipmentImporterImpl(ShipmentFacade) - Constructor for class pb138.service.xmlImportExport.ShipmentImporterImpl
Constructor
ShipmentRepository - Interface in pb138.dal.repository
ShipmentService - Interface in pb138.service.services
Class for working with shipments
ShipmentServiceImpl - Class in pb138.service.services
Implements shipment service
ShipmentServiceImpl(ShipmentRepository) - Constructor for class pb138.service.services.ShipmentServiceImpl
Constructor
SoapBean - Class in pb138.web.controllers
SOAP API endpoint
SoapBean() - Constructor for class pb138.web.controllers.SoapBean
 
storeItemInDb(Pair<Item, CreateOrUpdate>) - Method in interface pb138.service.facades.ItemFacade
Item will be created in db
storeItemInDb(Pair<Item, CreateOrUpdate>) - Method in class pb138.service.facades.ItemFacadeImpl
 
storeSaleInDb(Sale) - Method in interface pb138.service.facades.SaleFacade
Store sale in db.
storeSaleInDb(Sale) - Method in class pb138.service.facades.SaleFacadeImpl
 
storeShipmentInDb(Shipment) - Method in interface pb138.service.facades.ShipmentFacade
Actually stores correctly created shipment in the db
storeShipmentInDb(Shipment) - Method in class pb138.service.facades.ShipmentFacadeImpl
 

T

toString() - Method in class pb138.utils.Pair
String representation of this Pair.

U

update(Category) - Method in interface pb138.dal.repository.CategoryRepository
Updates entity in database
update(T) - Method in interface pb138.dal.repository.EntityRepository
Updates entity in database
update(Item) - Method in interface pb138.dal.repository.ItemRepository
Updates entity in database
update(Sale) - Method in interface pb138.dal.repository.SaleRepository
Updates entity in database
update(Shipment) - Method in interface pb138.dal.repository.ShipmentRepository
Updates entity in database
update(Category) - Method in interface pb138.service.services.CategoryService
Updates category
update(Category) - Method in class pb138.service.services.CategoryServiceImpl
 
update(Item) - Method in interface pb138.service.services.ItemService
Updates item
update(Item) - Method in class pb138.service.services.ItemServiceImpl
 
update(Sale) - Method in interface pb138.service.services.SaleService
Updates sale
update(Sale) - Method in class pb138.service.services.SaleServiceImpl
 
update(Shipment) - Method in interface pb138.service.services.ShipmentService
Updates shipment
update(Shipment) - Method in class pb138.service.services.ShipmentServiceImpl
 
updateItemFromWeb(long, int, Integer, String) - Method in interface pb138.service.facades.ItemFacade
For updating items from web interface
updateItemFromWeb(long, int, Integer, String) - Method in class pb138.service.facades.ItemFacadeImpl
 

V

validate(Entity) - Method in interface pb138.dal.repository.validation.ConstraintValidator
Validates entity
validate(T) - Method in class pb138.dal.repository.validation.ConstraintValidatorImpl
Validates entity
validate(String, URL) - Method in interface pb138.service.xmlvalidator.XmlValidator
Validate xml against the schema.
validate(String, URL) - Method in class pb138.service.xmlvalidator.XmlValidatorImpl
 
valueOf(String) - Static method in enum pb138.service.facades.CreateOrUpdate
Returns the enum constant of this type with the specified name.
values() - Static method in enum pb138.service.facades.CreateOrUpdate
Returns an array containing the constants of this enum type, in the order they are declared.

X

XmlExporter - Interface in pb138.service.xmlImportExport
For exporting XML of current stock
XmlExporterImpl - Class in pb138.service.xmlImportExport
Implements XmlExporter
XmlExporterImpl(ItemFacade, XmlValidator) - Constructor for class pb138.service.xmlImportExport.XmlExporterImpl
Constructor
XmlImporter - Interface in pb138.service.xmlImportExport
Class for importing XML
XmlImporterImpl - Class in pb138.service.xmlImportExport
Implements XmlImporter
XmlImporterImpl(XmlValidator, ShipmentImporter, CategoryImporter, ItemImporter, SalesImporter) - Constructor for class pb138.service.xmlImportExport.XmlImporterImpl
Constructor
XmlValidationException - Exception in pb138.service.exceptions
Exception for cases when there are problems with XML validation
XmlValidationException(String) - Constructor for exception pb138.service.exceptions.XmlValidationException
Creates new exception with given message
XmlValidationException(String, Throwable) - Constructor for exception pb138.service.exceptions.XmlValidationException
Creates new exception with given message
XmlValidationException(Throwable) - Constructor for exception pb138.service.exceptions.XmlValidationException
Creates new exception with given message
XmlValidator - Interface in pb138.service.xmlvalidator
Class for calidating xml against the xml schema.
XmlValidatorImpl - Class in pb138.service.xmlvalidator
Xml validator
XmlValidatorImpl() - Constructor for class pb138.service.xmlvalidator.XmlValidatorImpl
 
A B C D E F G H I M N O P S T U V X 
Skip navigation links

Copyright © 2017 Pivotal Software, Inc.. All rights reserved.