4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule Class Reference

Class provides connection of SEC Dictionary module with server. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule:
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)
 

Private Member Functions

String processGetEntityTypes (RequestInfo requestInfo)
 
boolean initArrays (RequestInfo requestInfo)
 

Detailed Description

Class provides connection of SEC Dictionary module with server.

Class implements AnotServerModule calls for prupose of SEC Dictionary module.

Author
Martin Petr (xpetrm05)

Definition at line 43 of file SECDInterfaceModule.java.

Member Function Documentation

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.

Parameters
langRequested language of description
Returns
Description of this module

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.

Parameters
langRequested language of name
Returns
Name of this module

Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.

Definition at line 199 of file SECDInterfaceModule.java.

boolean cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule.initArrays ( RequestInfo  requestInfo)
private

Initialization of arrays Remote - always Local - sometimes

Parameters
requestInfoInfo about client's request
Returns
In case of success returns false, true otherwise

Definition at line 155 of file SECDInterfaceModule.java.

Here is the call graph for this function:

Here is the caller graph for this function:

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).

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.

Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.

Definition at line 97 of file SECDInterfaceModule.java.

String cz.vutbr.fit.knot.annotations.modules.SECDictionaryInterface.SECDInterfaceModule.processGetEntityTypes ( RequestInfo  requestInfo)
private

Prepares response for request for entity types.

Parameters
requestInfoInformations about client request
Returns
Returns response for client

Definition at line 107 of file SECDInterfaceModule.java.

Here is the call graph for this function:

Here is the caller graph for this function:

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:

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

Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.

Definition at line 76 of file SECDInterfaceModule.java.

Here is the call graph for this function:

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.

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

Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.

Definition at line 54 of file SECDInterfaceModule.java.

Here is the call graph for this function:


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