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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionfind
(WSSearchOptions opt) findByFilename
(String filename) Finds authorized documents for the current user the given filename (like operator is used)WSFolder[]
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.SoapSearchService
find, findByFilename, findFolders
Methods inherited from class com.logicaldoc.webservice.AbstractService
convertDateToString, convertStringToDate, getContext, getMessageContext, isValidateSession, setContext, setMessageContext, setValidateSession
-
Constructor Details
-
RestSearchService
public RestSearchService()
-
-
Method Details
-
find
@POST @Path("/find") public WSSearchResult find(WSSearchOptions opt) throws AuthenticationException, PersistenceException, WebserviceException, SearchException - Specified by:
find
in interfaceSearchService
- Throws:
AuthenticationException
PersistenceException
WebserviceException
SearchException
-
findByFilename
@GET @Path("/findByFilename") public WSDocument[] findByFilename(@QueryParam("filename") 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:
filename
- Filename of the document- Returns:
- Collection of found documents
- Throws:
AuthenticationException
- Invalid sessionWebserviceException
- Error in the webservicePersistenceException
- Error in the database
-
findFolders
@GET @Path("/findFolders") public WSFolder[] findFolders(@QueryParam("name") 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:
name
- Name of the folder- Returns:
- Collection of found folders
- Throws:
AuthenticationException
- Invalid sessionWebserviceException
- Error in the webservicePersistenceException
- Error in the database
-