Class AnnotationResource
java.lang.Object
io.goobi.viewer.api.rest.v2.annotations.AnnotationResource
- Author:
- florian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.intranda.api.annotation.IAnnotationaddAnnotation(de.intranda.api.annotation.IncomingAnnotation anno) createPersistentAnnotation(de.intranda.api.annotation.IAnnotation anno) de.intranda.api.annotation.IAnnotationdeleteAnnotation(Long id) de.intranda.api.annotation.IAnnotationgetAnnotation(Long id) de.intranda.api.annotation.wa.collection.AnnotationCollectionde.intranda.api.annotation.wa.collection.AnnotationPagede.intranda.api.annotation.IAnnotationgetComment(Long id) getUser()
-
Constructor Details
-
AnnotationResource
public AnnotationResource()
-
-
Method Details
-
getAnnotationCollection
@GET @Produces("application/json") public de.intranda.api.annotation.wa.collection.AnnotationCollection getAnnotationCollection() throws PresentationException, IndexUnreachableException- Returns:
AnnotationCollection- Throws:
DAOExceptionIndexUnreachableExceptionPresentationException
-
getAnnotationCollectionPage
@GET @Path("/{page}") @Produces("application/json") public de.intranda.api.annotation.wa.collection.AnnotationPage getAnnotationCollectionPage(@PathParam("page") Integer page) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, DAOException - Parameters:
page-- Returns:
AnnotationPage- Throws:
DAOExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
getAnnotation
@GET @Path("/annotation_{id}") @Produces("application/json") public de.intranda.api.annotation.IAnnotation getAnnotation(@PathParam("id") Long id) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException - Parameters:
id-- Returns:
IAnnotation- Throws:
DAOExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
getComment
@GET @Path("/comment_{id}") @Produces("application/json") public de.intranda.api.annotation.IAnnotation getComment(@PathParam("id") Long id) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException - Parameters:
id-- Returns:
IAnnotation- Throws:
DAOExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
addAnnotation
@POST @Consumes("application/json") @Produces("application/json") public de.intranda.api.annotation.IAnnotation addAnnotation(de.intranda.api.annotation.IncomingAnnotation anno) throws DAOException, NotImplementedException - Parameters:
anno-- Returns:
IAnnotation- Throws:
DAOExceptionNotImplementedException
-
deleteAnnotation
@DELETE @Path("/annotation_{id}") @Produces("application/json") public de.intranda.api.annotation.IAnnotation deleteAnnotation(@PathParam("id") Long id) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException - Parameters:
id-- Returns:
IAnnotation- Throws:
DAOExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
createPersistentAnnotation
public CrowdsourcingAnnotation createPersistentAnnotation(de.intranda.api.annotation.IAnnotation anno) - Parameters:
anno-- Returns:
CrowdsourcingAnnotation
-
getUser
- Returns:
User
-