Class RestReadingRequestService

java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.enterprise.webservice.soap.endpoint.SoapReadingRequestService
com.logicaldoc.enterprise.webservice.rest.endpoint.RestReadingRequestService
All Implemented Interfaces:
ReadingRequestService, ReadingRequestService

@Path("/") public class RestReadingRequestService extends SoapReadingRequestService implements ReadingRequestService
  • Constructor Details

    • RestReadingRequestService

      public RestReadingRequestService()
  • Method Details

    • askReadingConfirmation

      @GET @Path("/askReadingConfirmation") public void askReadingConfirmation(@QueryParam("docIds") Long[] docIds, @QueryParam("userIds") Long[] userIds, @QueryParam("groupIds") Long[] groupIds, @QueryParam("groupIdsboolean") boolean alertConfirmation, @QueryParam("comment") String comment) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException
      Description copied from interface: ReadingRequestService
      Asks some users to confirm the reading of a set of documents
      Specified by:
      askReadingConfirmation in interface ReadingRequestService
      Parameters:
      docIds - identifiers of the documents
      userIds - identifiers of the recipient users
      groupIds - identifiers of the recipient groups
      alertConfirmation - if the requestor must be notified on reading confirmation
      comment - an optional message to include in the notification
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - The user was not authenticated
      com.logicaldoc.webservice.WebserviceException - Error in the webservice logic
      com.logicaldoc.core.PersistenceException - Error in the database layer
      IOException - I/O error
    • confirmReading

      @GET @Path("/confirmReading") public 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
      Description copied from interface: ReadingRequestService
      Confirms a reading request
      Specified by:
      confirmReading in interface ReadingRequestService
      Parameters:
      readingId - identifier of the reading request
      version - exact version of the document being confirmed(can be null)
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - The user was not authenticated
      com.logicaldoc.webservice.WebserviceException - Error in the webservice logic
      com.logicaldoc.core.PersistenceException - Error in the database layer
      IOException - I/O error
    • getUnconfirmedReadings

      @GET @Path("/getUnconfirmedReadings") public WSReadingRequest[] getUnconfirmedReadings() throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException
      Description copied from interface: ReadingRequestService
      Gets the list of all the unconfirmed readings requested to the current user
      Specified by:
      getUnconfirmedReadings in interface ReadingRequestService
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - The user was not authenticated
      com.logicaldoc.webservice.WebserviceException - Error in the webservice logic
      com.logicaldoc.core.PersistenceException - Error in the database layer
      IOException - I/O error