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
Constructors Constructor Description RestBookmarkService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WSBookmark
bookmarkDocument(long docId)
WSBookmark
bookmarkFolder(long folderId)
void
deleteBookmark(long bookmarkId)
WSBookmark[]
getBookmarks()
Retrieves all the bookmarks of the current user.WSBookmark
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, getContext, getMessageContext, isValidateSession, setContext, setMessageContext, setValidateSession
-
-
-
-
Method Detail
-
saveBookmark
@POST @Path("/saveBookmark") public WSBookmark saveBookmark(WSBookmark bookmark) throws Exception
- Specified by:
saveBookmark
in interfaceBookmarkService
- Throws:
Exception
-
bookmarkDocument
@GET @Path("/bookmarkDocument") public WSBookmark bookmarkDocument(@QueryParam("docId") long docId) throws Exception
- Specified by:
bookmarkDocument
in interfaceBookmarkService
- Throws:
Exception
-
bookmarkFolder
@GET @Path("/bookmarkFolder") public WSBookmark bookmarkFolder(@QueryParam("folderId") long folderId) throws Exception
- Specified by:
bookmarkFolder
in interfaceBookmarkService
- Throws:
Exception
-
getBookmarks
@GET @Path("/getBookmarks") public WSBookmark[] getBookmarks() throws Exception
Retrieves all the bookmarks of the current user.- Specified by:
getBookmarks
in interfaceBookmarkService
- Throws:
Exception
-
deleteBookmark
@DELETE @Path("/deleteBookmark") public void deleteBookmark(@QueryParam("bookmarkId") long bookmarkId) throws Exception
- Specified by:
deleteBookmark
in interfaceBookmarkService
- Throws:
Exception
-
unbookmarkDocument
@DELETE @Path("/unbookmarkDocument") public void unbookmarkDocument(@QueryParam("docId") long docId) throws Exception
- Specified by:
unbookmarkDocument
in interfaceBookmarkService
- Throws:
Exception
-
unbookmarkFolder
@DELETE @Path("/unbookmarkFolder") public void unbookmarkFolder(@QueryParam("folderId") long folderId) throws Exception
- Specified by:
unbookmarkFolder
in interfaceBookmarkService
- Throws:
Exception
-
-