Interface ReadingRequestService
- All Known Implementing Classes:
RestReadingRequestService
@Consumes("application/json")
@Produces("application/json")
public interface ReadingRequestService
Enterprise Document Web Service definition interface
- Since:
- 8.7.4
- Author:
- Alessandro Gasparini - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionvoidaskReadingConfirmation(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(long readingId, String version) Confirms a reading requestGets the list of all the unconfirmed readings requested to the current user
-
Method Details
-
askReadingConfirmation
@Consumes("application/x-www-form-urlencoded") @POST @Path("/askReadingConfirmation") void askReadingConfirmation(@FormParam("docIds") List<Long> docIds, @FormParam("userIds") List<Long> userIds, @FormParam("groupIds") List<Long> groupIds, @FormParam("alertConfirmation") boolean alertConfirmation, @FormParam("comment") String comment) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException Asks some users to confirm the reading of a set of documents- Parameters:
docIds- 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:
IOException- I/O errorcom.logicaldoc.core.PersistenceException- Error in the database layercom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticated
-
confirmReading
@PUT @Path("/confirmReading") void confirmReading(@QueryParam("readingId") long readingId, @QueryParam("version") String version) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException Confirms a reading request- Parameters:
readingId- identifier of the reading requestversion- exact version of the document being confirmed(can be null)- Throws:
IOException- I/O errorcom.logicaldoc.core.PersistenceException- Error in the database layercom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticated
-
getUnconfirmedReadings
@GET @Path("/getUnconfirmedReadings") List<WSReadingRequest> getUnconfirmedReadings() throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOExceptionGets the list of all the unconfirmed readings requested to the current user- Throws:
IOException- I/O errorcom.logicaldoc.core.PersistenceException- Error in the database layercom.logicaldoc.webservice.WebserviceException- Error in the webservice logiccom.logicaldoc.core.security.authentication.AuthenticationException- The user was not authenticated
-