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
-
Method Summary
Modifier and TypeMethodDescriptionTheCampaign
to 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.boolean
isFinished.boolean
isInReview.boolean
void
setCampaign
(Campaign campaign) Setter for the fieldcampaign
.void
setCreatorURI
(URI creatorURI) Setter for the fieldcreatorURI
.void
setLog
(List<LogMessage> log) void
setMetadata
(Map<String, List<String>> metadata) void
setPageStatisticMode
(boolean pageStatisticMode) void
setPageStatusMap
(Map<Integer, String> pageStatusMap) void
setRecordIdentifier
(String recordIdentifier) void
setRecordStatus
(CrowdsourcingStatus recordStatus) Setter for the fieldrecordStatus
.void
Setter 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
TheCampaign
to 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
-