Class Session

java.lang.Object
com.logicaldoc.gui.common.client.Session
All Implemented Interfaces:
DocumentObserver

public class Session extends Object implements DocumentObserver
Represents a client work session
Since:
6.0
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • Session

      public Session()
  • Method Details

    • get

      public static Session get()
    • isDemo

      public boolean isDemo()
    • isDevel

      public boolean isDevel()
    • getSid

      public String getSid()
    • getIncomingMessage

      public String getIncomingMessage()
    • isFolderPagination

      public boolean isFolderPagination()
    • close

      public void close()
    • getUser

      public GUIUser getUser()
    • setUser

      public void setUser(GUIUser user)
    • init

      public void init(GUISession session)
    • onInvalidSession

      public void onInvalidSession()
    • addObserver

      public void addObserver(SessionObserver observer)
    • removeObserver

      public void removeObserver(SessionObserver observer)
    • getInfo

      public GUIInfo getInfo()
    • setInfo

      public void setInfo(GUIInfo info)
    • getSession

      public GUISession getSession()
    • setSession

      public void setSession(GUISession session)
    • getTenantName

      public String 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

      public String getConfig(String name)
    • getTenantConfig

      public String getTenantConfig(String name)
    • getConfigAsInt

      public int getConfigAsInt(String name)
    • getConfigAsLong

      public long getConfigAsLong(String name)
    • getConfigAsBoolean

      public boolean getConfigAsBoolean(String name)
    • getTenantConfigAsBoolean

      public boolean getTenantConfigAsBoolean(String name)
    • setConfig

      public void setConfig(String name, String value)
    • updateConfig

      public void updateConfig(List<GUIParameter> params)
    • isServerPushEnabled

      public boolean isServerPushEnabled()
    • isShowThumbnail

      public boolean isShowThumbnail()
    • setShowThumbnail

      public void setShowThumbnail(boolean showThumbnail)
    • logout

      public void logout()
    • onDocumentSelected

      public void onDocumentSelected(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked when a document is selected
      Specified by:
      onDocumentSelected in interface DocumentObserver
      Parameters:
      document - the document that has been selected
    • onDocumentModified

      public void onDocumentModified(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked after the document's properties has been changed
      Specified by:
      onDocumentModified in interface DocumentObserver
      Parameters:
      document - the document that has been modified
    • onDocumentStored

      public void onDocumentStored(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked after the document has been stored
      Specified by:
      onDocumentStored in interface DocumentObserver
      Parameters:
      document - the document that has been stored
    • onDocumentCheckedIn

      public void onDocumentCheckedIn(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked after the document's checkin
      Specified by:
      onDocumentCheckedIn in interface DocumentObserver
      Parameters:
      document - the document that has been checked in
    • onDocumentCheckedOut

      public void onDocumentCheckedOut(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked after the document's checkout
      Specified by:
      onDocumentCheckedOut in interface DocumentObserver
      Parameters:
      document - the document that has been checked out
    • onDocumentsDeleted

      public void onDocumentsDeleted(List<GUIDocument> documents)
      Description copied from interface: DocumentObserver
      Invoked after the document has been deleted
      Specified by:
      onDocumentsDeleted in interface DocumentObserver
      Parameters:
      documents - the documents that have been deleted
    • onDocumentMoved

      public void onDocumentMoved(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked after the document has been stored
      Specified by:
      onDocumentMoved in interface DocumentObserver
      Parameters:
      document - the document that has been moved
    • onDocumentLocked

      public void onDocumentLocked(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked after the document is locked
      Specified by:
      onDocumentLocked in interface DocumentObserver
      Parameters:
      document - the document that has been locked
    • onDocumentUnlocked

      public void onDocumentUnlocked(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked after the document is unlocked
      Specified by:
      onDocumentUnlocked in interface DocumentObserver
      Parameters:
      document - the document that has been unlocked
    • onDocumentBeginEditing

      public void onDocumentBeginEditing(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked after the document's properties are being edited
      Specified by:
      onDocumentBeginEditing in interface DocumentObserver
      Parameters:
      document - the document that is being edited
    • onDocumentCancelEditing

      public void onDocumentCancelEditing(GUIDocument document)
      Description copied from interface: DocumentObserver
      Invoked after the document's properties are being edited
      Specified by:
      onDocumentCancelEditing in interface DocumentObserver
      Parameters:
      document - the document that is being edited
    • getHiliteDocId

      public Long getHiliteDocId()
    • setHiliteDocId

      public void setHiliteDocId(Long hiliteDocId)
    • isUpdating

      public boolean isUpdating()
    • setUpdating

      public void setUpdating(boolean updating)