mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-16 21:33:21 +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");
|
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);
|
return new Message(MessageType.REFUSED_QUERY, serverStateService.getServer(), message.getEmitter(), message.getUser(), message, fields);
|
||||||
}
|
}
|
||||||
if(queryHandlers.containsKey(message.getType())){
|
if(manager.contains(message.getType())){
|
||||||
return queryHandlers.get(message.getType()).execute(message);
|
return manager.getProcess(message.getType()).execute(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
fields.put(header_err_query, "Type requête non pris en charge par ce serveur");
|
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){
|
AccountLevel getLevel(MessageType messageType){
|
||||||
return levels.get(messageType);
|
return levels.get(messageType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean contains(MessageType type) {
|
||||||
|
return processes.containsKey(type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user