Class SqlAnnotationLister
java.lang.Object
io.goobi.viewer.model.annotation.serialization.SqlAnnotationLister
- All Implemented Interfaces:
AnnotationLister<CrowdsourcingAnnotation>
public class SqlAnnotationLister
extends Object
implements AnnotationLister<CrowdsourcingAnnotation>
- Author:
- florian
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(Long id) long
getAnnotationCount
(String textQuery, List<String> motivations, List<Long> generators, List<Long> creators, String targetPi, Integer targetPage) getAnnotations
(int firstIndex, int items, String textQuery, List<String> motivations, List<Long> generators, List<Long> creators, String targetPi, Integer targetPage, String sortField, boolean sortDescending) long
-
Constructor Details
-
SqlAnnotationLister
- Throws:
DAOException
-
SqlAnnotationLister
- Parameters:
dao
-
-
-
Method Details
-
getAllAnnotations
- Specified by:
getAllAnnotations
in interfaceAnnotationLister<CrowdsourcingAnnotation>
-
getTotalAnnotationCount
public long getTotalAnnotationCount()- Specified by:
getTotalAnnotationCount
in interfaceAnnotationLister<CrowdsourcingAnnotation>
-
getAnnotations
public List<CrowdsourcingAnnotation> getAnnotations(int firstIndex, int items, String textQuery, List<String> motivations, List<Long> generators, List<Long> creators, String targetPi, Integer targetPage, String sortField, boolean sortDescending) - Specified by:
getAnnotations
in interfaceAnnotationLister<CrowdsourcingAnnotation>
-
getAnnotationCount
public long getAnnotationCount(String textQuery, List<String> motivations, List<Long> generators, List<Long> creators, String targetPi, Integer targetPage) - Specified by:
getAnnotationCount
in interfaceAnnotationLister<CrowdsourcingAnnotation>
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotationLister<CrowdsourcingAnnotation>
-