mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-12-22 15:31:08 +00:00
Module Server, clss SimpleMessageHandler : correction erreurs de compilation
This commit is contained in:
parent
da6aafc624
commit
00313858b0
@ -139,8 +139,8 @@ public class SimpleMessageHandler implements IMessageHandler {
|
||||
fields.put(header_ref_query, "Compte utilisateur avec permission trop faible");
|
||||
return new Message(MessageType.REFUSED_QUERY, serverStateService.getServer(), message.getEmitter(), message.getUser(), message, fields);
|
||||
}
|
||||
if(queryHandlers.containsKey(message.getType())){
|
||||
return queryHandlers.get(message.getType()).execute(message);
|
||||
if(manager.contains(message.getType())){
|
||||
return manager.getProcess(message.getType()).execute(message);
|
||||
}
|
||||
|
||||
fields.put(header_err_query, "Type requête non pris en charge par ce serveur");
|
||||
@ -175,6 +175,10 @@ public class SimpleMessageHandler implements IMessageHandler {
|
||||
AccountLevel getLevel(MessageType messageType){
|
||||
return levels.get(messageType);
|
||||
}
|
||||
|
||||
public boolean contains(MessageType type) {
|
||||
return processes.containsKey(type);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user