4A Server -
2.0
|
Operations with persons (users of this server) and with user groups. More...
Public Member Functions | |
String | processRequestBeforePersist (RequestInfo requestInfo) |
String | processRequestAfterPersist (RequestInfo requestInfo, boolean persistFailed) |
String | processQUG (Iterator< String > reqIter, Boolean withPersons, RequestInfo requestInfo) |
String | processQP (Iterator< String > reqIter, Boolean withGroups, RequestInfo requestInfo) |
String | messagesFromFlier (Flier flier, EditorSession session) |
String | getModuleName (int lang) |
String | getModuleDescription (int lang) |
Private Member Functions | |
ArrayList< UserGroup > | groupQuerry (ArrayList< String > queryList) |
ArrayList< User > | userQuerry (ArrayList< String > queryList) |
String | getWildcardPrefix (String value) |
Operations with persons (users of this server) and with user groups.
Class which performs operations with persons (users of this server) and with user groups
Definition at line 49 of file PersonsModule.java.
String cz.vutbr.fit.knot.annotations.modules.PersonsModule.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 594 of file PersonsModule.java.
String cz.vutbr.fit.knot.annotations.modules.PersonsModule.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 582 of file PersonsModule.java.
|
private |
Method checks whether the string contains wildchar "*". If the string contains wildchar the method returns prefix.
value | string in which will be searched |
Definition at line 549 of file PersonsModule.java.
|
private |
Gets queried user groups (for protocol 2.0 only)
queryList | List with informations about query (filters). For each filter criteria there is one position (index) in the list. Value of the filter is the value on the given index. |
Definition at line 368 of file PersonsModule.java.
String cz.vutbr.fit.knot.annotations.modules.PersonsModule.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 570 of file PersonsModule.java.
String cz.vutbr.fit.knot.annotations.modules.PersonsModule.processQP | ( | Iterator< String > | reqIter, |
Boolean | withGroups, | ||
RequestInfo | requestInfo | ||
) |
Gets queried persons (users) in XML string
reqIter | Iterator to array with filters (queries) |
withGroups | If users groups have to be included, then true, false otherwise |
requestInfo | Informations about client request |
Definition at line 199 of file PersonsModule.java.
String cz.vutbr.fit.knot.annotations.modules.PersonsModule.processQUG | ( | Iterator< String > | reqIter, |
Boolean | withPersons, | ||
RequestInfo | requestInfo | ||
) |
Gets queried user groups in XML string
reqIter | Iterator to array with filters (queries) |
withPersons | If persons have to be included, then true, false otherwise |
requestInfo | Informations about client request |
Definition at line 126 of file PersonsModule.java.
String cz.vutbr.fit.knot.annotations.modules.PersonsModule.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 78 of file PersonsModule.java.
String cz.vutbr.fit.knot.annotations.modules.PersonsModule.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 | Info about client request |
Implements cz.vutbr.fit.knot.annotations.comet.AnnotServerModule.
Definition at line 60 of file PersonsModule.java.
|
private |
Gets queried users (for protocol 2.0 only)
queryList | List with informations about query (filters). For each filter criteria there is one position (index) in the list. Value of the filter is the value on the given index. |
Definition at line 448 of file PersonsModule.java.