mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-12-22 23:41:09 +00:00
Modules Client et Core : modifications diverses classes suite ajout clss gui (voir précédent commit)
This commit is contained in:
parent
543e571e82
commit
0eef751c41
@ -42,4 +42,7 @@ public class AccountService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<Account> getAllAccounts() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@ import java.util.EventListener;
|
|||||||
|
|
||||||
public interface IAccountListener extends EventListener {
|
public interface IAccountListener extends EventListener {
|
||||||
|
|
||||||
public void onAccountStatusChanged(boolean status);
|
void onAccountStatusChangedEvent(boolean status);
|
||||||
|
void onAccountListChangedEvent();
|
||||||
}
|
}
|
||||||
|
@ -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.ISaleFirerer;
|
||||||
import com.pqt.client.module.sale.listeners.ISaleListener;
|
import com.pqt.client.module.sale.listeners.ISaleListener;
|
||||||
import com.pqt.client.module.sale.listeners.SimpleSaleFirerer;
|
import com.pqt.client.module.sale.listeners.SimpleSaleFirerer;
|
||||||
|
import com.pqt.core.entities.sale.SaleType;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
//TODO écrire javadoc
|
//TODO écrire javadoc
|
||||||
//TODO add log lines
|
//TODO add log lines
|
||||||
@ -55,4 +58,8 @@ public class SaleService {
|
|||||||
eventFirerer.removeListener(listener);
|
eventFirerer.removeListener(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<SaleType> getSaleTypes() {
|
||||||
|
//TODO
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ public class Account implements ILoggable, Serializable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(id, username, passwordHash, permissionLevel);
|
return Objects.hash(username, password, permissionLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -61,9 +61,8 @@ public class Account implements ILoggable, Serializable {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
Account acc = Account.class.cast(obj);
|
Account acc = Account.class.cast(obj);
|
||||||
return this.id == acc.id
|
return Objects.equals(this.username, acc.username)
|
||||||
&& Objects.equals(this.username, acc.username)
|
&& Objects.equals(this.password, acc.password)
|
||||||
&& Objects.equals(this.passwordHash, acc.passwordHash)
|
|
||||||
&& Objects.equals(this.permissionLevel, acc.permissionLevel);
|
&& Objects.equals(this.permissionLevel, acc.permissionLevel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user