Class BookmarkResource
java.lang.Object
io.goobi.viewer.api.rest.v1.bookmarks.BookmarkResource
- Author:
- florian
-
Constructor Summary
ConstructorDescriptionBookmarkResource
(javax.servlet.http.HttpServletRequest servletRequest, javax.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.Collection2
getBookmarkListAsRSS
(Long id, String language, Integer maxHits) getBookmarkListAsRSSJson
(Long id, String language, Integer maxHits) de.intranda.api.iiif.presentation.v2.Collection2
getSharedBookmarkListAsRSS
(String key, String language, Integer maxHits) getSharedBookmarkListAsRSSJson
(String key, String language, Integer maxHits) patchBookmarkList
(Long id, BookmarkList list)
-
Constructor Details
-
BookmarkResource
public BookmarkResource(@Context javax.servlet.http.HttpServletRequest servletRequest, @Context javax.servlet.http.HttpServletResponse servletResponse)
-
-
Method Details
-
getOwnedBookmarkLists
@GET @Produces("application/json") public List<BookmarkList> getOwnedBookmarkLists() throws DAOException, IOException, RestApiException- Throws:
DAOException
IOException
RestApiException
-
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:
DAOException
IOException
RestApiException
de.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:
DAOException
IOException
RestApiException
-
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:
DAOException
IOException
RestApiException
de.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:
DAOException
IOException
RestApiException
de.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:
DAOException
IOException
RestApiException
-
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:
RestApiException
DAOException
IOException
-
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:
RestApiException
DAOException
IOException
-
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:
DAOException
IOException
RestApiException
-
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:
DAOException
IOException
RestApiException
de.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:
DAOException
IOException
RestApiException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
getPublicBookmarkLists
@GET @Path("/public") @Produces("application/json") public List<BookmarkList> getPublicBookmarkLists() throws DAOException, IOException, RestApiException- Throws:
DAOException
IOException
RestApiException
-