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

Singleton for storing global variables. More...

Collaboration diagram for cz.vutbr.fit.knot.annotations.app.AppBean:
Collaboration graph

Static Public Member Functions

static AppBean getInstance ()
 
static SessionCleaner getSessionsCleaner ()
 
static PersistM getPersistenceManager ()
 
static ResponseCreator getResponseCreator ()
 
static void addModule (AnnotServerModule module)
 
static synchronized long getNextSessId ()
 
static synchronized long getNextTmpId ()
 
static ArrayList< EditorSessiongetSessions ()
 
static LockMaster getLockMaster ()
 
static void refreshUsersInSessions (User user)
 
static void addSession (EditorSession es)
 
static void removeSession (EditorSession es)
 
static void removeSession (long id)
 
static EditorSession getSession (long id)
 
static boolean sessionExists (long id)
 
static void removeExtAuthData (String system, String login)
 
static void setExtAuthData (String system, String login, String data)
 
static String getExtAuthData (String system, String login)
 
static SECAPIInterface getSecApiInterface ()
 
static boolean isSecApiInterfaceAvailable ()
 
static void setSecApiInterface (SECAPIInterface secApiInterface)
 
static synchronized int getDocumentUsage (Integer documentId)
 
static synchronized void incrementDocumentUsage (Integer documentId)
 
static synchronized void decrementDocumentUsage (Integer documentId)
 
static synchronized int getLastDocModification (int documentId)
 
static synchronized Integer incrementLastDocModification (int documentId)
 
static synchronized void initLastDocModification (int documentId)
 
static synchronized void addDocModificationSet (int documentID, int modificationID, ArrayList< TextModification > modificationSet)
 
static synchronized void removePossibleModificationSets (int documentID)
 
static synchronized boolean lastModificationSetsContains (int documentID, int setID)
 
static synchronized boolean hasModificationSetsConflicts (int documentID, int setID, ArrayList< TextModification > modifications)
 
static String getServerUri ()
 
static void setServerUri (String serverUri)
 
static String getBaseUri ()
 
static String getBaseAnnotUri ()
 
static String getBaseSugUri ()
 
static String getBaseTypeUri ()
 
static String getBaseDocumentUri ()
 
static String getBaseStoredDocumentUri ()
 
static String getBaseAuthorUri ()
 
static String getBaseUserUri ()
 
static String getBaseUserUriV2 ()
 
static String getBaseGroupUri ()
 
static String getBaseOntoUploadUri ()
 
static String getSecApiServerUri ()
 
static String getBaseSubscriptionUri ()
 
static void resetURIs ()
 
static void setSecApiServerUri (String secApiServerUri)
 
static String getKBImagePrefix ()
 
static Boolean getLogGetAlternativesFor ()
 
static void setKBImagePrefix (String KBImagePrefix)
 
static ArrayList
< SecApiReqTypeDef
getReqTypeDefinitions ()
 
static void setReqTypeDefinitions (ArrayList< SecApiReqTypeDef > reqTypeDefinitions)
 
static ArrayList
< SecApiReqTypeDef
getDesTypeDefinitions ()
 
static void setDesTypeDefinitions (ArrayList< SecApiReqTypeDef > desTypeDefinitions)
 
static ArrayList
< SecApiReqTypeDef
getUnTypeDefinitions ()
 
static void setUnTypeDefinitions (ArrayList< SecApiReqTypeDef > unTypeDefinitions)
 
static ArrayList
< SecApiReqTypeDef
getAvTypeDefinitions ()
 
static void setAvTypeDefinitions (ArrayList< SecApiReqTypeDef > avTypeDefinitions)
 
static ArrayList
< SecApiReqTypeDef
getUnAtDefinitions ()
 
static void setUnAtDefinitions (ArrayList< SecApiReqTypeDef > unAtDefinitions)
 
static ArrayList
< SecApiReqTypeDef
getDesTypeDefinitionsEA ()
 
static void setDesTypeDefinitionsEA (ArrayList< SecApiReqTypeDef > desTypeDefinitionsEA)
 
static ArrayList
< SecApiReqTypeDef
getReqTypeDefinitionsEA ()
 
static void setReqTypeDefinitionsEA (ArrayList< SecApiReqTypeDef > reqTypeDefinitionsEA)
 
static ArrayList
< SecApiReqTypeDef
getUnAtDefinitionsEA ()
 
static void setUnAtDefinitionsEA (ArrayList< SecApiReqTypeDef > unAtDefinitionsEA)
 
static ArrayList
< SecApiReqTypeDef
getUnTypeDefinitionsEA ()
 
static void setUnTypeDefinitionsEA (ArrayList< SecApiReqTypeDef > unTypeDefinitionsEA)
 

Static Public Attributes

static HashMap< String,
ReentrantLock > 
documentURILocker = new HashMap<String,ReentrantLock>()
 

Private Member Functions

 AppBean ()
 

Static Private Attributes

static AppBean instance = null
 
static PersistM persistenceManager = null
 
static ResponseCreator responseCreator = null
 
static long idGen = 0
 
static long tmpIdGen = 0
 
static ArrayList< EditorSessionsessions
 
static Map< String, Map
< String, String > > 
extAuthData
 
static SessionCleaner sessionCleaner = null
 
static HashMap< Integer, Integer > documentUsageMap = new HashMap<Integer,Integer>()
 
static HashMap< Integer, Integer > documentLastModificationIDMap = new HashMap<Integer, Integer>()
 
static HashMap< Integer,
LastTextModifications
documentAppliedModificationsMap = new HashMap<Integer, LastTextModifications>()
 
static SECAPIInterface secApiInterface = null
 
static LockMaster lockMaster = null
 
static String serverUri = Constants.SERVER_URI
 
static boolean serverUriLoaded = false
 
static String secApiServerUri = null
 
static String KBImagePrefix = null
 
static ArrayList
< SecApiReqTypeDef
reqTypeDefinitions = null
 
static ArrayList
< SecApiReqTypeDef
avTypeDefinitions = null
 
static ArrayList
< SecApiReqTypeDef
desTypeDefinitions = null
 
static ArrayList
< SecApiReqTypeDef
unTypeDefinitions = null
 
static ArrayList
< SecApiReqTypeDef
unAtDefinitions = null
 
static ArrayList
< SecApiReqTypeDef
reqTypeDefinitionsEA = null
 
static ArrayList
< SecApiReqTypeDef
desTypeDefinitionsEA = null
 
static ArrayList
< SecApiReqTypeDef
unTypeDefinitionsEA = null
 
static ArrayList
< SecApiReqTypeDef
unAtDefinitionsEA = null
 
static Boolean logGetAlternativesFor = null
 

Detailed Description

Singleton for storing global variables.

Singleton for storing global variables and performing operations at global application level (eg. generating session id's).

Author
idytrych

Definition at line 47 of file AppBean.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.app.AppBean.AppBean ( )
private

Constructor - Creates a new instance of AppBean, response creator and persistence manager

Definition at line 113 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

static synchronized void cz.vutbr.fit.knot.annotations.app.AppBean.addDocModificationSet ( int  documentID,
int  modificationID,
ArrayList< TextModification modificationSet 
)
static

Adds last applied set of modifications to hashmap

Parameters
documentIDID of the document
modificationIDmodification set ID
modificationSetmodification set

Definition at line 553 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.addModule ( AnnotServerModule  module)
static

Adds server module to list of active modules in response creator

Parameters
moduleServer module

Definition at line 207 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.addSession ( EditorSession  es)
static

Adds client session to the list of sessions

Parameters
esSession to be added

Definition at line 291 of file AppBean.java.

static synchronized void cz.vutbr.fit.knot.annotations.app.AppBean.decrementDocumentUsage ( Integer  documentId)
static

Decrement number of opened document instances

Parameters
documentIdID of document

Definition at line 492 of file AppBean.java.

Here is the caller graph for this function:

static ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.getAvTypeDefinitions ( )
static

Gets list of available type definitions for SEC API

Returns
Returns list of available type definitions for SEC API

Definition at line 917 of file AppBean.java.

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseAnnotUri ( )
static

Gets beginning of URI of annotation

Returns
Returns beginning of URI of annotation

Definition at line 663 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseAuthorUri ( )
static

Gets beginning of URI of annotation author (person)

Returns
Returns beginning of URI of annotation author (person)

Definition at line 708 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseDocumentUri ( )
static

Gets beginning of URI of annotated copy of document

Returns
Returns beginning of URI of annotated copy of document

Definition at line 690 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseGroupUri ( )
static

Gets beginning of URI of user group

Returns
Returns beginning of URI of user group

Definition at line 735 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseOntoUploadUri ( )
static

Gets base URI for ontology upload

Returns
Returns base URI for ontology upload

Definition at line 744 of file AppBean.java.

Here is the call graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseStoredDocumentUri ( )
static

Gets beginning of URI of stored document

Returns
Returns beginning of URI of stored document

Definition at line 699 of file AppBean.java.

Here is the call graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseSubscriptionUri ( )
static

Gets beginning of URI of subscription

Returns
Returns beginning of URI of subscription

Definition at line 776 of file AppBean.java.

Here is the call graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseSugUri ( )
static

Gets beginning of URI of suggestion

Returns
Returns beginning of URI of suggestion

Definition at line 672 of file AppBean.java.

Here is the call graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseTypeUri ( )
static

Gets beginning of URI of annotation type

Returns
Returns beginning of URI of annotation type

Definition at line 681 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseUri ( )
static

Gets base URI

Returns
Returns base URI

Definition at line 654 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseUserUri ( )
static

Gets beginning of URI of user (person)

Returns
Returns beginning of URI of user (person)

Definition at line 717 of file AppBean.java.

Here is the call graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getBaseUserUriV2 ( )
static

Gets beginning of URI of user (person) for protocol version 2

Returns
Returns beginning of URI of user (person) for protocol version 2

Definition at line 726 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.getDesTypeDefinitions ( )
static

Gets list of desired type definitions for SEC API

Returns
Returns list of desired type definitions for SEC API

Definition at line 881 of file AppBean.java.

static ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.getDesTypeDefinitionsEA ( )
static

Gets list of desired type definitions for SEC API entity autocomplete

Returns
Returns list of desired type definitions for SEC API entity autocomplete

Definition at line 954 of file AppBean.java.

Here is the caller graph for this function:

static synchronized int cz.vutbr.fit.knot.annotations.app.AppBean.getDocumentUsage ( Integer  documentId)
static

Gets number of opened document instances

Parameters
documentIdID of document
Returns
Number of opened document instances

Definition at line 465 of file AppBean.java.

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getExtAuthData ( String  system,
String  login 
)
static

Gets authentication data for given user

Parameters
systemSystem from which user come
loginLogin of the user
Returns
Returns authentication data for the user or null, if no data for this user available

Definition at line 412 of file AppBean.java.

static AppBean cz.vutbr.fit.knot.annotations.app.AppBean.getInstance ( )
static

Gets instance of AppBean

Returns
Returns instance of AppBean

Definition at line 158 of file AppBean.java.

Here is the call graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getKBImagePrefix ( )
static

Gets URI prefix for images from controlled vocabulary

Returns
Returns URI prefix for images from controlled vocabulary

Definition at line 803 of file AppBean.java.

Here is the call graph for this function:

static synchronized int cz.vutbr.fit.knot.annotations.app.AppBean.getLastDocModification ( int  documentId)
static

Gets ID of the last text modification set applied on a document.

Parameters
documentIdID of the document
Returns
modification set ID, -1 on error

Definition at line 509 of file AppBean.java.

static LockMaster cz.vutbr.fit.knot.annotations.app.AppBean.getLockMaster ( )
static

Gets global LockMaster instance

Returns
Global LockMaster instance

Definition at line 249 of file AppBean.java.

Here is the caller graph for this function:

static Boolean cz.vutbr.fit.knot.annotations.app.AppBean.getLogGetAlternativesFor ( )
static

Gets whethershould be usage of getAlternativesFor logged

Returns
Returns whether should be usage of getAlternativesFor logged

Definition at line 826 of file AppBean.java.

Here is the call graph for this function:

static synchronized long cz.vutbr.fit.knot.annotations.app.AppBean.getNextSessId ( )
static

Generate session id

Returns
New generated session id

Definition at line 219 of file AppBean.java.

static synchronized long cz.vutbr.fit.knot.annotations.app.AppBean.getNextTmpId ( )
static

Generate temporary id for suggested annotation

Returns
New generated temporary id for suggested annotation

Definition at line 228 of file AppBean.java.

static PersistM cz.vutbr.fit.knot.annotations.app.AppBean.getPersistenceManager ( )
static

Gets instance of persistence manager

Returns
Returns instance of persistence manager

Definition at line 183 of file AppBean.java.

Here is the caller graph for this function:

static ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.getReqTypeDefinitions ( )
static

Gets list of requested type definitions for SEC API

Returns
Returns list of requested type definitions for SEC API

Definition at line 863 of file AppBean.java.

Here is the caller graph for this function:

static ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.getReqTypeDefinitionsEA ( )
static

Gets list of requested type definitions for SEC API entity autocomplete

Returns
Returns list of requested type definitions for SEC API entity autocomplete

Definition at line 972 of file AppBean.java.

Here is the caller graph for this function:

static ResponseCreator cz.vutbr.fit.knot.annotations.app.AppBean.getResponseCreator ( )
static

Gets instance of response creator

Returns
Returns instance of response creator

Definition at line 195 of file AppBean.java.

static SECAPIInterface cz.vutbr.fit.knot.annotations.app.AppBean.getSecApiInterface ( )
static

Gets instance of SEC API interface

Returns
Returns instance of SEC API interface

Definition at line 429 of file AppBean.java.

static String cz.vutbr.fit.knot.annotations.app.AppBean.getSecApiServerUri ( )
static

Gets address of the SEC API server for annotation suggestions

Returns
Returns address of the SEC API server for annotation suggestions

Definition at line 753 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.app.AppBean.getServerUri ( )
static

Gets server URI

Returns
Returns server URI

Definition at line 625 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static EditorSession cz.vutbr.fit.knot.annotations.app.AppBean.getSession ( long  id)
static

Gets requested session

Parameters
idId of requested session
Returns
If session exists, returns requested session, else returns null.

Definition at line 338 of file AppBean.java.

Here is the caller graph for this function:

static ArrayList<EditorSession> cz.vutbr.fit.knot.annotations.app.AppBean.getSessions ( )
static

Gets list of client sessions

Returns
List of sessions

Definition at line 237 of file AppBean.java.

static SessionCleaner cz.vutbr.fit.knot.annotations.app.AppBean.getSessionsCleaner ( )
static

Gets instance of SessionsCleaner

Returns
Returns instance of SessionsCleaner

Definition at line 170 of file AppBean.java.

static ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.getUnAtDefinitions ( )
static

Gets list of unnecessary attribute definitions for SEC API

Returns
Returns list of unnecessary attribute definitions for SEC API

Definition at line 935 of file AppBean.java.

static ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.getUnAtDefinitionsEA ( )
static

Gets list of unnecessary attribute definitions for SEC API entity autocomplete

Returns
Returns list of unnecessary attribute definitions for SEC API entity autocomplete

Definition at line 990 of file AppBean.java.

static ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.getUnTypeDefinitions ( )
static

Gets list of unnecessary type definitions for SEC API

Returns
Returns list of unnecessary type definitions for SEC API

Definition at line 899 of file AppBean.java.

static ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.getUnTypeDefinitionsEA ( )
static

Gets list of unnecessary type definitions for SEC API entity autocomplete

Returns
Returns list of unnecessary type definitions for SEC API

Definition at line 1008 of file AppBean.java.

static synchronized boolean cz.vutbr.fit.knot.annotations.app.AppBean.hasModificationSetsConflicts ( int  documentID,
int  setID,
ArrayList< TextModification modifications 
)
static

Checks whetever the modification sets applied after modification identified by the passed setID of the document indetified by documentID contains conflicts with passed modification set.

Parameters
documentIDDocument ID
setIDID of the set preceding the checked sets
modificationsChecked modification set
Returns
true if there are conflicts otherwise false

Definition at line 608 of file AppBean.java.

Here is the caller graph for this function:

static synchronized void cz.vutbr.fit.knot.annotations.app.AppBean.incrementDocumentUsage ( Integer  documentId)
static

Increments number of opened document instances

Parameters
documentIdID of document

Definition at line 477 of file AppBean.java.

static synchronized Integer cz.vutbr.fit.knot.annotations.app.AppBean.incrementLastDocModification ( int  documentId)
static

Increments ID of the last text modification set applied on a document.

Parameters
documentIdID of the document
Returns
On success returns incremented ID, null otherwise

Definition at line 522 of file AppBean.java.

static synchronized void cz.vutbr.fit.knot.annotations.app.AppBean.initLastDocModification ( int  documentId)
static

Initializes ID of the last text modification set applied on a document.

Parameters
documentIdID of the document

Definition at line 539 of file AppBean.java.

static boolean cz.vutbr.fit.knot.annotations.app.AppBean.isSecApiInterfaceAvailable ( )
static

Checks whether SEC API interface is available

Returns
If SEC API interface is available, returns true, false otherwise

Definition at line 443 of file AppBean.java.

Here is the caller graph for this function:

static synchronized boolean cz.vutbr.fit.knot.annotations.app.AppBean.lastModificationSetsContains ( int  documentID,
int  setID 
)
static

Checks whetever last modification sets of the document indetified by documentID contains passed modification setID.

Parameters
documentIDDocument ID
setIDChecked modification set ID
Returns
true if contains otherwise false

Definition at line 588 of file AppBean.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static void cz.vutbr.fit.knot.annotations.app.AppBean.refreshUsersInSessions ( User  user)
static

Refreshes users in client sessions

Parameters
userOptional parameter with updated user

Definition at line 261 of file AppBean.java.

Here is the call graph for this function:

static void cz.vutbr.fit.knot.annotations.app.AppBean.removeExtAuthData ( String  system,
String  login 
)
static

Removes authentication data of given user from the global map

Parameters
systemSystem from which user come
loginLogin of the user

Definition at line 374 of file AppBean.java.

static synchronized void cz.vutbr.fit.knot.annotations.app.AppBean.removePossibleModificationSets ( int  documentID)
static

Removes all applied sets of modifications from hashmap

Parameters
documentIDDocument ID for modification sets removal

Definition at line 574 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.removeSession ( EditorSession  es)
static

Removes client session from the list of sessions

Parameters
esSession to be removed

Definition at line 306 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.removeSession ( long  id)
static

Removes client session from the list of sessions

Parameters
idId of session to be removed

Definition at line 321 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.resetURIs ( )
static

Ensures reload of some URIs loaded from DB

Definition at line 783 of file AppBean.java.

static boolean cz.vutbr.fit.knot.annotations.app.AppBean.sessionExists ( long  id)
static

Checks whether session with given id exists

Parameters
idId of checked session
Returns
If session exists, returns true, false otherwise

Definition at line 358 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setAvTypeDefinitions ( ArrayList< SecApiReqTypeDef avTypeDefinitions)
static

Sets list of available type definitions for SEC API

Parameters
avTypeDefinitionsList of available type definitions for SEC API

Definition at line 926 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setDesTypeDefinitions ( ArrayList< SecApiReqTypeDef desTypeDefinitions)
static

Sets list of desired type definitions for SEC API

Parameters
desTypeDefinitionsList of desired type definitions for SEC API

Definition at line 890 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setDesTypeDefinitionsEA ( ArrayList< SecApiReqTypeDef desTypeDefinitionsEA)
static

Sets list of desired type definitions for SEC API entity autocomplete

Parameters
desTypeDefinitionsEAList of desired type definitions for SEC API entity autocomplete

Definition at line 963 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setExtAuthData ( String  system,
String  login,
String  data 
)
static

Sets authentication data of given user in the global map

Parameters
systemSystem from which user come
loginLogin of the user
dataString with authentication data for the user

Definition at line 392 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setKBImagePrefix ( String  KBImagePrefix)
static

Sets URI prefix for images from controlled vocabulary

Parameters
KBImagePrefixURI prefix for images from controlled vocabulary

Definition at line 854 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setReqTypeDefinitions ( ArrayList< SecApiReqTypeDef reqTypeDefinitions)
static

Sets list of requested type definitions for SEC API

Parameters
reqTypeDefinitionsList of requested type definitions for SEC API

Definition at line 872 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setReqTypeDefinitionsEA ( ArrayList< SecApiReqTypeDef reqTypeDefinitionsEA)
static

Sets list of requested type definitions for SEC API entity autocomplete

Parameters
reqTypeDefinitionsEAList of requested type definitions for SEC API entity autocomplete

Definition at line 981 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setSecApiInterface ( SECAPIInterface  secApiInterface)
static

Sets instance of SEC API interface

Parameters
secApiInterfaceInstance of SEC API interface

Definition at line 455 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setSecApiServerUri ( String  secApiServerUri)
static

Sets address of the SEC API server for annotation suggestions

Parameters
secApiServerUriAddress of the SEC server for annotation suggestions

Definition at line 794 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setServerUri ( String  serverUri)
static

Sets server URI

Parameters
serverUriNew server URI

Definition at line 645 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setUnAtDefinitions ( ArrayList< SecApiReqTypeDef unAtDefinitions)
static

Sets list of unnecessary attribute definitions for SEC API

Parameters
unAtDefinitionsList of unnecessary attribute definitions for SEC API

Definition at line 944 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setUnAtDefinitionsEA ( ArrayList< SecApiReqTypeDef unAtDefinitionsEA)
static

Sets list of unnecessary attribute definitions for SEC API entity autocomplete

Parameters
unAtDefinitionsEAList of unnecessary attribute definitions for SEC API entity autocomplete

Definition at line 999 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setUnTypeDefinitions ( ArrayList< SecApiReqTypeDef unTypeDefinitions)
static

Sets list of unnecessary type definitions for SEC API

Parameters
unTypeDefinitionsList of unnecessary type definitions for SEC API

Definition at line 908 of file AppBean.java.

static void cz.vutbr.fit.knot.annotations.app.AppBean.setUnTypeDefinitionsEA ( ArrayList< SecApiReqTypeDef unTypeDefinitionsEA)
static

Sets list of unnecessary type definitions for SEC API entity autocomplete

Parameters
unTypeDefinitionsEAList of unnecessary type definitions for SEC API

Definition at line 1017 of file AppBean.java.

Member Data Documentation

ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.avTypeDefinitions = null
staticprivate

List of available type definitions for SEC API

Definition at line 91 of file AppBean.java.

ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.desTypeDefinitions = null
staticprivate

List of desired type definitions for SEC API

Definition at line 93 of file AppBean.java.

ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.desTypeDefinitionsEA = null
staticprivate

List of desired type definitions for SEC API entity autocomplete

Definition at line 101 of file AppBean.java.

HashMap<Integer, LastTextModifications> cz.vutbr.fit.knot.annotations.app.AppBean.documentAppliedModificationsMap = new HashMap<Integer, LastTextModifications>()
staticprivate

HashMap for last 3 used text modification on document. <documentID, lastModifications>

Definition at line 72 of file AppBean.java.

HashMap<Integer, Integer> cz.vutbr.fit.knot.annotations.app.AppBean.documentLastModificationIDMap = new HashMap<Integer, Integer>()
staticprivate

HashMap for id of last used text modification on document. <documentID, lastModificationID>

Definition at line 70 of file AppBean.java.

HashMap<String,ReentrantLock> cz.vutbr.fit.knot.annotations.app.AppBean.documentURILocker = new HashMap<String,ReentrantLock>()
static

Definition at line 78 of file AppBean.java.

HashMap<Integer, Integer> cz.vutbr.fit.knot.annotations.app.AppBean.documentUsageMap = new HashMap<Integer,Integer>()
staticprivate

Counters of how many instances of document is opened.

Definition at line 68 of file AppBean.java.

Map<String,Map<String,String> > cz.vutbr.fit.knot.annotations.app.AppBean.extAuthData
staticprivate

Map with user authentication data for external authentication

Definition at line 64 of file AppBean.java.

long cz.vutbr.fit.knot.annotations.app.AppBean.idGen = 0
staticprivate

Next id for session

Definition at line 57 of file AppBean.java.

AppBean cz.vutbr.fit.knot.annotations.app.AppBean.instance = null
staticprivate

Instance of AppBean

Definition at line 50 of file AppBean.java.

String cz.vutbr.fit.knot.annotations.app.AppBean.KBImagePrefix = null
staticprivate

URI prefix for images from controlled vocabulary

Definition at line 87 of file AppBean.java.

LockMaster cz.vutbr.fit.knot.annotations.app.AppBean.lockMaster = null
staticprivate

Instance of LockMaster

Definition at line 76 of file AppBean.java.

Boolean cz.vutbr.fit.knot.annotations.app.AppBean.logGetAlternativesFor = null
staticprivate

Should be usage of getAlternativesFor logged (for measurement purposes)?

Definition at line 107 of file AppBean.java.

PersistM cz.vutbr.fit.knot.annotations.app.AppBean.persistenceManager = null
staticprivate

Persistence manager

Definition at line 53 of file AppBean.java.

ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.reqTypeDefinitions = null
staticprivate

List of requested type definitions for SEC API

Definition at line 89 of file AppBean.java.

ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.reqTypeDefinitionsEA = null
staticprivate

List of requested type definitions for SEC API entity autocomplete

Definition at line 99 of file AppBean.java.

ResponseCreator cz.vutbr.fit.knot.annotations.app.AppBean.responseCreator = null
staticprivate

Response creator (single instance for whole application)

Definition at line 55 of file AppBean.java.

SECAPIInterface cz.vutbr.fit.knot.annotations.app.AppBean.secApiInterface = null
staticprivate

Instance of SEC API Interface

Definition at line 74 of file AppBean.java.

String cz.vutbr.fit.knot.annotations.app.AppBean.secApiServerUri = null
staticprivate

SEC API SERVER URI

Definition at line 85 of file AppBean.java.

String cz.vutbr.fit.knot.annotations.app.AppBean.serverUri = Constants.SERVER_URI
staticprivate

Server URI

Definition at line 81 of file AppBean.java.

boolean cz.vutbr.fit.knot.annotations.app.AppBean.serverUriLoaded = false
staticprivate

Was server URI loaded?

Definition at line 83 of file AppBean.java.

SessionCleaner cz.vutbr.fit.knot.annotations.app.AppBean.sessionCleaner = null
staticprivate

Instance of SessionsCleaner

Definition at line 66 of file AppBean.java.

ArrayList<EditorSession> cz.vutbr.fit.knot.annotations.app.AppBean.sessions
staticprivate

List of active sessions

Definition at line 62 of file AppBean.java.

long cz.vutbr.fit.knot.annotations.app.AppBean.tmpIdGen = 0
staticprivate

Next temporary id for suggested annotation

Definition at line 59 of file AppBean.java.

ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.unAtDefinitions = null
staticprivate

List of unnecessary attribute definitions for SEC API

Definition at line 97 of file AppBean.java.

ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.unAtDefinitionsEA = null
staticprivate

List of unnecessary attribute definitions for SEC API entity autocomplete

Definition at line 105 of file AppBean.java.

ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.unTypeDefinitions = null
staticprivate

List of unnecessary type definitions for SEC API

Definition at line 95 of file AppBean.java.

ArrayList<SecApiReqTypeDef> cz.vutbr.fit.knot.annotations.app.AppBean.unTypeDefinitionsEA = null
staticprivate

List of unnecessary type definitions for SEC API entity autocomplete

Definition at line 103 of file AppBean.java.


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