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 ofNotificationService- Since:
- 6.5
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SoapAuditService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WSHistory[]getDocumentHistory(String sid, long docId)Gets the history of a given documentWSHistory[]getHistory(String sid, long folderId, String oldestDate, String[] events, Integer max)Lists all the histories in the given pathWSMessage[]getMessages(String sid)Lists messages routed to the current userWSSubscription[]getSubscriptions(String sid)Lists all the subscriptions of the current uservoidmarkAsRead(String sid, long[] ids)Marks a set of messages as read by the current uservoidsubscribe(String sid, Long[] ids, String type, String events)Subscribes the current user to notifications emitted by documents or foldersvoidunsubscribe(String sid, Long[] ids, String type)Unsubscribes the current user to notifications emitted by documents or folders
-
-
-
Method Detail
-
subscribe
public void subscribe(String sid, Long[] ids, String type, String events) throws Exception
Description copied from interface:AuditServiceSubscribes the current user to notifications emitted by documents or folders- Specified by:
subscribein interfaceAuditService- Parameters:
sid- The session identifierids- The ids of documents or folderstype- one of Subscription.TYPE_xevents- Optional list of event codes separated by comma- Throws:
Exception- error
-
unsubscribe
public void unsubscribe(String sid, Long[] ids, String type) throws Exception
Description copied from interface:AuditServiceUnsubscribes the current user to notifications emitted by documents or folders- Specified by:
unsubscribein interfaceAuditService- Parameters:
sid- The session identifierids- The ids of documents or folderstype- one of Subscription.TYPE_x- Throws:
Exception- error
-
getSubscriptions
public WSSubscription[] getSubscriptions(String sid) throws Exception
Description copied from interface:AuditServiceLists all the subscriptions of the current user- Specified by:
getSubscriptionsin interfaceAuditService- Parameters:
sid- identifier of the session- Returns:
- array of subscriptions
- Throws:
Exception- error
-
getMessages
public WSMessage[] getMessages(String sid) throws Exception
Description copied from interface:AuditServiceLists messages routed to the current user- Specified by:
getMessagesin interfaceAuditService- Parameters:
sid- identifier of the session- Returns:
- array of messages
- Throws:
Exception- error
-
markAsRead
public void markAsRead(String sid, long[] ids) throws Exception
Description copied from interface:AuditServiceMarks a set of messages as read by the current user- Specified by:
markAsReadin interfaceAuditService- Parameters:
sid- identifier of the sessionids- identifiers of messages- Throws:
Exception- error
-
getHistory
public WSHistory[] getHistory(String sid, long folderId, String oldestDate, String[] events, Integer max) throws Exception
Description copied from interface:AuditServiceLists all the histories in the given path- Specified by:
getHistoryin interfaceAuditService- Parameters:
sid- The session identifierfolderId- The tree to inspectoldestDate- Optional oldest date to use as filterevents- Optional array of event codes to use as filtermax- Optional hint on the maximum number of records for each history type(document, folder ...)- Returns:
- The list of histories
- Throws:
Exception- error
-
getDocumentHistory
public WSHistory[] getDocumentHistory(String sid, long docId) throws Exception
Description copied from interface:AuditServiceGets the history of a given document- Specified by:
getDocumentHistoryin interfaceAuditService- Parameters:
sid- Session identifierdocId- The document id- Returns:
- Array of history records
- Throws:
Exception- error
-
-