4A Server -
2.0
|
Interface for server module. 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) |
Interface for server module.
Interface for server module
Definition at line 22 of file AnnotServerModule.java.
String cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.getModuleDescription | ( | int | lang | ) |
Returns description of this module. It will be part of information about server functions.
lang | Requested language of description |
Implemented in cz.vutbr.fit.knot.annotations.modules.CoreFuncModule, cz.vutbr.fit.knot.annotations.modules.PersonsModule, cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule, cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule, and cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryscopeInterfaceModule.
String cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.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 |
Implemented in cz.vutbr.fit.knot.annotations.modules.CoreFuncModule, cz.vutbr.fit.knot.annotations.modules.PersonsModule, cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule, cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule, and cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryscopeInterfaceModule.
String cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.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).
flier | Flier, which has been sent to all comet handlers. |
session | Session associated with comet handler. |
Implemented in cz.vutbr.fit.knot.annotations.modules.PersonsModule, cz.vutbr.fit.knot.annotations.modules.CoreFuncModule, cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule, cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule, and cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryscopeInterfaceModule.
String cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.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.
requestInfo | Informations about client request |
persistFailed | True if changes not persisted, false otherwise. |
Implemented in cz.vutbr.fit.knot.annotations.modules.CoreFuncModule, cz.vutbr.fit.knot.annotations.modules.PersonsModule, cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule, cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule, and cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryscopeInterfaceModule.
String cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.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.
requestInfo | Informations about client request |
Implemented in cz.vutbr.fit.knot.annotations.modules.CoreFuncModule, cz.vutbr.fit.knot.annotations.modules.PersonsModule, cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule, cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionManagerModule, and cz.vutbr.fit.knot.annotations.modules.StoryscopeInterface.StoryscopeInterfaceModule.