Class BookmarkResource
java.lang.Object
io.goobi.viewer.api.rest.v1.bookmarks.BookmarkResource
- Author:
- florian
-
Constructor Summary
ConstructorsConstructorDescriptionBookmarkResource(jakarta.servlet.http.HttpServletRequest servletRequest, jakarta.servlet.http.HttpServletResponse servletResponse) -
Method Summary
Modifier and TypeMethodDescriptionaddBookmarkList(BookmarkList list) addItemToBookmarkList(Long id, Bookmark item) deleteBookmarkItem(Long listId, Long bookmarkId) getBookmarkItem(Long listId, Long bookmarkId) getBookmarkList(Long id) de.intranda.api.iiif.presentation.v2.Collection2getBookmarkListAsRSS(Long id, String language, Integer maxHits) getBookmarkListAsRSSJson(Long id, String language, Integer maxHits) de.intranda.api.iiif.presentation.v2.Collection2getSharedBookmarkListAsRSS(String key, String language, Integer maxHits) getSharedBookmarkListAsRSSJson(String key, String language, Integer maxHits) patchBookmarkList(Long id, BookmarkList list)
-
Constructor Details
-
BookmarkResource
public BookmarkResource(@Context jakarta.servlet.http.HttpServletRequest servletRequest, @Context jakarta.servlet.http.HttpServletResponse servletResponse)
-
-
Method Details
-
getOwnedBookmarkLists
@GET @Produces("application/json") public List<BookmarkList> getOwnedBookmarkLists() throws DAOException, IOException, RestApiException- Throws:
DAOExceptionIOExceptionRestApiException
-
addBookmarkList
@POST @Consumes("application/json") @Produces("application/json") public SuccessMessage addBookmarkList(BookmarkList list) throws DAOException, IOException, RestApiException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException - Throws:
DAOExceptionIOExceptionRestApiExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
getBookmarkList
@GET @Path("/{listId}") @Produces("application/json") public BookmarkList getBookmarkList(@PathParam("listId") Long id) throws DAOException, IOException, RestApiException - Throws:
DAOExceptionIOExceptionRestApiException
-
patchBookmarkList
@PATCH @Path("/{listId}") @Produces("application/json") public BookmarkList patchBookmarkList(@PathParam("listId") Long id, BookmarkList list) throws DAOException, IOException, RestApiException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException - Throws:
DAOExceptionIOExceptionRestApiExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
deleteBookmarkList
@DELETE @Path("/{listId}") @Produces("application/json") public SuccessMessage deleteBookmarkList(@PathParam("listId") Long id) throws DAOException, IOException, RestApiException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException - Throws:
DAOExceptionIOExceptionRestApiExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
addItemToBookmarkList
@POST @Path("/{listId}") @Consumes("application/json") @Produces("application/json") public BookmarkList addItemToBookmarkList(@PathParam("listId") Long id, Bookmark item) throws DAOException, IOException, RestApiException - Throws:
DAOExceptionIOExceptionRestApiException
-
getBookmarkItem
@GET @Path("/{listId}/items/{bookmarkId}") @Produces("application/json") public Bookmark getBookmarkItem(@PathParam("listId") Long listId, @PathParam("bookmarkId") Long bookmarkId) throws RestApiException, DAOException, IOException - Throws:
RestApiExceptionDAOExceptionIOException
-
deleteBookmarkItem
@DELETE @Path("/{listId}/items/{bookmarkId}") @Produces("application/json") public SuccessMessage deleteBookmarkItem(@PathParam("listId") Long listId, @PathParam("bookmarkId") Long bookmarkId) throws RestApiException, DAOException, IOException - Throws:
RestApiExceptionDAOExceptionIOException
-
getBookmarkListAsIIIFCollection
@GET @Path("/{listId}/collection.json") @Produces("application/json") public de.intranda.api.iiif.presentation.v2.Collection2 getBookmarkListAsIIIFCollection(@PathParam("listId") Long id) throws DAOException, IOException, RestApiException - Throws:
DAOExceptionIOExceptionRestApiException
-
getBookmarkListForMirador
@GET @Path("/{listId}/mirador.json") @Produces("application/json") public String getBookmarkListForMirador(@PathParam("listId") Long id) throws DAOException, IOException, RestApiException, ViewerConfigurationException, IndexUnreachableException, PresentationException -
getBookmarkListAsRSS
@GET @Path("/{listId}/rss.xml") @Produces("text/xml") public String getBookmarkListAsRSS(@PathParam("listId") Long id, @QueryParam("lang") String language, @QueryParam("max") Integer maxHits) throws DAOException, IOException, RestApiException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException - Throws:
DAOExceptionIOExceptionRestApiExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
getBookmarkListAsRSSJson
@GET @Path("/{listId}/rss.json") @Produces("application/json") public Channel getBookmarkListAsRSSJson(@PathParam("listId") Long id, @QueryParam("lang") String language, @QueryParam("max") Integer maxHits) throws DAOException, IOException, RestApiException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException - Throws:
DAOExceptionIOExceptionRestApiExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
getPublicBookmarkLists
@GET @Path("/public") @Produces("application/json") public List<BookmarkList> getPublicBookmarkLists() throws DAOException, IOException, RestApiException- Throws:
DAOExceptionIOExceptionRestApiException
-