Package | Description |
---|---|
be.ac.ulb.infof307.g02.controllers | |
be.ac.ulb.infof307.g02.database | |
be.ac.ulb.infof307.g02.models | |
be.ac.ulb.infof307.g02.utils | |
be.ac.ulb.infof307.g02.views |
Modifier and Type | Method and Description |
---|---|
void |
ArticleImportationObserver.articleImported(Article article) |
void |
ImportArticlesController.articleImported(Article article)
Tells the view that a new article has been created
|
Modifier and Type | Method and Description |
---|---|
void |
ImportArticlesController.importArticles(java.util.List<Article> articlesToImport)
Imports the products added manually be the user
|
Modifier and Type | Method and Description |
---|---|
void |
ShopDB.insertArticleInShop(int shopID,
Article article)
Inserts an article into a shop in the database
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Product,Article> |
Shop.stock |
Modifier and Type | Method and Description |
---|---|
java.util.Map<Product,Article> |
Shop.getStock() |
Modifier and Type | Method and Description |
---|---|
void |
Shop.addToStock(Article article)
Adds an article to the stock
|
Constructor and Description |
---|
Shop(int id,
java.lang.String name,
Schedule schedule,
Position position,
java.util.Map<Product,Article> stock)
Construct the Shop given the ID (from the database).
|
Shop(java.lang.String name,
Schedule schedule,
Position position,
java.util.Map<Product,Article> stock)
Construct the Shop without a real ID (indicated by having ID=1).
|
Modifier and Type | Method and Description |
---|---|
Article |
ArticleConverter.toObject(javafx.util.Pair<Product,java.lang.Double> pair) |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<Article> |
ArticleImporterFromFile.checkContentConsistency(java.util.List<org.apache.commons.csv.CSVRecord> records)
Checks if all the records, except headers, of the CSV file are consistent.
|
private static java.util.List<Article> |
ArticleImporterFromFile.checkFileConsistency(java.util.List<org.apache.commons.csv.CSVRecord> records)
Checks if the CSV file is consistent (headers + records).
|
Modifier and Type | Method and Description |
---|---|
javafx.util.Pair<Product,java.lang.Double> |
ArticleConverter.toProductDoublePair(Article toConvert) |
Modifier and Type | Method and Description |
---|---|
private void |
ArticleImporterFromFile.insertToDatabase(java.util.List<Article> articlesToImport,
Shop shop)
Inserts all the articles into the shop, by adding the products and articles in the database
|
Modifier and Type | Field and Description |
---|---|
private ListComponent<Article> |
ImportArticlesView.listComponent |