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 Alpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheCampaignto create the annotations.URI 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 URI identifying the IIIF resource to be annotated in this campaign item
-
setSource
Setter for the fieldsource.- Parameters:
source- the URI identifying the resource to be annotated in this campaign item
-
getCampaign
TheCampaignto create the annotations.- Returns:
- the campaign this item belongs to
-
setCampaign
Setter for the fieldcampaign.- Parameters:
campaign- the campaign this item belongs to
-
getQuestions
getQuestions.- Returns:
- a new list containing all queries
-
getRecordStatus
- Returns:
- the crowdsourcing processing status of the record in this campaign
-
setRecordStatus
Setter for the fieldrecordStatus.- Parameters:
recordStatus- the crowdsourcing processing status of the record in this campaign
-
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 URI identifying the user who last edited the status of this campaign item
-
setCreatorURI
Setter for the fieldcreatorURI.- Parameters:
creatorURI- the URI identifying the user who last edited the status of this campaign item
-
setLog
-
getLog
-
getMetadata
-
setMetadata
-
isPageStatisticMode
public boolean isPageStatisticMode() -
setPageStatisticMode
public void setPageStatisticMode(boolean pageStatisticMode) -
getPageStatusMap
-
setPageStatusMap
-
getRecordIdentifier
-
setRecordIdentifier
-