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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbookmarkDocument(long docId) bookmarkFolder(long folderId) voiddeleteBookmark(long bookmarkId) saveBookmark(WSBookmark bookmark) voidunbookmarkDocument(long docId) voidunbookmarkFolder(long folderId) Methods inherited from class com.logicaldoc.webservice.soap.endpoint.SoapBookmarkServicebookmarkDocument, bookmarkFolder, deleteBookmark, getBookmarks, saveBookmark, unbookmarkDocument, unbookmarkFolderMethods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
RestBookmarkServicepublic RestBookmarkService()
 
- 
- 
Method Details- 
saveBookmark@POST @Path("/saveBookmark") public WSBookmark saveBookmark(WSBookmark bookmark) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException, UnexistingResourceException - Specified by:
- saveBookmarkin interface- BookmarkService
- 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:
- bookmarkDocumentin interface- BookmarkService
- Throws:
- AuthenticationException
- PermissionException
- WebserviceException
- PersistenceException
- UnexistingResourceException
 
- 
bookmarkFolder@GET @Path("/bookmarkFolder") public WSBookmark bookmarkFolder(@QueryParam("folderId") long folderId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException - Specified by:
- bookmarkFolderin interface- BookmarkService
- Throws:
- AuthenticationException
- PermissionException
- WebserviceException
- PersistenceException
 
- 
getBookmarks@GET @Path("/getBookmarks") public List<WSBookmark> getBookmarks() throws AuthenticationException, WebserviceException, PersistenceException- Specified by:
- getBookmarksin interface- BookmarkService
- Throws:
- AuthenticationException
- WebserviceException
- PersistenceException
 
- 
deleteBookmark@DELETE @Path("/deleteBookmark") public void deleteBookmark(@QueryParam("bookmarkId") long bookmarkId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
- deleteBookmarkin interface- BookmarkService
- Throws:
- AuthenticationException
- WebserviceException
- PersistenceException
 
- 
unbookmarkDocument@DELETE @Path("/unbookmarkDocument") public void unbookmarkDocument(@QueryParam("docId") long docId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
- unbookmarkDocumentin interface- BookmarkService
- Throws:
- AuthenticationException
- WebserviceException
- PersistenceException
 
- 
unbookmarkFolder@DELETE @Path("/unbookmarkFolder") public void unbookmarkFolder(@QueryParam("folderId") long folderId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
- unbookmarkFolderin interface- BookmarkService
- Throws:
- AuthenticationException
- WebserviceException
- PersistenceException
 
 
-