Class AnnotationConverter

java.lang.Object
io.goobi.viewer.model.annotation.AnnotationConverter

public class AnnotationConverter extends Object
Author:
florian
  • Constructor Details

    • AnnotationConverter

      public AnnotationConverter()
    • AnnotationConverter

      public AnnotationConverter(AbstractApiUrlManager urls)
  • Method Details

    • getTargetAsResource

      public de.intranda.api.annotation.IResource getTargetAsResource(PersistentAnnotation anno) throws IOException
      Get the annotation target as an WebAnnotation IResource java object
      Parameters:
      anno -
      Returns:
      a IResource object.
      Throws:
      IOException - if any.
    • getTargetAsOAResource

      public de.intranda.api.annotation.IResource getTargetAsOAResource(PersistentAnnotation anno) throws IOException
      Get the annotation target as an OpenAnnotation IResource java object
      Parameters:
      anno -
      Returns:
      a IResource object.
      Throws:
      IOException - if any.
    • getBodyAsResource

      public de.intranda.api.annotation.IResource getBodyAsResource(PersistentAnnotation anno) throws IOException
      Get the
      Parameters:
      anno -
      Returns:
      a IResource object.
      Throws:
      IOException - if any.
    • getBodyAsOAResource

      public de.intranda.api.annotation.IResource getBodyAsOAResource(PersistentAnnotation anno) throws IOException

      getBodyAsOAResource.

      Parameters:
      anno -
      Returns:
      a IResource object.
      Throws:
      IOException - if any.
    • getAsWebAnnotation

      public de.intranda.api.annotation.wa.WebAnnotation getAsWebAnnotation(PersistentAnnotation anno)
      Get the annotation as an WebAnnotation java object
      Parameters:
      anno -
      Returns:
      a WebAnnotation object.
      Throws:
      DAOException
    • getAsOpenAnnotation

      public de.intranda.api.annotation.oa.OpenAnnotation getAsOpenAnnotation(PersistentAnnotation anno)
      Get the annotation as an OpenAnnotation java object
      Parameters:
      anno -
      Returns:
      a OpenAnnotation object.
      Throws:
      com.fasterxml.jackson.core.JsonParseException - if any.
      com.fasterxml.jackson.databind.JsonMappingException - if any.
      IOException - if any.
    • getAsPersistentAnnotation

      public PersistentAnnotation getAsPersistentAnnotation(de.intranda.api.annotation.wa.WebAnnotation anno)
      Parameters:
      anno -
      Returns:
      PersistentAnnotation