Class AbstractBookmarkResourceBuilder
java.lang.Object
io.goobi.viewer.api.rest.resourcebuilders.AbstractBookmarkResourceBuilder
- Direct Known Subclasses:
SessionBookmarkResourceBuilder,UserBookmarkResourceBuilder
- Author:
- florian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SuccessMessageabstract SuccessMessageaddBookmarkList(String name) abstract SuccessMessageaddBookmarkToBookmarkList(Long id, String pi) abstract SuccessMessageaddBookmarkToBookmarkList(Long id, String pi, String logId, String pageString) abstract de.intranda.api.iiif.presentation.v2.Collection2createCollection(BookmarkList list, AbstractApiUrlManager urls) protected de.intranda.api.iiif.presentation.v2.Collection2createCollection(BookmarkList list, String url) abstract SuccessMessagedeleteBookmarkFromBookmarkList(Long id, String pi) abstract SuccessMessagedeleteBookmarkFromBookmarkList(Long id, String pi, String logId, String pageString) abstract SuccessMessageabstract List<BookmarkList> Returns all public bookmark lists.abstract de.intranda.api.iiif.presentation.v2.Collection2getAsCollection(Long id, AbstractApiUrlManager urls) de.intranda.api.iiif.presentation.v2.Collection2getAsCollection(String sharedKey, AbstractApiUrlManager urls) getAsCollection.abstract BookmarkListabstract StringgetPageOrder(String pageString) getPageOrder.getSharedBookmarkList(String shareKey) abstract void
-
Constructor Details
-
AbstractBookmarkResourceBuilder
public AbstractBookmarkResourceBuilder()
-
-
Method Details
-
getAllBookmarkLists
public abstract List<BookmarkList> getAllBookmarkLists() throws DAOException, IOException, RestApiException- Throws:
DAOExceptionIOExceptionRestApiException
-
addBookmarkList
public abstract SuccessMessage addBookmarkList() throws DAOException, IOException, RestApiException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException- Throws:
DAOExceptionIOExceptionRestApiExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
addBookmarkList
public abstract SuccessMessage addBookmarkList(String name) throws DAOException, IOException, RestApiException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException - Throws:
DAOExceptionIOExceptionRestApiExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
getBookmarkListById
public abstract BookmarkList getBookmarkListById(Long id) throws DAOException, IOException, RestApiException - Throws:
DAOExceptionIOExceptionRestApiException
-
deleteBookmarkList
public abstract SuccessMessage deleteBookmarkList(Long id) throws DAOException, IOException, RestApiException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException - Throws:
DAOExceptionIOExceptionRestApiExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
-
getAsCollection
public abstract de.intranda.api.iiif.presentation.v2.Collection2 getAsCollection(Long id, AbstractApiUrlManager urls) throws DAOException, RestApiException, IOException - Throws:
DAOExceptionRestApiExceptionIOException
-
getBookmarkListForMirador
public abstract String getBookmarkListForMirador(Long id, AbstractApiUrlManager urls) throws DAOException, IOException, RestApiException, ViewerConfigurationException, IndexUnreachableException, PresentationException -
addBookmarkToBookmarkList
public abstract SuccessMessage addBookmarkToBookmarkList(Long id, String pi, String logId, String pageString) throws DAOException, IOException, RestApiException - Throws:
DAOExceptionIOExceptionRestApiException
-
addBookmarkToBookmarkList
public abstract SuccessMessage addBookmarkToBookmarkList(Long id, String pi) throws DAOException, IOException, RestApiException - Throws:
DAOExceptionIOExceptionRestApiException
-
deleteBookmarkFromBookmarkList
public abstract SuccessMessage deleteBookmarkFromBookmarkList(Long id, String pi, String logId, String pageString) throws DAOException, IOException, RestApiException - Throws:
DAOExceptionIOExceptionRestApiException
-
deleteBookmarkFromBookmarkList
public abstract SuccessMessage deleteBookmarkFromBookmarkList(Long id, String pi) throws DAOException, IOException, RestApiException - Throws:
DAOExceptionIOExceptionRestApiException
-
createCollection
public abstract de.intranda.api.iiif.presentation.v2.Collection2 createCollection(BookmarkList list, AbstractApiUrlManager urls) -
getPageOrder
getPageOrder.
-
getAllPublicBookmarkLists
public List<BookmarkList> getAllPublicBookmarkLists() throws DAOException, IOException, RestApiExceptionReturns all public bookmark lists.- Returns:
- a
Listobject. - Throws:
DAOException- if any.IOException- if any.RestApiException- if any.
-
getAsCollection
public de.intranda.api.iiif.presentation.v2.Collection2 getAsCollection(String sharedKey, AbstractApiUrlManager urls) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException, DAOException getAsCollection.
- Parameters:
sharedKey-urls-- Returns:
- a
Collection2object. - Throws:
DAOException- if any.RestApiException- if any.de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-
createCollection
protected de.intranda.api.iiif.presentation.v2.Collection2 createCollection(BookmarkList list, String url) - Parameters:
list-url-- Returns:
Collection2
-
updateBookmarkList
public abstract void updateBookmarkList(BookmarkList orig) throws de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException, DAOException - Parameters:
orig-- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestExceptionDAOException
-