4A Server -
2.0
|
Class implements module for suggestiong of annotations. More...
Public Member Functions | |
String | processRequestBeforePersist (RequestInfo requestInfo) |
String | processRequestAfterPersist (RequestInfo requestInfo, boolean persistFailed) |
String | messagesFromFlier (Flier flier, EditorSession session) |
String | getModuleName (int lang) |
String | getModuleDescription (int lang) |
Class implements module for suggestiong of annotations.
Class implements AnotServerModule calss for prupose of suggestiong of annotations. The module retrieves suggestions from NER or SEC API, stores them with their feedback and provides related services to the clients.
Definition at line 37 of file SuggestionManagerModule.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule.getModuleDescription | ( | int | lang | ) |
Returns description of this module. It will be part of information about server functions.
lang | Requested language of description |
Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.
Definition at line 117 of file SuggestionManagerModule.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule.getModuleName | ( | int | lang | ) |
Returns name of this module. Name will be included in XML element attribute so usable characters are restricted.
lang | Requested language of name |
Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.
Definition at line 105 of file SuggestionManagerModule.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule.messagesFromFlier | ( | Flier | flier, |
EditorSession | session | ||
) |
This method is called for each sleeping comet handler when he receives flier (part of informations about this or another client request).
In this module it always returns empty string.
flier | Flier, which has been sent to all comet handlers. |
session | Session associated with comet handler. |
Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.
Definition at line 93 of file SuggestionManagerModule.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule.processRequestAfterPersist | ( | RequestInfo | requestInfo, |
boolean | persistFailed | ||
) |
This method is called when client sent message, these message has been processed and changes in entities are persisted. Composed response is sent to client after calling this method from all modules. It performs:
requestInfo | Informations about client request |
persistFailed | True if changes not persisted, false otherwise. |
Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.
Definition at line 72 of file SuggestionManagerModule.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule.processRequestBeforePersist | ( | RequestInfo | requestInfo | ) |
This method is called when client sent message and these message has been processed. Changes in types, annotations and in other entities are persisted after calling this method from all modules. It performs:
In this module it always returns empty string.
requestInfo | Informations about client request |
Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.
Definition at line 52 of file SuggestionManagerModule.java.