Class AbstractAnnotationBuilder
java.lang.Object
io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractAnnotationBuilder
- Direct Known Subclasses:
OpenAnnotationBuilder,WebAnnotationBuilder
- Author:
- florian
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<de.intranda.api.annotation.IAnnotation> getAnnotation(String idString) longgetAnnotationCount(jakarta.servlet.http.HttpServletRequest request) Optional<org.apache.solr.common.SolrDocument> getAnnotationDocument(long id, jakarta.servlet.http.HttpServletRequest request) List<org.apache.solr.common.SolrDocument> getAnnotationDocuments(String query, int first, int rows, List<StringPair> sortFields, jakarta.servlet.http.HttpServletRequest request) List<org.apache.solr.common.SolrDocument> getAnnotationDocuments(String query, jakarta.servlet.http.HttpServletRequest request) List<org.apache.solr.common.SolrDocument> getAnnotationDocuments(String query, List<StringPair> sortFields, jakarta.servlet.http.HttpServletRequest request) getAnnotationQuery(long id) Search for both UGC docs with given IDDOC and with MD_ANNOTATION_ID = "annotation_". getAnnotationQuery(String pi, int pageNo) protected AbstractBuilder
-
Field Details
-
UGC_SOLR_FIELDS
-
-
Constructor Details
-
AbstractAnnotationBuilder
-
-
Method Details
-
getAnnotationQuery
-
getAnnotationQuery
-
getAnnotationQuery
-
getAnnotationQuery
Search for both UGC docs with given IDDOC and with MD_ANNOTATION_ID = "annotation_". Searching for IDDOC is only included for backwards compatibility purposes. The correct identifier is MD_ANNOTATION_ID since it reflects the original sql identifier - Parameters:
id-- Returns:
- Generated query
-
getAnnotationDocuments
public List<org.apache.solr.common.SolrDocument> getAnnotationDocuments(String query, jakarta.servlet.http.HttpServletRequest request) throws PresentationException, IndexUnreachableException - Parameters:
query-request-- Returns:
- List
- Throws:
PresentationExceptionIndexUnreachableException
-
getAnnotationDocuments
public List<org.apache.solr.common.SolrDocument> getAnnotationDocuments(String query, List<StringPair> sortFields, jakarta.servlet.http.HttpServletRequest request) throws PresentationException, IndexUnreachableException - Parameters:
query-sortFields-request-- Returns:
- List
- Throws:
PresentationExceptionIndexUnreachableException
-
getAnnotationDocuments
public List<org.apache.solr.common.SolrDocument> getAnnotationDocuments(String query, int first, int rows, List<StringPair> sortFields, jakarta.servlet.http.HttpServletRequest request) throws PresentationException, IndexUnreachableException - Parameters:
query-first-rows-sortFields-request-- Returns:
- List
- Throws:
PresentationExceptionIndexUnreachableException
-
getAnnotationDocument
public Optional<org.apache.solr.common.SolrDocument> getAnnotationDocument(long id, jakarta.servlet.http.HttpServletRequest request) throws PresentationException, IndexUnreachableException - Parameters:
id-request-- Returns:
- Optional
- Throws:
PresentationExceptionIndexUnreachableException
-
getAnnotationCount
public long getAnnotationCount(jakarta.servlet.http.HttpServletRequest request) throws PresentationException, IndexUnreachableException - Parameters:
request-- Returns:
- Annotation count
- Throws:
PresentationExceptionIndexUnreachableException
-
getRestBuilder
-
getAnnotation
- Parameters:
idString-- Returns:
- Optional
-