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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserver
(SessionObserver observer) void
close()
static Session
get()
boolean
getConfigAsBoolean
(String name) int
getConfigAsInt
(String name) long
getConfigAsLong
(String name) getInfo()
getSid()
getTenantConfig
(String name) boolean
long
getUser()
void
init
(GUISession session) boolean
isAdmin()
Checks if the current user belongs to the admin groupboolean
boolean
isDemo()
boolean
isDevel()
boolean
boolean
boolean
boolean
void
logout()
void
onDocumentBeginEditing
(GUIDocument document) Invoked after the document's properties are being editedvoid
onDocumentCancelEditing
(GUIDocument document) Invoked after the document's properties are being editedvoid
onDocumentCheckedIn
(GUIDocument document) Invoked after the document's checkinvoid
onDocumentCheckedOut
(GUIDocument document) Invoked after the document's checkoutvoid
onDocumentLocked
(GUIDocument document) Invoked after the document is lockedvoid
onDocumentModified
(GUIDocument document) Invoked after the document's properties has been changedvoid
onDocumentMoved
(GUIDocument document) Invoked after the document has been storedvoid
onDocumentsDeleted
(List<GUIDocument> documents) Invoked after the document has been deletedvoid
onDocumentSelected
(GUIDocument document) Invoked when a document is selectedvoid
onDocumentStored
(GUIDocument document) Invoked after the document has been storedvoid
onDocumentUnlocked
(GUIDocument document) Invoked after the document is unlockedvoid
void
removeObserver
(SessionObserver observer) void
void
setHiliteDocId
(Long hiliteDocId) void
void
setSession
(GUISession session) void
setShowThumbnail
(boolean showThumbnail) void
setUpdating
(boolean updating) void
void
updateConfig
(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:DocumentObserver
Invoked when a document is selected- Specified by:
onDocumentSelected
in interfaceDocumentObserver
- Parameters:
document
- the document that has been selected
-
onDocumentModified
Description copied from interface:DocumentObserver
Invoked after the document's properties has been changed- Specified by:
onDocumentModified
in interfaceDocumentObserver
- Parameters:
document
- the document that has been modified
-
onDocumentStored
Description copied from interface:DocumentObserver
Invoked after the document has been stored- Specified by:
onDocumentStored
in interfaceDocumentObserver
- Parameters:
document
- the document that has been stored
-
onDocumentCheckedIn
Description copied from interface:DocumentObserver
Invoked after the document's checkin- Specified by:
onDocumentCheckedIn
in interfaceDocumentObserver
- Parameters:
document
- the document that has been checked in
-
onDocumentCheckedOut
Description copied from interface:DocumentObserver
Invoked after the document's checkout- Specified by:
onDocumentCheckedOut
in interfaceDocumentObserver
- Parameters:
document
- the document that has been checked out
-
onDocumentsDeleted
Description copied from interface:DocumentObserver
Invoked after the document has been deleted- Specified by:
onDocumentsDeleted
in interfaceDocumentObserver
- Parameters:
documents
- the documents that have been deleted
-
onDocumentMoved
Description copied from interface:DocumentObserver
Invoked after the document has been stored- Specified by:
onDocumentMoved
in interfaceDocumentObserver
- Parameters:
document
- the document that has been moved
-
onDocumentLocked
Description copied from interface:DocumentObserver
Invoked after the document is locked- Specified by:
onDocumentLocked
in interfaceDocumentObserver
- Parameters:
document
- the document that has been locked
-
onDocumentUnlocked
Description copied from interface:DocumentObserver
Invoked after the document is unlocked- Specified by:
onDocumentUnlocked
in interfaceDocumentObserver
- Parameters:
document
- the document that has been unlocked
-
onDocumentBeginEditing
Description copied from interface:DocumentObserver
Invoked after the document's properties are being edited- Specified by:
onDocumentBeginEditing
in interfaceDocumentObserver
- Parameters:
document
- the document that is being edited
-
onDocumentCancelEditing
Description copied from interface:DocumentObserver
Invoked after the document's properties are being edited- Specified by:
onDocumentCancelEditing
in interfaceDocumentObserver
- Parameters:
document
- the document that is being edited
-
getHiliteDocId
-
setHiliteDocId
-
isUpdating
public boolean isUpdating() -
setUpdating
public void setUpdating(boolean updating)
-