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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetDocumentHistory(String sid, long docId) Gets the history of a given documentgetHistories(String sid, String path, String sidFilter, Long userId, String dateStart, String dateEnd, List<String> events, Integer max) Lists all the histories by the given criteria.Lists all the document and folder histories in the given treeLists all the document and folder histories in the given tree but just the more recent entry for each object(document or folder)getMessages(String sid) Lists messages routed to the current usergetSubscriptions(String sid) Lists all the subscriptions of the current usergetUserHistories(String sid, String username, Long userId, String oldestDate, List<String> events, Integer max) Retrieves the user histories.voidmarkAsRead(String sid, List<Long> ids) Marks a set of messages as read by the current usersaveDocumentHistory(String sid, WSHistory history) Saves a document historyvoidSubscribes the current user to notifications emitted by documents or foldersvoidunsubscribe(String sid, List<Long> ids, String type) Unsubscribes the current user to notifications emitted by documents or foldersMethods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
SoapAuditServicepublic SoapAuditService()
 
- 
- 
Method Details- 
subscribepublic void subscribe(String sid, List<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:AuditServiceSubscribes the current user to notifications emitted by documents or folders- Specified by:
- subscribein 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
 
- 
unsubscribepublic void unsubscribe(String sid, List<Long> ids, String type) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:AuditServiceUnsubscribes the current user to notifications emitted by documents or folders- Specified by:
- unsubscribein 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
 
- 
getSubscriptionspublic List<WSSubscription> getSubscriptions(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:AuditServiceLists all the subscriptions of the current user- Specified by:
- getSubscriptionsin 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
 
- 
getMessagespublic List<WSMessage> getMessages(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:AuditServiceLists messages routed to the current user- Specified by:
- getMessagesin 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
 
- 
markAsReadpublic void markAsRead(String sid, List<Long> ids) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:AuditServiceMarks a set of messages as read by the current user- Specified by:
- markAsReadin 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
 
- 
getLatestHistorypublic List<WSHistory> getLatestHistory(String sid, long folderId, String oldestDate, List<String> events, Integer max) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:AuditServiceLists all the document and folder histories in the given tree but just the more recent entry for each object(document or folder)- Specified by:
- getLatestHistoryin interface- AuditService
- Parameters:
- sid- The session identifier
- folderId- The tree to inspect
- oldestDate- Optional oldest date to use as filter
- events- Optional list 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
 
- 
getHistoriespublic List<WSHistory> getHistories(String sid, String path, String sidFilter, Long userId, String dateStart, String dateEnd, List<String> events, Integer max) 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:AuditServiceLists all the histories by the given criteria. Only those users with access to Last Changes report can invoke this method.- Specified by:
- getHistoriesin interface- AuditService
- Parameters:
- sid- The session identifier
- path- A path expression to use as filter
- sidFilter- A SID expression to use as filter
- userId- user identifier
- dateStart- oldest date
- dateEnd- earliest date
- events- list of events
- max- maximum number of records
- 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
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have the required permission
 
- 
getHistorypublic List<WSHistory> getHistory(String sid, long folderId, String oldestDate, List<String> events, Integer max) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:AuditServiceLists all the document and folder histories in the given tree- Specified by:
- getHistoryin interface- AuditService
- Parameters:
- sid- The session identifier
- folderId- The tree to inspect
- oldestDate- Optional oldest date to use as filter
- events- Optional list 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
 
- 
getDocumentHistorypublic List<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:AuditServiceGets the history of a given document- Specified by:
- getDocumentHistoryin interface- AuditService
- Parameters:
- sid- Session identifier
- docId- The document id
- Returns:
- List 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
 
- 
saveDocumentHistorypublic 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:AuditServiceSaves a document history- Specified by:
- saveDocumentHistoryin 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
 
- 
getUserHistoriespublic List<WSHistory> getUserHistories(String sid, String username, Long userId, String oldestDate, List<String> events, Integer max) throws com.logicaldoc.core.PersistenceException, com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.security.authorization.PermissionException Description copied from interface:AuditServiceRetrieves the user histories. Only those users with access to Last Changes report can invoke this method.- Specified by:
- getUserHistoriesin interface- AuditService
- Parameters:
- sid- Session identifier
- username- optional username to use as filter
- userId- optional user id to use as filter
- oldestDate- optional date id to use as filter
- events- optional list of event names
- max- maximum number of returned records
- Returns:
- the history records
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
- com.logicaldoc.core.security.authentication.AuthenticationException- Invalid session
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.security.authorization.PermissionException- The user does not have the required permission
 
 
-