Class SoapReadingRequestClient
java.lang.Object
com.logicaldoc.webservice.soap.client.SoapClient<ReadingRequestService>
com.logicaldoc.enterprise.webservice.soap.client.SoapReadingRequestClient
- All Implemented Interfaces:
ReadingRequestService
public class SoapReadingRequestClient
extends com.logicaldoc.webservice.soap.client.SoapClient<ReadingRequestService>
implements ReadingRequestService
Enterprise Document Web Service client.
- Since:
- 8.1.2
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
ConstructorsConstructorDescriptionSoapReadingRequestClient(String endpoint) SoapReadingRequestClient(String endpoint, int timeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidaskReadingConfirmation(String sid, List<Long> docIds, List<Long> userIds, List<Long> groupIds, boolean alertConfirmation, String comment) Asks some users to confirm the reading of a set of documentsvoidconfirmReading(String sid, long readingId, String version) Confirms a reading requestGets the list of all the unconfirmed readings requested to the current user
-
Constructor Details
-
SoapReadingRequestClient
-
SoapReadingRequestClient
-
-
Method Details
-
askReadingConfirmation
public void askReadingConfirmation(String sid, List<Long> docIds, List<Long> userIds, List<Long> groupIds, boolean alertConfirmation, String comment) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException Description copied from interface:ReadingRequestServiceAsks some users to confirm the reading of a set of documents- Specified by:
askReadingConfirmationin interfaceReadingRequestService- Parameters:
sid- Session identifierdocIds- identifiers of the documentsuserIds- identifiers of the recipient usersgroupIds- identifiers of the recipient groupsalertConfirmation- if the requestor must be notified on reading confirmationcomment- an optional message to include in the notification- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.PersistenceException- Error in the database layerIOException- I/O error
-
confirmReading
public void confirmReading(String sid, long readingId, String version) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException Description copied from interface:ReadingRequestServiceConfirms a reading request- Specified by:
confirmReadingin interfaceReadingRequestService- Parameters:
sid- Session identifierreadingId- identifier of the reading requestversion- exact version of the document being confirmed(can be null)- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.PersistenceException- Error in the database layerIOException- I/O error
-
getUnconfirmedReadings
public List<WSReadingRequest> getUnconfirmedReadings(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException Description copied from interface:ReadingRequestServiceGets the list of all the unconfirmed readings requested to the current user- Specified by:
getUnconfirmedReadingsin interfaceReadingRequestService- Parameters:
sid- Session identifier- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.PersistenceException- Error in the database layerIOException- I/O error
-