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 Summary
Constructors -
Method Summary
Modifier 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
-
Session
public Session()
-
-
Method Details
-
get
-
isDemo
public boolean isDemo() -
isDevel
public boolean isDevel() -
getSid
-
getIncomingMessage
-
isFolderPagination
public boolean isFolderPagination() -
close
public void close() -
getUser
-
setUser
-
init
-
onInvalidSession
public void onInvalidSession() -
addObserver
-
removeObserver
-
getInfo
-
setInfo
-
getSession
-
setSession
-
getTenantName
-
getTenantId
public long getTenantId() -
isDefaultTenant
public boolean isDefaultTenant() -
isAdmin
public 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
-
isServerPushEnabled
public boolean isServerPushEnabled() -
isShowThumbnail
public boolean isShowThumbnail() -
setShowThumbnail
public void setShowThumbnail(boolean showThumbnail) -
logout
public void logout() -
onDocumentSelected
Description copied from interface:DocumentObserverInvoked when a document is selected- Specified by:
onDocumentSelectedin interfaceDocumentObserver- Parameters:
document- the document that has been selected
-
onDocumentModified
Description copied from interface:DocumentObserverInvoked after the document's properties has been changed- Specified by:
onDocumentModifiedin interfaceDocumentObserver- Parameters:
document- the document that has been modified
-
onDocumentStored
Description copied from interface:DocumentObserverInvoked after the document has been stored- Specified by:
onDocumentStoredin interfaceDocumentObserver- Parameters:
document- the document that has been stored
-
onDocumentCheckedIn
Description copied from interface:DocumentObserverInvoked after the document's checkin- Specified by:
onDocumentCheckedInin interfaceDocumentObserver- Parameters:
document- the document that has been checked in
-
onDocumentCheckedOut
Description copied from interface:DocumentObserverInvoked after the document's checkout- Specified by:
onDocumentCheckedOutin interfaceDocumentObserver- Parameters:
document- the document that has been checked out
-
onDocumentsDeleted
Description copied from interface:DocumentObserverInvoked after the document has been deleted- Specified by:
onDocumentsDeletedin interfaceDocumentObserver- Parameters:
documents- the documents that have been deleted
-
onDocumentMoved
Description copied from interface:DocumentObserverInvoked after the document has been stored- Specified by:
onDocumentMovedin interfaceDocumentObserver- Parameters:
document- the document that has been moved
-
onDocumentLocked
Description copied from interface:DocumentObserverInvoked after the document is locked- Specified by:
onDocumentLockedin interfaceDocumentObserver- Parameters:
document- the document that has been locked
-
onDocumentUnlocked
Description copied from interface:DocumentObserverInvoked after the document is unlocked- Specified by:
onDocumentUnlockedin interfaceDocumentObserver- Parameters:
document- the document that has been unlocked
-
onDocumentBeginEditing
Description copied from interface:DocumentObserverInvoked after the document's properties are being edited- Specified by:
onDocumentBeginEditingin interfaceDocumentObserver- Parameters:
document- the document that is being edited
-
onDocumentCancelEditing
Description copied from interface:DocumentObserverInvoked after the document's properties are being edited- Specified by:
onDocumentCancelEditingin interfaceDocumentObserver- Parameters:
document- the document that is being edited
-
getHiliteDocId
-
setHiliteDocId
-
isUpdating
public boolean isUpdating() -
setUpdating
public void setUpdating(boolean updating)
-