From ef838f8e65a756b96529d5e1de296547adcb472d Mon Sep 17 00:00:00 2001 From: "Notmoo-PC\\Notmoo" Date: Tue, 23 Jan 2018 20:32:31 +0100 Subject: [PATCH] [CLIENT] Actualisation des TODO --- .../gui/frames/startup_frame/StartupFrameView.java | 2 +- .../gui/modules/stat_screen/StatScreenView.java | 2 +- .../stat_screen/StatisticFieldRenderer.java | 1 - .../pqt/client/module/account/AccountService.java | 10 +++++----- .../account/listeners/AccountListenerAdapter.java | 1 - .../account/listeners/SimpleAccountFirerer.java | 2 +- .../module/connection/ConnectionService.java | 2 +- .../module/connection/senders/HttpTextSender.java | 2 +- .../pqt/client/module/log/LogLineMakerManager.java | 4 ++-- .../java/com/pqt/client/module/log/LogService.java | 4 ++-- .../module/log/listeners/LogListenerAdapter.java | 2 -- .../module/log/listeners/SimpleLogFirerer.java | 3 +-- .../pqt/client/module/network/NetworkService.java | 6 +++--- .../com/pqt/client/module/query/QueryExecutor.java | 2 +- .../com/pqt/client/module/sale/SaleBuilder.java | 2 +- .../com/pqt/client/module/sale/SaleService.java | 4 ++-- .../module/sale/listeners/SaleListenerAdapter.java | 1 - .../module/sale/listeners/SimpleSaleFirerer.java | 1 - .../java/com/pqt/client/module/stat/StatDao.java | 8 ++++---- .../com/pqt/client/module/stat/StatService.java | 4 ++-- .../module/stat/listeners/SimpleStatFirerer.java | 1 - .../module/stock/Listeners/SimpleStockFirerer.java | 1 - .../java/com/pqt/client/module/stock/StockDao.java | 14 +++++++------- .../com/pqt/client/module/stock/StockService.java | 2 +- 24 files changed, 36 insertions(+), 45 deletions(-) diff --git a/Workspace/client/src/main/java/com/pqt/client/gui/frames/startup_frame/StartupFrameView.java b/Workspace/client/src/main/java/com/pqt/client/gui/frames/startup_frame/StartupFrameView.java index 13195383..e2440a75 100644 --- a/Workspace/client/src/main/java/com/pqt/client/gui/frames/startup_frame/StartupFrameView.java +++ b/Workspace/client/src/main/java/com/pqt/client/gui/frames/startup_frame/StartupFrameView.java @@ -79,7 +79,7 @@ public class StartupFrameView implements IFXComponent{ mainPane.getChildren().addAll(serverTitledPane, accountTitledPane, errorConsoleTitledPane, validationButton); }catch(Exception e){ - //TODO Shutdown software on exception + //TODO Shutdown software on exception and show error alert e.printStackTrace(); } } diff --git a/Workspace/client/src/main/java/com/pqt/client/gui/modules/stat_screen/StatScreenView.java b/Workspace/client/src/main/java/com/pqt/client/gui/modules/stat_screen/StatScreenView.java index f4aa9f28..25402d60 100644 --- a/Workspace/client/src/main/java/com/pqt/client/gui/modules/stat_screen/StatScreenView.java +++ b/Workspace/client/src/main/java/com/pqt/client/gui/modules/stat_screen/StatScreenView.java @@ -63,7 +63,7 @@ class StatScreenView implements IFXComponent { if(statistics.containsKey(StatisticFields.TOP_POPULAR_PRODUCTS.getStr())){ StringBuffer sb = new StringBuffer(GUIStringTool.getStatisticFieldsRenderer().render(StatisticFields.TOP_POPULAR_PRODUCTS)).append(" :"); - //TODO centraliser la récupération de la message factory, pour éviter les erreurs de aprsing quand il y aura plusieurs impl. de factory différentes + //TODO centraliser la récupération de la message factory, pour éviter les erreurs de parsing quand il y aura plusieurs impl. de factory différentes IObjectParser> parser = new GSonMessageToolFactory().getListParser(LightweightProduct.class); diff --git a/Workspace/client/src/main/java/com/pqt/client/gui/modules/stat_screen/StatisticFieldRenderer.java b/Workspace/client/src/main/java/com/pqt/client/gui/modules/stat_screen/StatisticFieldRenderer.java index 37cb7fa5..69ab669c 100644 --- a/Workspace/client/src/main/java/com/pqt/client/gui/modules/stat_screen/StatisticFieldRenderer.java +++ b/Workspace/client/src/main/java/com/pqt/client/gui/modules/stat_screen/StatisticFieldRenderer.java @@ -25,7 +25,6 @@ public class StatisticFieldRenderer implements IObjectStringRenderer products; diff --git a/Workspace/client/src/main/java/com/pqt/client/module/sale/SaleService.java b/Workspace/client/src/main/java/com/pqt/client/module/sale/SaleService.java index f82d3c2a..961d46a4 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/sale/SaleService.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/sale/SaleService.java @@ -9,8 +9,8 @@ import com.pqt.core.entities.sale.SaleType; import java.util.*; -//TODO écrire javadoc -//TODO add log lines +//TODO Issue #5 : écrire javadoc +//TODO Issue #6 : add log lines public class SaleService { private long saleId; diff --git a/Workspace/client/src/main/java/com/pqt/client/module/sale/listeners/SaleListenerAdapter.java b/Workspace/client/src/main/java/com/pqt/client/module/sale/listeners/SaleListenerAdapter.java index 5191f209..1627fa35 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/sale/listeners/SaleListenerAdapter.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/sale/listeners/SaleListenerAdapter.java @@ -2,7 +2,6 @@ package com.pqt.client.module.sale.listeners; import com.pqt.core.entities.sale.Sale; -//TODO écrire javadoc public class SaleListenerAdapter implements ISaleListener { diff --git a/Workspace/client/src/main/java/com/pqt/client/module/sale/listeners/SimpleSaleFirerer.java b/Workspace/client/src/main/java/com/pqt/client/module/sale/listeners/SimpleSaleFirerer.java index 43814c93..a3cd7af9 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/sale/listeners/SimpleSaleFirerer.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/sale/listeners/SimpleSaleFirerer.java @@ -2,7 +2,6 @@ package com.pqt.client.module.sale.listeners; import javax.swing.event.EventListenerList; -//TODO écrire javadoc public class SimpleSaleFirerer implements ISaleFirerer { diff --git a/Workspace/client/src/main/java/com/pqt/client/module/stat/StatDao.java b/Workspace/client/src/main/java/com/pqt/client/module/stat/StatDao.java index 57945add..37d6f8ed 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/stat/StatDao.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/stat/StatDao.java @@ -8,7 +8,7 @@ import com.pqt.client.module.stat.listeners.SimpleStatFirerer; import java.util.*; -//TODO écrire javadoc +//TODO Issue #5 : écrire javadoc public class StatDao { private Date lastRefreshTimestamp; @@ -32,20 +32,20 @@ public class StatDao { @Override public void err(Throwable cause) { eventFirerer.fireGetStatError(cause); - //TODO add log line + //TODO Issue #6 : add log line } @Override public void ref(Throwable cause) { eventFirerer.fireGetStatRefused(cause); - //TODO add log line + //TODO Issue #6 : add log line } @Override public void ack(Map stats) { replaceStats(stats); eventFirerer.fireGetStatSuccess(); - //TODO add log line + //TODO Issue #6 : add log line } }); } diff --git a/Workspace/client/src/main/java/com/pqt/client/module/stat/StatService.java b/Workspace/client/src/main/java/com/pqt/client/module/stat/StatService.java index fb09f6ce..f7402243 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/stat/StatService.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/stat/StatService.java @@ -5,8 +5,8 @@ import com.pqt.client.module.stat.listeners.IStatListener; import java.util.Map; -//TODO écrire javadoc -//TODO add log lines +//TODO Issue #5 : écrire javadoc +//TODO Issue #6 : add log lines public class StatService { private StatDao dao; diff --git a/Workspace/client/src/main/java/com/pqt/client/module/stat/listeners/SimpleStatFirerer.java b/Workspace/client/src/main/java/com/pqt/client/module/stat/listeners/SimpleStatFirerer.java index 3e57a15a..7dc92d8f 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/stat/listeners/SimpleStatFirerer.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/stat/listeners/SimpleStatFirerer.java @@ -2,7 +2,6 @@ package com.pqt.client.module.stat.listeners; import javax.swing.event.EventListenerList; -//TODO écrire javadoc public class SimpleStatFirerer implements IStatFirerer { private EventListenerList listeners; diff --git a/Workspace/client/src/main/java/com/pqt/client/module/stock/Listeners/SimpleStockFirerer.java b/Workspace/client/src/main/java/com/pqt/client/module/stock/Listeners/SimpleStockFirerer.java index a4f513e2..dea1d8bf 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/stock/Listeners/SimpleStockFirerer.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/stock/Listeners/SimpleStockFirerer.java @@ -3,7 +3,6 @@ package com.pqt.client.module.stock.Listeners; import javax.swing.event.EventListenerList; -//TODO écrire javadoc public class SimpleStockFirerer implements IStockFirerer { private EventListenerList listeners; diff --git a/Workspace/client/src/main/java/com/pqt/client/module/stock/StockDao.java b/Workspace/client/src/main/java/com/pqt/client/module/stock/StockDao.java index 5ec39eb5..cb19dd16 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/stock/StockDao.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/stock/StockDao.java @@ -14,7 +14,7 @@ import java.util.Collection; import java.util.Date; import java.util.List; -//TODO écrire javadoc +//TODO Issue #5 : écrire javadoc public class StockDao { private long updateId; @@ -45,18 +45,18 @@ public class StockDao { public void ack(Collection obj) { replaceProductList(obj); eventFirerer.fireGetProductListSuccessEvent(); - //TODO add log line + //TODO Issue #6 : add log line } @Override public void err(Throwable cause) { - //TODO add log line + //TODO Issue #6 : add log line eventFirerer.fireGetProductListErrorEvent(cause); } @Override public void ref(Throwable cause) { - //TODO add log line + //TODO Issue #6 : add log line eventFirerer.fireGetProductListRefusedEvent(cause); } }); @@ -82,20 +82,20 @@ public class StockDao { executor.executeUpdateQuery(updates, new INoItemMessageCallback() { @Override public void ack() { - //TODO add log line + //TODO Issue #6 : add log line refreshProductList(); eventFirerer.fireProductListUpdateSuccessEvent(currentUpdateId); } @Override public void err(Throwable cause) { - //TODO add log line + //TODO Issue #6 : add log line eventFirerer.fireProductListUpdateErrorEvent(currentUpdateId, cause); } @Override public void ref(Throwable cause) { - //TODO add log line + //TODO Issue #6 : add log line eventFirerer.fireProductListUpdateRefusedEvent(currentUpdateId, cause); } }); diff --git a/Workspace/client/src/main/java/com/pqt/client/module/stock/StockService.java b/Workspace/client/src/main/java/com/pqt/client/module/stock/StockService.java index 348d1ede..8fb2c54c 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/stock/StockService.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/stock/StockService.java @@ -7,7 +7,7 @@ import com.pqt.client.module.stock.Listeners.IStockListener; import java.util.Date; import java.util.List; -//TODO Add log lines +//TODO Issue #6 : Add log lines public class StockService { private StockDao dao;