[CLIENT] Actualisation des TODO

This commit is contained in:
Notmoo-PC\Notmoo 2018-01-23 20:32:31 +01:00
parent d5c3fbbdc6
commit ef838f8e65
24 changed files with 36 additions and 45 deletions

View File

@ -79,7 +79,7 @@ public class StartupFrameView implements IFXComponent{
mainPane.getChildren().addAll(serverTitledPane, accountTitledPane, errorConsoleTitledPane, validationButton); mainPane.getChildren().addAll(serverTitledPane, accountTitledPane, errorConsoleTitledPane, validationButton);
}catch(Exception e){ }catch(Exception e){
//TODO Shutdown software on exception //TODO Shutdown software on exception and show error alert
e.printStackTrace(); e.printStackTrace();
} }
} }

View File

@ -63,7 +63,7 @@ class StatScreenView implements IFXComponent {
if(statistics.containsKey(StatisticFields.TOP_POPULAR_PRODUCTS.getStr())){ if(statistics.containsKey(StatisticFields.TOP_POPULAR_PRODUCTS.getStr())){
StringBuffer sb = new StringBuffer(GUIStringTool.getStatisticFieldsRenderer().render(StatisticFields.TOP_POPULAR_PRODUCTS)).append(" :"); 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<List<LightweightProduct>> parser = IObjectParser<List<LightweightProduct>> parser =
new GSonMessageToolFactory().getListParser(LightweightProduct.class); new GSonMessageToolFactory().getListParser(LightweightProduct.class);

View File

@ -25,7 +25,6 @@ public class StatisticFieldRenderer implements IObjectStringRenderer<StatisticFi
@Override @Override
public String render(StatisticFields field){ public String render(StatisticFields field){
//TODO faire le renderer
if(strings.containsKey(field)) if(strings.containsKey(field))
return strings.get(field); return strings.get(field);
return field.getStr(); return field.getStr();

View File

@ -16,8 +16,8 @@ import java.util.List;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
//TODO écrire javadoc //TODO écrire javadoc
//TODO add log lines //TODO Issue #6 : add log lines
//TODO supporter la modif de comptes //TODO Issue #17 : supporter la modif de comptes
public class AccountService { public class AccountService {
private QueryExecutor executor; private QueryExecutor executor;
@ -131,13 +131,13 @@ public class AccountService {
this.addListener(new AccountListenerAdapter() { this.addListener(new AccountListenerAdapter() {
@Override @Override
public void onAccountStatusChangedEvent(boolean status) { public void onAccountStatusChangedEvent(boolean status) {
//TODO ajouter des logs //TODO Issue #6 : ajouter des logs
latch.countDown(); latch.countDown();
} }
@Override @Override
public void onAccountStatusNotChangedEvent(Throwable cause) { public void onAccountStatusNotChangedEvent(Throwable cause) {
//TODO ajouter des logs //TODO Issue #6 : ajouter des logs
cause.printStackTrace(); cause.printStackTrace();
latch.countDown(); latch.countDown();
} }
@ -146,7 +146,7 @@ public class AccountService {
}).start(); }).start();
latch.await(); // Wait for thread to call latch.countDown() latch.await(); // Wait for thread to call latch.countDown()
} catch (InterruptedException e) { } catch (InterruptedException e) {
//TODO ajouter des logs //TODO Issue #6 : ajouter des logs
e.printStackTrace(); e.printStackTrace();
}finally { }finally {
listenerList = null; listenerList = null;

View File

@ -1,6 +1,5 @@
package com.pqt.client.module.account.listeners; package com.pqt.client.module.account.listeners;
//TODO écrire contenu méthodes
//TODO écrire javadoc //TODO écrire javadoc
public class AccountListenerAdapter implements IAccountListener { public class AccountListenerAdapter implements IAccountListener {

View File

@ -1,6 +1,6 @@
package com.pqt.client.module.account.listeners; package com.pqt.client.module.account.listeners;
//TODO écrire contenu méthodes //TODO Issue #17 : écrire contenu méthodes
//TODO écrire javadoc //TODO écrire javadoc
public class SimpleAccountFirerer implements IAccountFirerer { public class SimpleAccountFirerer implements IAccountFirerer {

View File

@ -6,7 +6,7 @@ import com.pqt.client.module.connection.senders.ITextSender;
import java.util.concurrent.*; import java.util.concurrent.*;
//TODO écrire javadoc //TODO Issue #5 : écrire javadoc
public class ConnectionService { public class ConnectionService {
private String serverUrl; private String serverUrl;

View File

@ -43,7 +43,7 @@ public class HttpTextSender implements ITextSender{
con.disconnect(); con.disconnect();
}catch (java.net.SocketTimeoutException | ConnectException e){ }catch (java.net.SocketTimeoutException | ConnectException e){
//TODO ajouter un log ici //TODO Issue #6 : ajouter un log ici
listener.onTimeOutEvent(); listener.onTimeOutEvent();
}catch (IOException e) { }catch (IOException e) {
e.printStackTrace(); e.printStackTrace();

View File

@ -1,7 +1,7 @@
package com.pqt.client.module.log; package com.pqt.client.module.log;
//TODO écrire contenu méthodes //TODO Issue #6 : écrire contenu méthodes
//TODO écrire javadoc //TODO Issue #5 : écrire javadoc
public class LogLineMakerManager { public class LogLineMakerManager {
public ILogLineMaker getMaker(Class clazz) { public ILogLineMaker getMaker(Class clazz) {

View File

@ -5,8 +5,8 @@ import com.pqt.core.entities.log.LogLine;
import java.util.List; import java.util.List;
//TODO écrire contenu méthodes //TODO Issue #6 : écrire contenu méthodes
//TODO écrire javadoc //TODO Issue #5 : écrire javadoc
public class LogService { public class LogService {
public void log(ILoggable loggable) { public void log(ILoggable loggable) {

View File

@ -1,7 +1,5 @@
package com.pqt.client.module.log.listeners; package com.pqt.client.module.log.listeners;
//TODO écrire contenu méthodes
//TODO écrire javadoc
public class LogListenerAdapter implements ILogListener { public class LogListenerAdapter implements ILogListener {

View File

@ -1,7 +1,6 @@
package com.pqt.client.module.log.listeners; package com.pqt.client.module.log.listeners;
//TODO écrire contenu méthodes //TODO Issue #6 : écrire contenu méthodes
//TODO écrire javadoc
public class SimpleLogFirerer implements ILogFirerer { public class SimpleLogFirerer implements ILogFirerer {

View File

@ -11,7 +11,7 @@ import com.pqt.core.entities.server_config.ServerConfig;
import javax.swing.event.EventListenerList; import javax.swing.event.EventListenerList;
import java.util.*; import java.util.*;
//TODO ajout javadoc //TODO Issue #5 : ajout javadoc
/* /*
* Ce service doit permettre de faire des ping et de récupérer la config d'un serveur distant * Ce service doit permettre de faire des ping et de récupérer la config d'un serveur distant
@ -83,12 +83,12 @@ public class NetworkService {
@Override @Override
public void err(Throwable cause) { public void err(Throwable cause) {
//TODO ajouter log erreur //TODO Issue #6 : ajouter log erreur
} }
@Override @Override
public void ref(Throwable cause) { public void ref(Throwable cause) {
//TODO ajouter log erreur //TODO Issue #6 : ajouter log erreur
} }
@Override @Override

View File

@ -18,7 +18,7 @@ import com.pqt.core.entities.user_account.Account;
import java.util.List; import java.util.List;
//TODO écrire javadoc //TODO Issue #5 : écrire javadoc
public class QueryExecutor { public class QueryExecutor {
private IMessageToolFactory messageToolFactory; private IMessageToolFactory messageToolFactory;

View File

@ -11,7 +11,7 @@ import com.pqt.core.entities.user_account.Account;
import java.util.*; import java.util.*;
//TODO écrire javadoc //TODO Issue #5 : écrire javadoc
public class SaleBuilder { public class SaleBuilder {
private Map<Product, Integer> products; private Map<Product, Integer> products;

View File

@ -9,8 +9,8 @@ import com.pqt.core.entities.sale.SaleType;
import java.util.*; import java.util.*;
//TODO écrire javadoc //TODO Issue #5 : écrire javadoc
//TODO add log lines //TODO Issue #6 : add log lines
public class SaleService { public class SaleService {
private long saleId; private long saleId;

View File

@ -2,7 +2,6 @@ package com.pqt.client.module.sale.listeners;
import com.pqt.core.entities.sale.Sale; import com.pqt.core.entities.sale.Sale;
//TODO écrire javadoc
public class SaleListenerAdapter implements ISaleListener { public class SaleListenerAdapter implements ISaleListener {

View File

@ -2,7 +2,6 @@ package com.pqt.client.module.sale.listeners;
import javax.swing.event.EventListenerList; import javax.swing.event.EventListenerList;
//TODO écrire javadoc
public class SimpleSaleFirerer implements ISaleFirerer { public class SimpleSaleFirerer implements ISaleFirerer {

View File

@ -8,7 +8,7 @@ import com.pqt.client.module.stat.listeners.SimpleStatFirerer;
import java.util.*; import java.util.*;
//TODO écrire javadoc //TODO Issue #5 : écrire javadoc
public class StatDao { public class StatDao {
private Date lastRefreshTimestamp; private Date lastRefreshTimestamp;
@ -32,20 +32,20 @@ public class StatDao {
@Override @Override
public void err(Throwable cause) { public void err(Throwable cause) {
eventFirerer.fireGetStatError(cause); eventFirerer.fireGetStatError(cause);
//TODO add log line //TODO Issue #6 : add log line
} }
@Override @Override
public void ref(Throwable cause) { public void ref(Throwable cause) {
eventFirerer.fireGetStatRefused(cause); eventFirerer.fireGetStatRefused(cause);
//TODO add log line //TODO Issue #6 : add log line
} }
@Override @Override
public void ack(Map<String, String> stats) { public void ack(Map<String, String> stats) {
replaceStats(stats); replaceStats(stats);
eventFirerer.fireGetStatSuccess(); eventFirerer.fireGetStatSuccess();
//TODO add log line //TODO Issue #6 : add log line
} }
}); });
} }

View File

@ -5,8 +5,8 @@ import com.pqt.client.module.stat.listeners.IStatListener;
import java.util.Map; import java.util.Map;
//TODO écrire javadoc //TODO Issue #5 : écrire javadoc
//TODO add log lines //TODO Issue #6 : add log lines
public class StatService { public class StatService {
private StatDao dao; private StatDao dao;

View File

@ -2,7 +2,6 @@ package com.pqt.client.module.stat.listeners;
import javax.swing.event.EventListenerList; import javax.swing.event.EventListenerList;
//TODO écrire javadoc
public class SimpleStatFirerer implements IStatFirerer { public class SimpleStatFirerer implements IStatFirerer {
private EventListenerList listeners; private EventListenerList listeners;

View File

@ -3,7 +3,6 @@ package com.pqt.client.module.stock.Listeners;
import javax.swing.event.EventListenerList; import javax.swing.event.EventListenerList;
//TODO écrire javadoc
public class SimpleStockFirerer implements IStockFirerer { public class SimpleStockFirerer implements IStockFirerer {
private EventListenerList listeners; private EventListenerList listeners;

View File

@ -14,7 +14,7 @@ import java.util.Collection;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
//TODO écrire javadoc //TODO Issue #5 : écrire javadoc
public class StockDao { public class StockDao {
private long updateId; private long updateId;
@ -45,18 +45,18 @@ public class StockDao {
public void ack(Collection<Product> obj) { public void ack(Collection<Product> obj) {
replaceProductList(obj); replaceProductList(obj);
eventFirerer.fireGetProductListSuccessEvent(); eventFirerer.fireGetProductListSuccessEvent();
//TODO add log line //TODO Issue #6 : add log line
} }
@Override @Override
public void err(Throwable cause) { public void err(Throwable cause) {
//TODO add log line //TODO Issue #6 : add log line
eventFirerer.fireGetProductListErrorEvent(cause); eventFirerer.fireGetProductListErrorEvent(cause);
} }
@Override @Override
public void ref(Throwable cause) { public void ref(Throwable cause) {
//TODO add log line //TODO Issue #6 : add log line
eventFirerer.fireGetProductListRefusedEvent(cause); eventFirerer.fireGetProductListRefusedEvent(cause);
} }
}); });
@ -82,20 +82,20 @@ public class StockDao {
executor.executeUpdateQuery(updates, new INoItemMessageCallback() { executor.executeUpdateQuery(updates, new INoItemMessageCallback() {
@Override @Override
public void ack() { public void ack() {
//TODO add log line //TODO Issue #6 : add log line
refreshProductList(); refreshProductList();
eventFirerer.fireProductListUpdateSuccessEvent(currentUpdateId); eventFirerer.fireProductListUpdateSuccessEvent(currentUpdateId);
} }
@Override @Override
public void err(Throwable cause) { public void err(Throwable cause) {
//TODO add log line //TODO Issue #6 : add log line
eventFirerer.fireProductListUpdateErrorEvent(currentUpdateId, cause); eventFirerer.fireProductListUpdateErrorEvent(currentUpdateId, cause);
} }
@Override @Override
public void ref(Throwable cause) { public void ref(Throwable cause) {
//TODO add log line //TODO Issue #6 : add log line
eventFirerer.fireProductListUpdateRefusedEvent(currentUpdateId, cause); eventFirerer.fireProductListUpdateRefusedEvent(currentUpdateId, cause);
} }
}); });

View File

@ -7,7 +7,7 @@ import com.pqt.client.module.stock.Listeners.IStockListener;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
//TODO Add log lines //TODO Issue #6 : Add log lines
public class StockService { public class StockService {
private StockDao dao; private StockDao dao;