Class SoapSearchClient
- java.lang.Object
-
- com.logicaldoc.webservice.soap.client.SoapClient<SearchService>
-
- com.logicaldoc.webservice.soap.client.SoapSearchClient
-
- All Implemented Interfaces:
SearchService
public class SoapSearchClient extends SoapClient<SearchService> implements SearchService
Search Web Service client.- Since:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SoapSearchClient(String endpoint)
SoapSearchClient(String endpoint, int gzipThreshold, boolean log, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WSSearchResult
find(String sid, WSSearchOptions options)
Performs a search by the search options.WSDocument[]
findByFilename(String sid, String filename)
Finds authorized documents for the current user the given filename (like operator is used)WSFolder[]
findFolders(String sid, String name)
Finds authorized folders for the current user containing the given name (like operator is used)-
Methods inherited from class com.logicaldoc.webservice.soap.client.SoapClient
setMaxChildElements
-
-
-
-
Constructor Detail
-
SoapSearchClient
public SoapSearchClient(String endpoint, int gzipThreshold, boolean log, int timeout) throws IOException
- Throws:
IOException
-
SoapSearchClient
public SoapSearchClient(String endpoint) throws IOException
- Throws:
IOException
-
-
Method Detail
-
find
public WSSearchResult find(String sid, WSSearchOptions options) throws Exception
Description copied from interface:SearchService
Performs a search by the search options.- Specified by:
find
in interfaceSearchService
- Parameters:
sid
- identifier of the sessionoptions
- Search options- Returns:
- The search result
- Throws:
Exception
- error in the server application
-
findByFilename
public WSDocument[] findByFilename(String sid, String filename) throws Exception
Description copied from interface:SearchService
Finds authorized documents for the current user the given filename (like operator is used)- Specified by:
findByFilename
in interfaceSearchService
- Parameters:
sid
- identifier of the sessionfilename
- Filename of the document- Returns:
- Collection of found documents
- Throws:
Exception
- error in the server application
-
findFolders
public WSFolder[] findFolders(String sid, String name) throws Exception
Description copied from interface:SearchService
Finds authorized folders for the current user containing the given name (like operator is used)- Specified by:
findFolders
in interfaceSearchService
- Parameters:
sid
- identifier of the sessionname
- Name of the folder- Returns:
- Collection of found folders
- Throws:
Exception
- error in the server application
-
-