Class RestEnterpriseSearchClient
java.lang.Object
com.logicaldoc.webservice.rest.client.AbstractRestClient
com.logicaldoc.enterprise.webservice.rest.client.RestEnterpriseSearchClient
public class RestEnterpriseSearchClient
extends com.logicaldoc.webservice.rest.client.AbstractRestClient
-
Constructor Summary
ConstructorDescriptionRestEnterpriseSearchClient
(String endpoint, String username, String password) RestEnterpriseSearchClient
(String endpoint, String username, String password, int timeout) Constructor -
Method Summary
Modifier and TypeMethodDescriptionList<com.logicaldoc.webservice.model.WSDocument>
findByParameters
(Long templateId, List<WSCriterion> criteria, String order, Integer maxResults) List<com.logicaldoc.webservice.model.WSDocument>
findDocumentsByParameters
(Long templateId, List<WSCriterion> criteria, String order, Integer maxResults) String[][]
-
Constructor Details
-
RestEnterpriseSearchClient
-
RestEnterpriseSearchClient
Constructor- Parameters:
endpoint
- Connection URLusername
- the usernamepassword
- the passwordtimeout
- Timeout for the RESTful requests
-
-
Method Details
-
findByParameters
public List<com.logicaldoc.webservice.model.WSDocument> findByParameters(Long templateId, List<WSCriterion> criteria, String order, Integer maxResults) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException - Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
FeatureNotEnabledException
com.logicaldoc.webservice.WebserviceException
com.logicaldoc.core.PersistenceException
-
findDocumentsByParameters
public List<com.logicaldoc.webservice.model.WSDocument> findDocumentsByParameters(Long templateId, List<WSCriterion> criteria, String order, Integer maxResults) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException - Throws:
com.logicaldoc.core.security.authentication.AuthenticationException
FeatureNotEnabledException
com.logicaldoc.webservice.WebserviceException
com.logicaldoc.core.PersistenceException
-
queryDocuments
public String[][] queryDocuments(String select, String tables, String where, String order, Integer maxResults) throws com.logicaldoc.core.security.authorization.PermissionException, com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException - Throws:
com.logicaldoc.core.security.authorization.PermissionException
com.logicaldoc.core.security.authentication.AuthenticationException
FeatureNotEnabledException
com.logicaldoc.webservice.WebserviceException
com.logicaldoc.core.PersistenceException
-