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 -
Method Summary
Modifier 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.SoapBookmarkService
bookmarkDocument, bookmarkFolder, deleteBookmark, getBookmarks, saveBookmark, unbookmarkDocument, unbookmarkFolderMethods 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:
saveBookmarkin interfaceBookmarkService- Throws:
AuthenticationExceptionPermissionExceptionWebserviceExceptionPersistenceExceptionUnexistingResourceException
-
bookmarkDocument
@GET @Path("/bookmarkDocument") public WSBookmark bookmarkDocument(@QueryParam("docId") long docId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException, UnexistingResourceException - Specified by:
bookmarkDocumentin interfaceBookmarkService- Throws:
AuthenticationExceptionPermissionExceptionWebserviceExceptionPersistenceExceptionUnexistingResourceException
-
bookmarkFolder
@GET @Path("/bookmarkFolder") public WSBookmark bookmarkFolder(@QueryParam("folderId") long folderId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException - Specified by:
bookmarkFolderin interfaceBookmarkService- Throws:
AuthenticationExceptionPermissionExceptionWebserviceExceptionPersistenceException
-
getBookmarks
@GET @Path("/getBookmarks") public List<WSBookmark> getBookmarks() throws AuthenticationException, WebserviceException, PersistenceException- Specified by:
getBookmarksin interfaceBookmarkService- Throws:
AuthenticationExceptionWebserviceExceptionPersistenceException
-
deleteBookmark
@DELETE @Path("/deleteBookmark") public void deleteBookmark(@QueryParam("bookmarkId") long bookmarkId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
deleteBookmarkin interfaceBookmarkService- Throws:
AuthenticationExceptionWebserviceExceptionPersistenceException
-
unbookmarkDocument
@DELETE @Path("/unbookmarkDocument") public void unbookmarkDocument(@QueryParam("docId") long docId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
unbookmarkDocumentin interfaceBookmarkService- Throws:
AuthenticationExceptionWebserviceExceptionPersistenceException
-
unbookmarkFolder
@DELETE @Path("/unbookmarkFolder") public void unbookmarkFolder(@QueryParam("folderId") long folderId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
unbookmarkFolderin interfaceBookmarkService- Throws:
AuthenticationExceptionWebserviceExceptionPersistenceException
-