Class RestBookmarkService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.webservice.soap.endpoint.SoapBookmarkService
com.logicaldoc.webservice.rest.endpoint.RestBookmarkService
- All Implemented Interfaces:
BookmarkService
,BookmarkService
- Direct Known Subclasses:
RestBookmarkSwagger
@Path("/")
@Consumes({"application/xml","application/json"})
@Produces("application/json")
public class RestBookmarkService
extends SoapBookmarkService
implements BookmarkService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbookmarkDocument
(long docId) bookmarkFolder
(long folderId) void
deleteBookmark
(long bookmarkId) saveBookmark
(WSBookmark bookmark) void
unbookmarkDocument
(long docId) void
unbookmarkFolder
(long folderId) Methods inherited from class com.logicaldoc.webservice.soap.endpoint.SoapBookmarkService
bookmarkDocument, bookmarkFolder, deleteBookmark, getBookmarks, saveBookmark, unbookmarkDocument, unbookmarkFolder
Methods inherited from class com.logicaldoc.webservice.AbstractService
convertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
-
Constructor Details
-
RestBookmarkService
public RestBookmarkService()
-
-
Method Details
-
saveBookmark
@POST @Path("/saveBookmark") public WSBookmark saveBookmark(WSBookmark bookmark) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException, UnexistingResourceException - Specified by:
saveBookmark
in interfaceBookmarkService
- Throws:
AuthenticationException
PermissionException
WebserviceException
PersistenceException
UnexistingResourceException
-
bookmarkDocument
@GET @Path("/bookmarkDocument") public WSBookmark bookmarkDocument(@QueryParam("docId") long docId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException, UnexistingResourceException - Specified by:
bookmarkDocument
in interfaceBookmarkService
- Throws:
AuthenticationException
PermissionException
WebserviceException
PersistenceException
UnexistingResourceException
-
bookmarkFolder
@GET @Path("/bookmarkFolder") public WSBookmark bookmarkFolder(@QueryParam("folderId") long folderId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException - Specified by:
bookmarkFolder
in interfaceBookmarkService
- Throws:
AuthenticationException
PermissionException
WebserviceException
PersistenceException
-
getBookmarks
@GET @Path("/getBookmarks") public List<WSBookmark> getBookmarks() throws AuthenticationException, WebserviceException, PersistenceException- Specified by:
getBookmarks
in interfaceBookmarkService
- Throws:
AuthenticationException
WebserviceException
PersistenceException
-
deleteBookmark
@DELETE @Path("/deleteBookmark") public void deleteBookmark(@QueryParam("bookmarkId") long bookmarkId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
deleteBookmark
in interfaceBookmarkService
- Throws:
AuthenticationException
WebserviceException
PersistenceException
-
unbookmarkDocument
@DELETE @Path("/unbookmarkDocument") public void unbookmarkDocument(@QueryParam("docId") long docId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
unbookmarkDocument
in interfaceBookmarkService
- Throws:
AuthenticationException
WebserviceException
PersistenceException
-
unbookmarkFolder
@DELETE @Path("/unbookmarkFolder") public void unbookmarkFolder(@QueryParam("folderId") long folderId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
unbookmarkFolder
in interfaceBookmarkService
- Throws:
AuthenticationException
WebserviceException
PersistenceException
-