Class CampaignItem

java.lang.Object
io.goobi.viewer.model.crowdsourcing.campaigns.CampaignItem

public class CampaignItem extends Object
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 Details

    • CampaignItem

      public CampaignItem()
  • Method Details

    • getSource

      public URI 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

      public void setSource(URI source)
      Setter for the field source.
      Parameters:
      source - the URI identifying the resource to be annotated in this campaign item
    • getCampaign

      public Campaign getCampaign()
      The Campaign to create the annotations.
      Returns:
      the campaign this item belongs to
    • setCampaign

      public void setCampaign(Campaign campaign)
      Setter for the field campaign.
      Parameters:
      campaign - the campaign this item belongs to
    • getQuestions

      public List<Question> getQuestions()
      getQuestions.
      Returns:
      a new list containing all queries
    • getRecordStatus

      public CrowdsourcingStatus getRecordStatus()
      The status of the resource within the Campaign.
      Returns:
      the crowdsourcing processing status of the record in this campaign
    • setRecordStatus

      public void setRecordStatus(CrowdsourcingStatus recordStatus)
      Setter for the field recordStatus.
      Parameters:
      recordStatus - the crowdsourcing processing status of the record in this campaign
    • isFinished

      public boolean isFinished()
      isFinished.
      Returns:
      true exactly if getRecordStatus() is CrowdsourcingStatus.FINISHED
    • isInReview

      public boolean isInReview()
      isInReview.
      Returns:
      true exactly if getRecordStatus() is CrowdsourcingStatus.REVIEW
    • getCreatorURI

      public URI getCreatorURI()
      URI for a user who edited the status of this item in the crowdsourcing frontend. The actual User-Id may be determined by calling User.getId(URI)
      Returns:
      the URI identifying the user who last edited the status of this campaign item
    • setCreatorURI

      public void setCreatorURI(URI creatorURI)
      Setter for the field creatorURI.
      Parameters:
      creatorURI - the URI identifying the user who last edited the status of this campaign item
    • setLog

      public void setLog(List<LogMessage> log)
    • getLog

      public List<LogMessage> getLog()
    • getMetadata

      public Map<String,List<String>> getMetadata()
    • setMetadata

      public void setMetadata(Map<String,List<String>> metadata)
    • isPageStatisticMode

      public boolean isPageStatisticMode()
    • setPageStatisticMode

      public void setPageStatisticMode(boolean pageStatisticMode)
    • getPageStatusMap

      public Map<Integer,String> getPageStatusMap()
    • setPageStatusMap

      public void setPageStatusMap(Map<Integer,String> pageStatusMap)
    • getRecordIdentifier

      public String getRecordIdentifier()
    • setRecordIdentifier

      public void setRecordIdentifier(String recordIdentifier)