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
  • 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 source
    • setSource

      public void setSource(URI source)

      Setter for the field source.

      Parameters:
      source - the source to set
    • getCampaign

      public Campaign getCampaign()
      The Campaign to create the annotations
      Returns:
      the campaign
    • setCampaign

      public void setCampaign(Campaign campaign)

      Setter for the field campaign.

      Parameters:
      campaign - the campaign to set
    • 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 recordStatus
    • setRecordStatus

      public void setRecordStatus(CrowdsourcingStatus recordStatus)

      Setter for the field recordStatus.

      Parameters:
      recordStatus - the recordStatus to set
    • isFinished

      public boolean isFinished()

      isFinished.

      Returns:
      true exactly if getRecordStatus() is FINISHED
    • isInReview

      public boolean isInReview()

      isInReview.

      Returns:
      true exactly if getRecordStatus() is 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 creatorURI
    • setCreatorURI

      public void setCreatorURI(URI creatorURI)

      Setter for the field creatorURI.

      Parameters:
      creatorURI - the creatorURI to set
    • setLog

      public void setLog(List<LogMessage> log)
      Parameters:
      log - the log to set
    • getLog

      public List<LogMessage> getLog()
      Returns:
      the log
    • getMetadata

      public Map<String,List<String>> getMetadata()
      Returns:
      the metadata
    • setMetadata

      public void setMetadata(Map<String,List<String>> metadata)
      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

      public Map<Integer,String> getPageStatusMap()
      Returns:
      the pageStatusMap
    • setPageStatusMap

      public void setPageStatusMap(Map<Integer,String> pageStatusMap)
      Parameters:
      pageStatusMap - the pageStatusMap to set
    • getRecordIdentifier

      public String getRecordIdentifier()
      Returns:
      the recordIdentifier
    • setRecordIdentifier

      public void setRecordIdentifier(String recordIdentifier)
      Parameters:
      recordIdentifier - the recordIdentifier to set