Package io.goobi.viewer.managedbeans
Class AnnotationBean
java.lang.Object
io.goobi.viewer.managedbeans.AnnotationBean
- All Implemented Interfaces:
Serializable
- Author:
- florian
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeleteAnnotationAction
(CrowdsourcingAnnotation annotation) Deletes given annotation.void
void
downloadAnnotations
(List<CrowdsourcingAnnotation> annotations) void
Create an excel sheet and write it to download streamGetter for the fieldlazyModelAnnotations
.void
init()
boolean
Getter forexportSelection#isSelectAll()
is placed here to avoid jsf confusing it with getting a value of the mapvoid
setOwnerCampaignId
(String ownerCampaignId) void
setSelectAll
(boolean select) Setter forexportSelection#setSelectAll(boolean)
is placed here to avoid jsf confusing it with setting a value of the mapvoid
setTargetRecordPI
(String targetRecordPI)
-
Field Details
-
crowdsourcingBean
-
-
Constructor Details
-
AnnotationBean
public AnnotationBean()
-
-
Method Details
-
init
@PostConstruct public void init() -
getLazyModelAnnotations
Getter for the field
lazyModelAnnotations
.- Returns:
- the lazyModelAnnotations
-
getOwnerCampaignId
- Returns:
- the ownerCampaignId
-
setOwnerCampaignId
- Parameters:
ownerCampaignId
- the ownerCampaignId to set
-
getTargetRecordPI
- Returns:
- the targetRecordPI
-
setTargetRecordPI
- Parameters:
targetRecordPI
- the targetRecordPI to set
-
getExportSelection
- Returns:
- the exportSelection
-
deleteAnnotationAction
Deletes given annotation.- Parameters:
annotation
- aCrowdsourcingAnnotation
object.- 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
-
-
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:
IOException
DAOException
-
downloadSelectedAnnotations
Create an excel sheet and write it to download stream- Throws:
IOException
-
downloadAnnotations
- Parameters:
annotations
-- Throws:
IOException
-
getAnnotationById
-