4A Server -
2.0
|
Informations about client session. More...
Static Public Member Functions | |
static ArrayList < SubscribedSource > | listOfMatches (ArrayList< SubscribedSource > list, Annotation annot, AnnotType type, ArrayList< String > sources) |
static boolean | containTypeRule (ArrayList< SubscribedSource > list) |
static boolean | containUserRule (ArrayList< SubscribedSource > list) |
static boolean | containSourceRule (ArrayList< SubscribedSource > list) |
Private Member Functions | |
int | checkBranch (AnnotType rootType, Annotation annot, ArrayList< String > sources, ArrayList< SubscribedSource > unsubResult, ArrayList< SubscribedSource > subResult) |
void | findSubscriptionAndDelete (ArrayList< SubscribedSource > sources, SubscribedSource subSource) |
Informations about client session.
Class with informations about client (annotations editor) session
Definition at line 41 of file EditorSession.java.
cz.vutbr.fit.knot.annotations.comet.EditorSession.EditorSession | ( | long | sessId | ) |
Constructor of reference objects for searching purposes - no initialization needed
Definition at line 124 of file EditorSession.java.
cz.vutbr.fit.knot.annotations.comet.EditorSession.EditorSession | ( | String | protocolVersion | ) |
Constructor - sets the session id to new generated value and initialize variables
Definition at line 132 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.actualizeAllCachedSettings | ( | ) |
Actualizes all cached settings
Definition at line 1271 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.actualizeAttFilter | ( | ) |
Actualizes attribute filter from user's settings
Definition at line 1242 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.actualizeAutoAltSetting | ( | ) |
Actualizes whether alternatives should be automatically activated
Definition at line 1344 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.actualizeDisplaySugConfidence | ( | ) |
Actualizes whether confidence should be displayed for suggestions
Definition at line 1878 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.actualizeEnableUpdatePositiveFeedback | ( | ) |
Actualizes whether other similar (same annotated text and URI of entity) suggestions in same part of document should be confirmed
Definition at line 1399 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.actualizeKBRefMode | ( | ) |
Actualizes whether KB_Ref mode is on
Definition at line 1932 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.actualizeLanguage | ( | ) |
Actualize language settings from database
Definition at line 1498 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.actualizeNegFeedbackSetting | ( | ) |
Actualizes whether negative feedback should updated for suggestions refused by same fragment as some confirmed have.
Definition at line 1285 of file EditorSession.java.
synchronized void cz.vutbr.fit.knot.annotations.comet.EditorSession.addMessageTS | ( | String | message | ) |
Adds message to string with messages to be sent via comet
message | Message to be sent via comet |
Definition at line 995 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.addQueriedTypes | ( | String | queriedType | ) |
Adds queried type(s) of annotations to the list (string with filter)
queriedType | Queried type(s) of annotations to the list (string with filter) |
Definition at line 314 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.addSendedSugg | ( | Suggestion | suggestion | ) |
Adds suggestion to the array of sent suggestions (client's cache)
suggestion | Suggestion to add |
Definition at line 1648 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.addSendedSugg | ( | ArrayList< Suggestion > | sugArray | ) |
Adds array of suggestions to the array of sent suggestions (client's cache)
sugArray | Array of suggestions to add |
Definition at line 1661 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.addSource | ( | SubscribedSource | source | ) |
Adds source of annotations to list of subscribed sources
source | Source of annotations to be added |
Definition at line 241 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.addSuggestionsFr | ( | Fragment | suggestionsFr | ) |
Adds fragment to which are to be suggested annotations to the list
suggestionsFr | Fragment to which are to be suggested annotations |
Definition at line 232 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.addSuggestionType | ( | String | suggestionsType | ) |
Definition at line 871 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.addToSubscribeList | ( | Subscription | subscription | ) |
Add subscription to subscribe list.
subscription | subscription to add |
Definition at line 1041 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.addToSubscribes | ( | Subscription | subscription | ) |
Adds subscription sources to subscribe and unsubscribe list.
subscription | subscriprion which source will be add to list |
Definition at line 1123 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.addUnsubscribeSource | ( | SubscribedSource | source | ) |
Adds unsubscribed source of annotation to list of unsubscribed sources (black list)
source | Unsubscribed source of annotations to be added |
Definition at line 269 of file EditorSession.java.
|
private |
Method finds every rule for all given annotations type ancestors and returns if is subscribed or unsubscribed.
rootType | type where will checking begin |
annot | annotation that is checked |
sources | sources for current user |
unsubResult | list of found unsubscribed rules |
subResult | list of found subscribed files |
Definition at line 684 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.clearSuggestionsTypes | ( | ) |
Definition at line 879 of file EditorSession.java.
|
static |
Checks whether list contain subscribed (or unsubscribed) source rule other then "hungry source" rule (rule where source isn't fill).
list | List of subscribed sources (rules) |
Definition at line 659 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.containsSource | ( | SubscribedSource | source | ) |
Check whether source of annotations is in the list of subscribed sources
source | Source of annotations to be searched |
Definition at line 260 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.containsUnsubscribedSource | ( | SubscribedSource | source | ) |
Check whether source of annotations is in the list of unsubscribed sources
source | Source of annotations to be searched in the list of unsubscribed |
Definition at line 287 of file EditorSession.java.
|
static |
Checks whether list contain subscribed (or unsubscribed) source rule other then "hungry type" rule (rule where type isn't fill).
list | List of subscribed sources (rules) |
Definition at line 613 of file EditorSession.java.
|
static |
Checks whether list contain subscribed (or unsubscribed) source rule other then "hungry user" rule (rule where user isn't fill).
list | List of subscribed sources (rules) |
Definition at line 637 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.deleteFromSubscribeList | ( | Subscription | subscription | ) |
Remove subscription from subscribe list.
subscription | subscription to delete |
Definition at line 1023 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.deleteFromSubscribes | ( | Subscription | subscription | ) |
Removes subscription sources from subscribe and unsubscribe list.
subscription | subscriprion which source will be remove from list |
Definition at line 1096 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.deleteSendedSugg | ( | Suggestion | suggestion | ) |
Removes suggestion from the array of sended suggestions (client's cache)
suggestion | Suggestion to remove |
Definition at line 1682 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.deleteSendedSugg | ( | ArrayList< Suggestion > | sugArray | ) |
Removes suggestions from the array of sended suggestions (client's cache)
sugArray | Array of suggestions to remove |
Definition at line 1693 of file EditorSession.java.
ArrayList<Suggestion> cz.vutbr.fit.knot.annotations.comet.EditorSession.diffSendedSug | ( | ArrayList< Suggestion > | sugArray | ) |
Differences array of suggestions with array of sent ones and return these suggestions which are not in sent
sugArray | Array to differences |
Definition at line 1711 of file EditorSession.java.
ArrayList<Integer> cz.vutbr.fit.knot.annotations.comet.EditorSession.diffStoredSug | ( | ArrayList< Suggestion > | sugArray | ) |
Differences array of suggestions with array of sent ones and return these suggestions which are in sent but not in given array
sugArray | Array to differences |
Definition at line 1753 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.equals | ( | Object | obj | ) |
Compares this with other object and returns, whether objects are same type and have same id.
obj | Object to compare with |
Definition at line 1973 of file EditorSession.java.
|
private |
Finds subscription source in subscribed or unsubscribed list and remove it.
sources | list where method will be search for subscription source |
subSource | subscription source that will be delete from list |
Definition at line 1151 of file EditorSession.java.
synchronized String cz.vutbr.fit.knot.annotations.comet.EditorSession.getAndCleanMessages | ( | ) |
Gets and cleans string with messages to be sent via comet
Definition at line 984 of file EditorSession.java.
ArrayList<String> cz.vutbr.fit.knot.annotations.comet.EditorSession.getAttFilter | ( | ) |
Gets list with names of attributes which should be filtered out
Definition at line 1220 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.getAutoActivateAlternatives | ( | ) |
Should be alternatives automatically activated?
Definition at line 1382 of file EditorSession.java.
Integer cz.vutbr.fit.knot.annotations.comet.EditorSession.getAutoConfirm | ( | ) |
Gets minimal level of confidence to auto confirm suggestion
Definition at line 1618 of file EditorSession.java.
String cz.vutbr.fit.knot.annotations.comet.EditorSession.getCometContext | ( | ) |
Method gets comet context for this session.
Definition at line 486 of file EditorSession.java.
AnnotHandler cz.vutbr.fit.knot.annotations.comet.EditorSession.getCometHandler | ( | ) |
Method gets handler to comet that belongs to session.
Definition at line 495 of file EditorSession.java.
UserGroup cz.vutbr.fit.knot.annotations.comet.EditorSession.getDefaultGroup | ( | ) |
Gets default group of logged in user from database. If according user settings parameter is correctly set, it will be used. If parameter is not set, first group of this user fetched from database will be returned.
Definition at line 1538 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.getDisplaySugConfidence | ( | ) |
Returns whether confidence should be displayed for suggestions
Definition at line 1862 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.getEnableUpdatePositiveFeedback | ( | ) |
Should be other similar (same annotated text and URI of entity) suggestions in same part of document confirmed?
Definition at line 1439 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.getKBRefMode | ( | ) |
Gets whether KB_Ref mode is on
Definition at line 1916 of file EditorSession.java.
String cz.vutbr.fit.knot.annotations.comet.EditorSession.getLanguage | ( | ) |
Get language used in this session
Definition at line 1461 of file EditorSession.java.
int cz.vutbr.fit.knot.annotations.comet.EditorSession.getLanguageNum | ( | ) |
Get number of language used in this session
Definition at line 1470 of file EditorSession.java.
long cz.vutbr.fit.knot.annotations.comet.EditorSession.getLastActivityTime | ( | ) |
Gets time stamp of activity time of session
Definition at line 323 of file EditorSession.java.
long cz.vutbr.fit.knot.annotations.comet.EditorSession.getLastConfirmTime | ( | ) |
Gets time stamp of confirm time of session
Definition at line 341 of file EditorSession.java.
String cz.vutbr.fit.knot.annotations.comet.EditorSession.getMessagesTSVC | ( | ) |
Gets string with messages to be sent via comet
Definition at line 954 of file EditorSession.java.
Integer cz.vutbr.fit.knot.annotations.comet.EditorSession.getMinConfidence | ( | ) |
Gets number of minimal confidence
Definition at line 1609 of file EditorSession.java.
int cz.vutbr.fit.knot.annotations.comet.EditorSession.getNamespacesLOD | ( | ) |
Gets appropriate version of namespaces based on protocol LOD
Definition at line 198 of file EditorSession.java.
String cz.vutbr.fit.knot.annotations.comet.EditorSession.getParsedLinDocument | ( | ) |
Gets parsed linearized document
Definition at line 918 of file EditorSession.java.
Document cz.vutbr.fit.knot.annotations.comet.EditorSession.getParsedSyncDocument | ( | ) |
Gets parsed synchronized document
Definition at line 909 of file EditorSession.java.
int cz.vutbr.fit.knot.annotations.comet.EditorSession.getProtocolLOD | ( | ) |
Gets protocol level of development. Higher level activates newer functions.
Definition at line 177 of file EditorSession.java.
String cz.vutbr.fit.knot.annotations.comet.EditorSession.getProtocolVersion | ( | ) |
Gets agreed communication protocol version
Definition at line 159 of file EditorSession.java.
ArrayList<String> cz.vutbr.fit.knot.annotations.comet.EditorSession.getQueriedTypes | ( | ) |
Gets queried types of annotations (list of strings with filters which was used)
Definition at line 296 of file EditorSession.java.
ArrayList<Integer> cz.vutbr.fit.knot.annotations.comet.EditorSession.getSendedSuggestions | ( | ) |
Gets array of sent suggestions IDs (client's cache)
Definition at line 1798 of file EditorSession.java.
long cz.vutbr.fit.knot.annotations.comet.EditorSession.getSessionId | ( | ) |
Gets id of this session
Definition at line 150 of file EditorSession.java.
ArrayList<Settings> cz.vutbr.fit.knot.annotations.comet.EditorSession.getSettings | ( | ) |
Gets user settings for logged in user from database
Definition at line 1194 of file EditorSession.java.
ArrayList<SubscribedSource> cz.vutbr.fit.knot.annotations.comet.EditorSession.getSubscribedSources | ( | ) |
Gets list of subscribed sources
Definition at line 777 of file EditorSession.java.
ArrayList<Subscription> cz.vutbr.fit.knot.annotations.comet.EditorSession.getSubscribeList | ( | ) |
Gets list of subscriptions.
Definition at line 1004 of file EditorSession.java.
Subscription cz.vutbr.fit.knot.annotations.comet.EditorSession.getSubscriptionFromList | ( | Integer | id | ) |
Gets subscription from subscribe list by id.
id | id of searched subscription |
Definition at line 1057 of file EditorSession.java.
ArrayList<SuggestionLogEntry> cz.vutbr.fit.knot.annotations.comet.EditorSession.getSuggestionsCache | ( | ) |
Gets content of cache for annotation suggestions
Definition at line 927 of file EditorSession.java.
ArrayList<Fragment> cz.vutbr.fit.knot.annotations.comet.EditorSession.getSuggestionsFr | ( | ) |
Gets list of fragments to which are to be suggested annotations
Definition at line 214 of file EditorSession.java.
ArrayList<String> cz.vutbr.fit.knot.annotations.comet.EditorSession.getSuggestionsTypes | ( | ) |
Definition at line 863 of file EditorSession.java.
synchronized Boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.getSugRequestFlag | ( | ) |
Returns whether suggestions was requested so an empty diff cannot be omitted.
Definition at line 1844 of file EditorSession.java.
AnnotDocument cz.vutbr.fit.knot.annotations.comet.EditorSession.getSyncDocument | ( | ) |
Gets synchronized document
Definition at line 804 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.getUpdateNegFeedbackForRefusedBySame | ( | ) |
Should be negative feedback updated for suggestions refused by same fragment as some confirmed have?
Definition at line 1325 of file EditorSession.java.
User cz.vutbr.fit.knot.annotations.comet.EditorSession.getUser | ( | ) |
Gets user logged in this session
Definition at line 786 of file EditorSession.java.
Suggestion cz.vutbr.fit.knot.annotations.comet.EditorSession.getWholeSendedSuggestion | ( | Integer | id | ) |
Get sended suggestion.
Definition at line 1829 of file EditorSession.java.
ArrayList<Suggestion> cz.vutbr.fit.knot.annotations.comet.EditorSession.getWholeSendedSuggestions | ( | ) |
Get all sent suggestions.
Definition at line 1807 of file EditorSession.java.
int cz.vutbr.fit.knot.annotations.comet.EditorSession.hashCode | ( | ) |
Returns hash code of this object. Hash is based on sessionID.
Definition at line 1993 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.hasMessagesTSVC | ( | ) |
Returns true if this session contaions any messages for send via coment
Definition at line 972 of file EditorSession.java.
ArrayList<Suggestion> cz.vutbr.fit.knot.annotations.comet.EditorSession.haveSendedSug | ( | ArrayList< Suggestion > | sugArray | ) |
Differences array of suggestions with array of sent ones and return these suggestions which are in sent
sugArray | Array to differences |
Definition at line 1732 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.initDocumentUsageAndTMNumber | ( | ) |
If we synchronize a new document then we dont have doc.id when we first call setSyncDocument
Definition at line 833 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isInSubscribeList | ( | Subscription | subscription | ) |
Tests if given subscription is already in list.
subscription | searched subscription |
Definition at line 1079 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isLinearization | ( | ) |
Returns status of linearization
Definition at line 850 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSubscribed | ( | Annotation | annot, |
boolean | testDoc | ||
) |
Checks whether editor connected to this session is subscribed to get given annotation.
annot | Checked annotation |
testDoc | If matching of document must be checked then true, false otherwise |
Definition at line 362 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSubscribed | ( | Annotation | annot, |
ArrayList< String > | sources, | ||
boolean | testDoc | ||
) |
Checks whether editor connected to this session is subscribed to get given annotation.
annot | Checked annotation |
sources | List of sources to which annotation belongs to |
testDoc | If matching of document must be checked then true, false otherwise |
Definition at line 375 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSubscribed | ( | Annotation | annot | ) |
Checks whether editor connected to this session is subscribed to get given annotation.
annot | Checked annotation |
Definition at line 428 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSubscribed | ( | Annotation | annot, |
ArrayList< String > | sources | ||
) |
Checks whether editor connected to this session is subscribed to get given annotation.
annot | Checked annotation |
sources | List of sources to which annotation belongs to |
Definition at line 738 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSubscribedWG | ( | Annotation | annot, |
boolean | testDoc | ||
) |
Checks whether editor connected to this session is subscribed to get given annotation. User groups of annotation author are taken into account.
annot | Checked annotation |
testDoc | If matching of document must be checked then true, false otherwise |
Definition at line 395 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSubscribedWG | ( | Annotation | annot, |
ArrayList< String > | sources, | ||
boolean | testDoc | ||
) |
Checks whether editor connected to this session is subscribed to get given annotation. User groups of annotation author are taken into account.
annot | Checked annotation |
sources | List of sources to which annotation belongs to |
testDoc | If matching of document must be checked then true, false otherwise |
Definition at line 409 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSubscribedWG | ( | Annotation | annot | ) |
Checks whether editor connected to this session is subscribed to get given annotation. User groups of annotation author are taken into account.
annot | Checked annotation |
Definition at line 439 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSubscribedWG | ( | Annotation | annot, |
ArrayList< String > | sources | ||
) |
Checks whether editor connected to this session is subscribed to get given annotation. User groups of annotation author are taken into account.
annot | Checked annotation |
sources | List of sources to which annotation belongs to |
Definition at line 452 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSuggestionType | ( | ) |
Definition at line 887 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.isSuggInSendedSuggestions | ( | Integer | suggID | ) |
Tries to find an ID of the suggestion in the sendedSuggestions array and returns the result of the search as a boolean value
suggID | ID of the suggestion that we are searching for |
Definition at line 1784 of file EditorSession.java.
|
static |
The method finds the corresponding subscriptions for submitted type of annotation, users and resources.
list | List of subscribed or unsubscribed annotations |
annot | Annotation from which Identification of user (URI or address) will be get |
type | Annotation type for which method searching for a record annotation type |
sources | List of sources to which annotation belongs to |
Definition at line 527 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.notifyComet | ( | ) |
Method provides asynchronous sending messages trough comet channel. Basically send notify to comet engine and that wake comet for this session.
Definition at line 503 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.refreshUser | ( | ) |
Refreshes informations about user from DB
Definition at line 1521 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.removeSource | ( | SubscribedSource | source | ) |
Removes source of annotations from list of subscribed sources
source | Source of annotations to be removed |
Definition at line 250 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.removeUnsubscribeSource | ( | SubscribedSource | source | ) |
Removes unsubscribed source of annotation from list of unsubscribed sources (black list)
source | Unsubscribed source of annotations to be removed |
Definition at line 278 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setAttFilter | ( | ArrayList< String > | attFilter | ) |
Sets list with names of attributes which should be filtered out
attFilter | List with names of attributes which should be filtered out |
Definition at line 1235 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setAutoActivateAlternatives | ( | boolean | autoActivateAlternatives | ) |
Sets whether alternatives should be automatically activated
autoActivateAlternatives | Should be alternatives automatically activated? |
Definition at line 1391 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setAutoConfirm | ( | Integer | autoConfirm | ) |
Sets minimal level of confidence to auto confirm suggestion
autoConfirm | Minimal level of confidence to auto confirm suggestion |
Definition at line 1627 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setCometContext | ( | String | cometContext | ) |
Method sets comet context for this session.
cometContext | string with comet context |
Definition at line 468 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setCometHandler | ( | AnnotHandler | cometHandler | ) |
Method sets handler to comet that belongs to session.
cometHandler | comet handler for this session |
Definition at line 477 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setDisplaySugConfidence | ( | boolean | displaySugConfidence | ) |
Sets whether confidence should be displayed for suggestions
displaySugConfidence | Should be confidence displayed for suggestions? |
Definition at line 1871 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setEnableUpdatePositiveFeedback | ( | boolean | enableUpdatePositiveFeedback | ) |
Sets whether other similar (same annotated text and URI of entity) suggestions in same part of document should be confirmed
enableUpdatePositiveFeedback | Should be other similar (same annotated text and URI of entity) suggestions in same part of document confirmed? |
Definition at line 1452 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setKBRefMode | ( | boolean | KBRefMode | ) |
Sets whether KB_Ref mode is on
KBRefMode | Is KB_Ref mode on? |
Definition at line 1925 of file EditorSession.java.
boolean cz.vutbr.fit.knot.annotations.comet.EditorSession.setLanguage | ( | String | language | ) |
Set language for this session. If language code is not found, language is set to English.
language | Language code according to ISO 639-2 |
Definition at line 1481 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setLastActivityTime | ( | long | lastActivityTime | ) |
Sets time stamp of activity time of session
lastActivityTime | time stamp of activity time of session |
Definition at line 332 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setLastConfirmTime | ( | long | lastConfirmTime | ) |
Sets time stamp of confirm time of session
lastConfirmTime | Time stamp of confirm time of session |
Definition at line 350 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setLinearization | ( | boolean | linearization | ) |
Sets linearization
linearization | If linearization is enabled then true, false otherwise |
Definition at line 859 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setMessagesTSVC | ( | String | messagesTSVC | ) |
Sets string with messages to be sent via comet
messagesTSVC | String with messages to be sent via comet |
Definition at line 963 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setMinConfidence | ( | Integer | minConfidence | ) |
Sets minimal confidence
minConfidence | Number of minimal confidence |
Definition at line 1600 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setParsedLinDocument | ( | String | parsedLinDocument | ) |
Sets parsed linearized document
parsedLinDocument | Parsed linearized document |
Definition at line 945 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setParsedSyncDocument | ( | Document | doc | ) |
Sets parsed synchronized document
doc | New document |
Definition at line 900 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setProtocolVersion | ( | String | protocolVersion | ) |
Sets agreed communication protocol version
protocolVersion | Communication protocol version |
Definition at line 168 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setQueriedTypes | ( | ArrayList< String > | queriedTypes | ) |
Sets queried types of annotations (list of strings with filters which was used)
queriedTypes | Queried types of annotations (list of strings with filters which was used) |
Definition at line 305 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setSendedSugg | ( | ArrayList< Integer > | sugArray | ) |
Sets array of sent suggestions (client's cache)
sugArray | New array of sent suggestions |
Definition at line 1636 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setSubscribeList | ( | ArrayList< Subscription > | subscribeList | ) |
Sets list of subscriptions.
subscribeList | list of subscriptions |
Definition at line 1013 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setSuggestionsCache | ( | ArrayList< SuggestionLogEntry > | suggestionsCache | ) |
Sets content of cache for annotation suggestions
suggestionsCache | Content of cache for annotation suggestions |
Definition at line 936 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setSuggestionsFr | ( | ArrayList< Fragment > | suggestionsFr | ) |
Sets list of fragments to which are to be suggested annotations
suggestionsFr | List of fragments to which are to be suggested annotations |
Definition at line 223 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setSuggestionsTypes | ( | ArrayList< String > | suggestionsTypes | ) |
Definition at line 867 of file EditorSession.java.
synchronized void cz.vutbr.fit.knot.annotations.comet.EditorSession.setSugRequestFlag | ( | Boolean | sugRequestFlag | ) |
Sets whether suggestions was requested so an empty diff cannot be omitted.
sugRequestFlag | Was suggestions requested (can be empty diff omitted)? |
Definition at line 1853 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setSyncDocument | ( | AnnotDocument | syncDocument | ) |
Sets synchronized document
syncDocument | Synchronized document |
Definition at line 813 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setUpdateNegFeedbackForRefusedBySame | ( | boolean | updateNegFeedbackForRefusedBySame | ) |
Sets whether negative feedback should updated for suggestions refused by same fragment as some confirmed have.
updateNegFeedbackForRefusedBySame | Should be negative feedback updated for suggestions refused by same fragment as some confirmed have? |
Definition at line 1337 of file EditorSession.java.
void cz.vutbr.fit.knot.annotations.comet.EditorSession.setUser | ( | User | user | ) |
Sets user logged in this session
user | User logged in this session |
Definition at line 795 of file EditorSession.java.
|
private |
List with attributes which should be filtered out
Definition at line 70 of file EditorSession.java.
|
private |
Should be alternatives automatically activated?
Definition at line 87 of file EditorSession.java.
|
private |
Minimal level of confidence to auto confirm suggestion
Definition at line 116 of file EditorSession.java.
|
private |
Comet context associated with this session
Definition at line 101 of file EditorSession.java.
|
private |
Comet handler associated with this session
Definition at line 99 of file EditorSession.java.
|
private |
Should be confidence displayed for suggestions
Definition at line 109 of file EditorSession.java.
|
private |
Are variables dependent on document ID initialized?
Definition at line 118 of file EditorSession.java.
|
private |
Should be other similar (same annotated text and URI of entity) suggestions in same part of document confirmed?
Definition at line 83 of file EditorSession.java.
|
private |
Is KB_Ref mode on?
Definition at line 111 of file EditorSession.java.
|
private |
Language to use in server
Definition at line 66 of file EditorSession.java.
|
private |
Number of language to use in server
Definition at line 68 of file EditorSession.java.
|
private |
Time stamp that indicate last activity time of session
Definition at line 93 of file EditorSession.java.
|
private |
Time stamp that indicate last confirm time of session
Definition at line 95 of file EditorSession.java.
|
private |
Indicator of linearization
Definition at line 64 of file EditorSession.java.
|
private |
String with messages to be sent via comet
Definition at line 89 of file EditorSession.java.
|
private |
Minimal confidence used to filtrate suggestions
Definition at line 114 of file EditorSession.java.
|
private |
Linearized synchronized document
Definition at line 62 of file EditorSession.java.
|
private |
Parsed synchronized document
Definition at line 105 of file EditorSession.java.
|
private |
Communication protocol version
Definition at line 48 of file EditorSession.java.
|
private |
List of queried annotation types
Definition at line 58 of file EditorSession.java.
|
private |
Array of IDs of suggestions which was sent to client (client's cache)
Definition at line 97 of file EditorSession.java.
|
private |
Id of session
Definition at line 44 of file EditorSession.java.
|
private |
List of subscribed sources
Definition at line 50 of file EditorSession.java.
|
private |
List of subscribed subscriptions
Definition at line 103 of file EditorSession.java.
|
private |
Cache for annotation suggestions
Definition at line 91 of file EditorSession.java.
|
private |
Fragments to which are to be suggested annotations
Definition at line 54 of file EditorSession.java.
|
private |
Annotation types to be suggested (list with filters)
Definition at line 56 of file EditorSession.java.
|
private |
Flag which denotes that suggestions was requested so an empty diff cannot be omitted.
Definition at line 107 of file EditorSession.java.
|
private |
Synchronized document
Definition at line 60 of file EditorSession.java.
|
private |
List of unsubscribed sources (Black List)
Definition at line 52 of file EditorSession.java.
|
private |
Should be negative feedback updated for suggestions refused by same fragment as some confirmed have? If it will be updated and we have two suggestions on same fragment and same two suggestions on more same fragments, confirmation on one of them refuses second one from all other fragments.
Definition at line 78 of file EditorSession.java.
|
private |
User logged in this session
Definition at line 46 of file EditorSession.java.