Class RestSearchService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.webservice.soap.endpoint.SoapSearchService
com.logicaldoc.webservice.rest.endpoint.RestSearchService
- All Implemented Interfaces:
- SearchService,- SearchService
- Direct Known Subclasses:
- RestSearchSwagger
@Path("/")
@Consumes("application/json")
@Produces("application/json")
public class RestSearchService
extends SoapSearchService
implements SearchService
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfind(WSSearchOptions opt) findByFilename(String filename) Finds authorized documents for the current user the given filename (like operator is used)findFolders(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.endpoint.SoapSearchServicefind, findByFilename, findFoldersMethods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
RestSearchServicepublic RestSearchService()
 
- 
- 
Method Details- 
find@POST @Path("/find") public WSSearchResult find(WSSearchOptions opt) throws AuthenticationException, PersistenceException, WebserviceException, SearchException - Specified by:
- findin interface- SearchService
- Throws:
- AuthenticationException
- PersistenceException
- WebserviceException
- SearchException
 
- 
findByFilename@GET @Path("/findByFilename") public List<WSDocument> findByFilename(@QueryParam("filename") String filename) throws AuthenticationException, WebserviceException, PersistenceException Description copied from interface:SearchServiceFinds authorized documents for the current user the given filename (like operator is used)- Specified by:
- findByFilenamein interface- SearchService
- Parameters:
- filename- Filename of the document
- Returns:
- Collection of found documents
- Throws:
- AuthenticationException- Invalid session
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
findFolders@GET @Path("/findFolders") public List<WSFolder> findFolders(@QueryParam("name") String name) throws AuthenticationException, WebserviceException, PersistenceException Description copied from interface:SearchServiceFinds authorized folders for the current user containing the given name (like operator is used)- Specified by:
- findFoldersin interface- SearchService
- Parameters:
- name- Name of the folder
- Returns:
- Collection of found folders
- Throws:
- AuthenticationException- Invalid session
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
 
-