4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.comet.AnnotServerModule Interface Reference

Interface for server module. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.comet.AnnotServerModule:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.comet.AnnotServerModule:
Collaboration graph

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)
 

Detailed Description

Interface for server module.

Interface for server module

Author
idytrych

Definition at line 22 of file AnnotServerModule.java.

Member Function Documentation

String cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.getModuleDescription ( int  lang)
String cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.getModuleName ( int  lang)
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).

Parameters
flierFlier, which has been sent to all comet handlers.
sessionSession associated with comet handler.
Returns
If this handler hasn't react to this flier (not interested) return null, else return messages for client in single string.

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.

Parameters
requestInfoInformations about client request
persistFailedTrue if changes not persisted, false otherwise.
Returns
String with messages for client or empty string

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.

Parameters
requestInfoInformations about client request
Returns
String with messages for client or empty string

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.


The documentation for this interface was generated from the following file: