Class CampaignItem
java.lang.Object
io.goobi.viewer.model.crowdsourcing.campaigns.CampaignItem
An item containing a campaign and a source to be annotated. Used to set up a frontend annotation view in javascript as well as process status
changes created by that view
- Author:
- florian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheCampaignto create the annotationsURI for a user who edited the status of this item in the crowdsourcing frontend.getLog()getQuestions.URI to a iiif manifest or other collection of iiif canvases.booleanisFinished.booleanisInReview.booleanvoidsetCampaign(Campaign campaign) Setter for the fieldcampaign.voidsetCreatorURI(URI creatorURI) Setter for the fieldcreatorURI.voidsetLog(List<LogMessage> log) voidsetMetadata(Map<String, List<String>> metadata) voidsetPageStatisticMode(boolean pageStatisticMode) voidsetPageStatusMap(Map<Integer, String> pageStatusMap) voidsetRecordIdentifier(String recordIdentifier) voidsetRecordStatus(CrowdsourcingStatus recordStatus) Setter for the fieldrecordStatus.voidSetter for the fieldsource.
-
Constructor Details
-
CampaignItem
public CampaignItem()
-
-
Method Details
-
getSource
URI to a iiif manifest or other collection of iiif canvases. All generated annotations target either the source itself or one of its canvases- Returns:
- the source
-
setSource
Setter for the field
source.- Parameters:
source- the source to set
-
getCampaign
TheCampaignto create the annotations- Returns:
- the campaign
-
setCampaign
Setter for the field
campaign.- Parameters:
campaign- the campaign to set
-
getQuestions
getQuestions.
- Returns:
- a new list containing all queries
-
getRecordStatus
- Returns:
- the recordStatus
-
setRecordStatus
Setter for the field
recordStatus.- Parameters:
recordStatus- the recordStatus to set
-
isFinished
public boolean isFinished()isFinished.
- Returns:
- true exactly if
getRecordStatus()isCrowdsourcingStatus.FINISHED
-
isInReview
public boolean isInReview()isInReview.
- Returns:
- true exactly if
getRecordStatus()isCrowdsourcingStatus.REVIEW
-
getCreatorURI
URI for a user who edited the status of this item in the crowdsourcing frontend. The actualUser-Id may be determined by callingUser.getId(URI)- Returns:
- the creatorURI
-
setCreatorURI
Setter for the field
creatorURI.- Parameters:
creatorURI- the creatorURI to set
-
setLog
- Parameters:
log- the log to set
-
getLog
- Returns:
- the log
-
getMetadata
- Returns:
- the metadata
-
setMetadata
- Parameters:
metadata- the metadata to set
-
isPageStatisticMode
public boolean isPageStatisticMode()- Returns:
- the pageStatisticMode
-
setPageStatisticMode
public void setPageStatisticMode(boolean pageStatisticMode) - Parameters:
pageStatisticMode- the pageStatisticMode to set
-
getPageStatusMap
- Returns:
- the pageStatusMap
-
setPageStatusMap
- Parameters:
pageStatusMap- the pageStatusMap to set
-
getRecordIdentifier
- Returns:
- the recordIdentifier
-
setRecordIdentifier
- Parameters:
recordIdentifier- the recordIdentifier to set
-