4A Server -
2.0
|
Class provides connection of SEC Dictionary module with server. 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) |
Private Member Functions | |
String | processGetEntityTypes (RequestInfo requestInfo) |
boolean | initArrays (RequestInfo requestInfo) |
Class provides connection of SEC Dictionary module with server.
Class implements AnotServerModule calls for prupose of SEC Dictionary module.
Definition at line 43 of file SECDInterfaceModule.java.
String cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule.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 211 of file SECDInterfaceModule.java.
String cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule.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 199 of file SECDInterfaceModule.java.
|
private |
Initialization of arrays Remote - always Local - sometimes
requestInfo | Info about client's request |
Definition at line 155 of file SECDInterfaceModule.java.
String cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule.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. |
Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.
Definition at line 97 of file SECDInterfaceModule.java.
|
private |
Prepares response for request for entity types.
requestInfo | Informations about client request |
Definition at line 107 of file SECDInterfaceModule.java.
String cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule.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 76 of file SECDInterfaceModule.java.
String cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule.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 |
Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.
Definition at line 54 of file SECDInterfaceModule.java.