Package com.logicaldoc.gui.common.client
Class Session
java.lang.Object
com.logicaldoc.gui.common.client.Session
- All Implemented Interfaces:
- DocumentObserver
Represents a client work session
- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddObserver(SessionObserver observer) voidclose()static Sessionget()booleangetConfigAsBoolean(String name) intgetConfigAsInt(String name) longgetConfigAsLong(String name) getInfo()getSid()getTenantConfig(String name) booleanlonggetUser()voidinit(GUISession session) booleanisAdmin()Checks if the current user belongs to the admin groupbooleanbooleanisDemo()booleanisDevel()booleanbooleanbooleanbooleanvoidlogout()voidonDocumentBeginEditing(GUIDocument document) Invoked after the document's properties are being editedvoidonDocumentCancelEditing(GUIDocument document) Invoked after the document's properties are being editedvoidonDocumentCheckedIn(GUIDocument document) Invoked after the document's checkinvoidonDocumentCheckedOut(GUIDocument document) Invoked after the document's checkoutvoidonDocumentLocked(GUIDocument document) Invoked after the document is lockedvoidonDocumentModified(GUIDocument document) Invoked after the document's properties has been changedvoidonDocumentMoved(GUIDocument document) Invoked after the document has been storedvoidonDocumentsDeleted(List<GUIDocument> documents) Invoked after the document has been deletedvoidonDocumentSelected(GUIDocument document) Invoked when a document is selectedvoidonDocumentStored(GUIDocument document) Invoked after the document has been storedvoidonDocumentUnlocked(GUIDocument document) Invoked after the document is unlockedvoidvoidremoveObserver(SessionObserver observer) voidvoidsetHiliteDocId(Long hiliteDocId) voidvoidsetSession(GUISession session) voidsetShowThumbnail(boolean showThumbnail) voidsetUpdating(boolean updating) voidvoidupdateConfig(List<GUIParameter> params) 
- 
Constructor Details- 
Sessionpublic Session()
 
- 
- 
Method Details- 
get
- 
isDemopublic boolean isDemo()
- 
isDevelpublic boolean isDevel()
- 
getSid
- 
getIncomingMessage
- 
isFolderPaginationpublic boolean isFolderPagination()
- 
closepublic void close()
- 
getUser
- 
setUser
- 
init
- 
onInvalidSessionpublic void onInvalidSession()
- 
addObserver
- 
removeObserver
- 
getInfo
- 
setInfo
- 
getSession
- 
setSession
- 
getTenantName
- 
getTenantIdpublic long getTenantId()
- 
isDefaultTenantpublic boolean isDefaultTenant()
- 
isAdminpublic boolean isAdmin()Checks if the current user belongs to the admin group- Returns:
- true if the current user belongs to the admin group
 
- 
getConfig
- 
getTenantConfig
- 
getConfigAsInt
- 
getConfigAsLong
- 
getConfigAsBoolean
- 
getTenantConfigAsBoolean
- 
setConfig
- 
updateConfig
- 
isServerPushEnabledpublic boolean isServerPushEnabled()
- 
isShowThumbnailpublic boolean isShowThumbnail()
- 
setShowThumbnailpublic void setShowThumbnail(boolean showThumbnail) 
- 
logoutpublic void logout()
- 
onDocumentSelectedDescription copied from interface:DocumentObserverInvoked when a document is selected- Specified by:
- onDocumentSelectedin interface- DocumentObserver
- Parameters:
- document- the document that has been selected
 
- 
onDocumentModifiedDescription copied from interface:DocumentObserverInvoked after the document's properties has been changed- Specified by:
- onDocumentModifiedin interface- DocumentObserver
- Parameters:
- document- the document that has been modified
 
- 
onDocumentStoredDescription copied from interface:DocumentObserverInvoked after the document has been stored- Specified by:
- onDocumentStoredin interface- DocumentObserver
- Parameters:
- document- the document that has been stored
 
- 
onDocumentCheckedInDescription copied from interface:DocumentObserverInvoked after the document's checkin- Specified by:
- onDocumentCheckedInin interface- DocumentObserver
- Parameters:
- document- the document that has been checked in
 
- 
onDocumentCheckedOutDescription copied from interface:DocumentObserverInvoked after the document's checkout- Specified by:
- onDocumentCheckedOutin interface- DocumentObserver
- Parameters:
- document- the document that has been checked out
 
- 
onDocumentsDeletedDescription copied from interface:DocumentObserverInvoked after the document has been deleted- Specified by:
- onDocumentsDeletedin interface- DocumentObserver
- Parameters:
- documents- the documents that have been deleted
 
- 
onDocumentMovedDescription copied from interface:DocumentObserverInvoked after the document has been stored- Specified by:
- onDocumentMovedin interface- DocumentObserver
- Parameters:
- document- the document that has been moved
 
- 
onDocumentLockedDescription copied from interface:DocumentObserverInvoked after the document is locked- Specified by:
- onDocumentLockedin interface- DocumentObserver
- Parameters:
- document- the document that has been locked
 
- 
onDocumentUnlockedDescription copied from interface:DocumentObserverInvoked after the document is unlocked- Specified by:
- onDocumentUnlockedin interface- DocumentObserver
- Parameters:
- document- the document that has been unlocked
 
- 
onDocumentBeginEditingDescription copied from interface:DocumentObserverInvoked after the document's properties are being edited- Specified by:
- onDocumentBeginEditingin interface- DocumentObserver
- Parameters:
- document- the document that is being edited
 
- 
onDocumentCancelEditingDescription copied from interface:DocumentObserverInvoked after the document's properties are being edited- Specified by:
- onDocumentCancelEditingin interface- DocumentObserver
- Parameters:
- document- the document that is being edited
 
- 
getHiliteDocId
- 
setHiliteDocId
- 
isUpdatingpublic boolean isUpdating()
- 
setUpdatingpublic void setUpdating(boolean updating) 
 
-