Class RestReadingRequestClient
java.lang.Object
com.logicaldoc.webservice.rest.client.AbstractRestClient
com.logicaldoc.enterprise.webservice.rest.client.RestReadingRequestClient
public class RestReadingRequestClient
extends com.logicaldoc.webservice.rest.client.AbstractRestClient
-
Constructor Summary
ConstructorDescriptionRestReadingRequestClient
(String endpoint, String username, String password) RestReadingRequestClient
(String endpoint, String username, String password, int timeout) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
askReadingConfirmation
(Long[] docIds, Long[] userIds, Long[] groupIds, boolean alertConfirmation, String comment) void
confirmReading
(long readingId, String version)
-
Constructor Details
-
RestReadingRequestClient
-
RestReadingRequestClient
Constructor- Parameters:
endpoint
- Connection URLusername
- the usernamepassword
- the passwordtimeout
- Timeout for the RESTful requests
-
-
Method Details
-
askReadingConfirmation
public void askReadingConfirmation(Long[] docIds, Long[] userIds, Long[] groupIds, boolean alertConfirmation, String comment) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException - Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
com.logicaldoc.webservice.WebserviceException
com.logicaldoc.core.PersistenceException
IOException
-
confirmReading
public void confirmReading(long readingId, String version) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException - Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
com.logicaldoc.webservice.WebserviceException
com.logicaldoc.core.PersistenceException
IOException
-
getUnconfirmedReadings
public WSReadingRequest[] getUnconfirmedReadings() throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, IOException- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
com.logicaldoc.webservice.WebserviceException
com.logicaldoc.core.PersistenceException
IOException
-