Package io.goobi.viewer.managedbeans
Class AnnotationBean
java.lang.Object
io.goobi.viewer.managedbeans.AnnotationBean
- All Implemented Interfaces:
Serializable
- Author:
- Florian Alpers
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteAnnotationAction(CrowdsourcingAnnotation annotation) Deletes given annotation.voidvoiddownloadAnnotations(List<CrowdsourcingAnnotation> annotations) voidCreates an excel sheet and write it to download stream.Getter for the fieldlazyModelAnnotations.voidinit()booleanGetter forexportSelection#isSelectAll()is placed here to avoid jsf confusing it with getting a value of the map.voidsetOwnerCampaignId(String ownerCampaignId) voidsetSelectAll(boolean select) Setter forexportSelection#setSelectAll(boolean)is placed here to avoid jsf confusing it with setting a value of the map.voidsetTargetRecordPI(String targetRecordPI)
-
Field Details
-
crowdsourcingBean
-
-
Constructor Details
-
AnnotationBean
public AnnotationBean()
-
-
Method Details
-
init
-
getLazyModelAnnotations
Getter for the fieldlazyModelAnnotations.- Returns:
- the
TableDataProviderused for paginated annotation listing in the admin interface
-
getOwnerCampaignId
-
setOwnerCampaignId
-
getTargetRecordPI
-
setTargetRecordPI
-
getExportSelection
-
deleteAnnotationAction
Deletes given annotation.- Parameters:
annotation- aCrowdsourcingAnnotationobject.- Returns:
- empty string
- Throws:
DAOException- if any.
-
getOwningCampaign
-
setSelectAll
public void setSelectAll(boolean select) Setter forexportSelection#setSelectAll(boolean)is placed here to avoid jsf confusing it with setting a value of the map.- Parameters:
select- if true, selects all annotations; if false, deselects all
-
isSelectAll
public boolean isSelectAll()Getter forexportSelection#isSelectAll()is placed here to avoid jsf confusing it with getting a value of the map.- Returns:
- always false to deselect the select all button when loading the page
-
downloadAllAnnotations
- Throws:
IOExceptionDAOException
-
downloadSelectedAnnotations
Creates an excel sheet and write it to download stream.- Throws:
IOException
-
downloadAnnotations
- Parameters:
annotations- the list of annotations to export- Throws:
IOException
-
getAnnotationById
-