Class SoapSearchService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.webservice.soap.endpoint.SoapSearchService
- All Implemented Interfaces:
SearchService
- Direct Known Subclasses:
RestSearchService
Search Web Service Implementation
- Since:
- 5.2
- Author:
- Matteo Caruso - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfind
(String sid, WSSearchOptions opt) Performs a search by the search options.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.AbstractService
convertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
-
Constructor Details
-
SoapSearchService
public SoapSearchService()
-
-
Method Details
-
find
public WSSearchResult find(String sid, WSSearchOptions opt) throws PersistenceException, AuthenticationException, WebserviceException, SearchException Description copied from interface:SearchService
Performs a search by the search options.- Specified by:
find
in interfaceSearchService
- Parameters:
sid
- identifier of the sessionopt
- Search options- Returns:
- The search result
- Throws:
PersistenceException
- Error in the databaseAuthenticationException
- Invalid sessionWebserviceException
- Error in the webserviceSearchException
- Eror in the search
-
findByFilename
public WSDocument[] findByFilename(String sid, String filename) throws AuthenticationException, WebserviceException, PersistenceException 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:
AuthenticationException
- Invalid sessionWebserviceException
- Error in the webservicePersistenceException
- Error in the database
-
findFolders
public WSFolder[] findFolders(String sid, String name) throws AuthenticationException, WebserviceException, PersistenceException 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:
AuthenticationException
- Invalid sessionWebserviceException
- Error in the webservicePersistenceException
- Error in the database
-