Class SoapAuditService

java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.audit.webservice.soap.endpoint.SoapAuditService
All Implemented Interfaces:
AuditService

public class SoapAuditService extends com.logicaldoc.webservice.AbstractService implements AuditService
Implementation of NotificationService
Since:
6.5
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • SoapAuditService

      public SoapAuditService()
  • Method Details

    • subscribe

      public void subscribe(String sid, Long[] ids, String type, String events) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException
      Description copied from interface: AuditService
      Subscribes the current user to notifications emitted by documents or folders
      Specified by:
      subscribe in interface AuditService
      Parameters:
      sid - The session identifier
      ids - The ids of documents or folders
      type - one of Subscription.TYPE_x
      events - Optional list of event codes separated by comma
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - Invalid session
      com.logicaldoc.webservice.WebserviceException - Error in the webservice
      com.logicaldoc.core.PersistenceException - Error in the database
    • unsubscribe

      public void unsubscribe(String sid, Long[] ids, String type) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException
      Description copied from interface: AuditService
      Unsubscribes the current user to notifications emitted by documents or folders
      Specified by:
      unsubscribe in interface AuditService
      Parameters:
      sid - The session identifier
      ids - The ids of documents or folders
      type - one of Subscription.TYPE_x
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - Invalid session
      com.logicaldoc.webservice.WebserviceException - Error in the webservice
      com.logicaldoc.core.PersistenceException - Error in the database
    • getSubscriptions

      public WSSubscription[] getSubscriptions(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException
      Description copied from interface: AuditService
      Lists all the subscriptions of the current user
      Specified by:
      getSubscriptions in interface AuditService
      Parameters:
      sid - identifier of the session
      Returns:
      array of subscriptions
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - Invalid session
      com.logicaldoc.webservice.WebserviceException - Error in the webservice
      com.logicaldoc.core.PersistenceException - Error in the database
    • getMessages

      public WSMessage[] getMessages(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException
      Description copied from interface: AuditService
      Lists messages routed to the current user
      Specified by:
      getMessages in interface AuditService
      Parameters:
      sid - identifier of the session
      Returns:
      array of messages
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - Invalid session
      com.logicaldoc.webservice.WebserviceException - Error in the webservice
      com.logicaldoc.core.PersistenceException - Error in the database
    • markAsRead

      public void markAsRead(String sid, long[] ids) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException
      Description copied from interface: AuditService
      Marks a set of messages as read by the current user
      Specified by:
      markAsRead in interface AuditService
      Parameters:
      sid - identifier of the session
      ids - identifiers of messages
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - Invalid session
      com.logicaldoc.webservice.WebserviceException - Error in the webservice
      com.logicaldoc.core.PersistenceException - Error in the database
    • getLatestHistory

      public WSHistory[] getLatestHistory(String sid, long folderId, String oldestDate, String[] events, Integer max) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException
      Description copied from interface: AuditService
      Lists all the histories in the given tree but just the more recent entry for each object(document or folder)
      Specified by:
      getLatestHistory in interface AuditService
      Parameters:
      sid - The session identifier
      folderId - The tree to inspect
      oldestDate - Optional oldest date to use as filter
      events - Optional array of event codes to use as filter
      max - Optional hint on the maximum number of records for each history type(document, folder ...)
      Returns:
      The list of histories
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - Invalid session
      com.logicaldoc.webservice.WebserviceException - Error in the webservice
      com.logicaldoc.core.PersistenceException - Error in the database
    • getHistory

      public WSHistory[] getHistory(String sid, long folderId, String oldestDate, String[] events, Integer max) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException
      Description copied from interface: AuditService
      Lists all the histories in the given tree
      Specified by:
      getHistory in interface AuditService
      Parameters:
      sid - The session identifier
      folderId - The tree to inspect
      oldestDate - Optional oldest date to use as filter
      events - Optional array of event codes to use as filter
      max - Optional hint on the maximum number of records for each history type(document, folder ...)
      Returns:
      The list of histories
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - Invalid session
      com.logicaldoc.webservice.WebserviceException - Error in the webservice
      com.logicaldoc.core.PersistenceException - Error in the database
    • getDocumentHistory

      public WSHistory[] getDocumentHistory(String sid, long docId) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, com.logicaldoc.core.security.authorization.PermissionException
      Description copied from interface: AuditService
      Gets the history of a given document
      Specified by:
      getDocumentHistory in interface AuditService
      Parameters:
      sid - Session identifier
      docId - The document id
      Returns:
      Array of history records
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - Invalid session
      com.logicaldoc.webservice.WebserviceException - Error in the webservice
      com.logicaldoc.core.PersistenceException - Error in the database
      com.logicaldoc.core.security.authorization.PermissionException - The user does not have the required permission
    • saveDocumentHistory

      public WSHistory saveDocumentHistory(String sid, WSHistory history) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException
      Description copied from interface: AuditService
      Saves a document history
      Specified by:
      saveDocumentHistory in interface AuditService
      Parameters:
      sid - Session identifier
      history - The history to save
      Returns:
      The saved History
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - Invalid session
      com.logicaldoc.webservice.WebserviceException - Error in the webservice
      com.logicaldoc.core.PersistenceException - Error in the database