Modules Client et Core : modifications diverses classes suite ajout clss gui (voir précédent commit)

This commit is contained in:
Notmoo 2017-08-13 21:57:39 +02:00
parent 543e571e82
commit 0eef751c41
5 changed files with 17 additions and 8 deletions

View File

@ -42,4 +42,7 @@ public class AccountService {
}
public List<Account> getAllAccounts() {
return null;
}
}

View File

@ -6,9 +6,9 @@ public class AccountListenerAdapter implements IAccountListener {
/**
* @see com.pqt.client.module.account.listeners.IAccountListener#onAccountStatusChanged(boolean)
* @see com.pqt.client.module.account.listeners.IAccountListener#onAccountStatusChangedEvent(boolean)
*/
public void onAccountStatusChanged(boolean status) {
public void onAccountStatusChangedEvent(boolean status) {
}

View File

@ -4,6 +4,6 @@ import java.util.EventListener;
public interface IAccountListener extends EventListener {
public void onAccountStatusChanged(boolean status);
void onAccountStatusChangedEvent(boolean status);
void onAccountListChangedEvent();
}

View File

@ -6,6 +6,9 @@ import com.pqt.client.module.query.query_callback.IIdQueryCallback;
import com.pqt.client.module.sale.listeners.ISaleFirerer;
import com.pqt.client.module.sale.listeners.ISaleListener;
import com.pqt.client.module.sale.listeners.SimpleSaleFirerer;
import com.pqt.core.entities.sale.SaleType;
import java.util.List;
//TODO écrire javadoc
//TODO add log lines
@ -55,4 +58,8 @@ public class SaleService {
eventFirerer.removeListener(listener);
}
public List<SaleType> getSaleTypes() {
//TODO
return null;
}
}

View File

@ -49,7 +49,7 @@ public class Account implements ILoggable, Serializable {
@Override
public int hashCode() {
return Objects.hash(id, username, passwordHash, permissionLevel);
return Objects.hash(username, password, permissionLevel);
}
@Override
@ -61,9 +61,8 @@ public class Account implements ILoggable, Serializable {
return false;
Account acc = Account.class.cast(obj);
return this.id == acc.id
&& Objects.equals(this.username, acc.username)
&& Objects.equals(this.passwordHash, acc.passwordHash)
return Objects.equals(this.username, acc.username)
&& Objects.equals(this.password, acc.password)
&& Objects.equals(this.permissionLevel, acc.permissionLevel);
}
}