Class CampaignRecordStatistic

java.lang.Object
io.goobi.viewer.model.crowdsourcing.campaigns.CampaignRecordStatistic
All Implemented Interfaces:
Serializable

@Entity public class CampaignRecordStatistic extends Object implements Serializable
Annotation status of a record in the context of a particular campaign.
See Also:
  • Constructor Details

    • CampaignRecordStatistic

      public CampaignRecordStatistic()
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getId

      public Long getId()
      Getter for the field id.
      Returns:
      the database primary key of this record statistic entry
    • setId

      public void setId(Long id)
      Setter for the field id.
      Parameters:
      id - the database primary key to set
    • getDateCreated

      public LocalDateTime getDateCreated()
      Getter for the field dateCreated.
      Returns:
      the date and time when this record statistic entry was created
    • setDateCreated

      public void setDateCreated(LocalDateTime dateCreated)
      Setter for the field dateCreated.
      Parameters:
      dateCreated - the date and time when this record statistic entry was created
    • getDateUpdated

      public LocalDateTime getDateUpdated()
      Getter for the field dateUpdated.
      Returns:
      the date and time when this record statistic entry was last updated
    • setDateUpdated

      public void setDateUpdated(LocalDateTime dateUpdated)
      Setter for the field dateUpdated.
      Parameters:
      dateUpdated - the date and time when this record statistic entry was last updated
    • getOwner

      public Campaign getOwner()
      Getter for the field owner.
      Returns:
      the campaign this record statistic belongs to
    • setOwner

      public void setOwner(Campaign owner)
      Setter for the field owner.
      Parameters:
      owner - the campaign this record statistic belongs to
    • getPi

      public String getPi()
      Getter for the field pi.
      Returns:
      the persistent identifier of the record this statistic tracks
    • setPi

      public void setPi(String pi)
      Setter for the field pi.
      Parameters:
      pi - the persistent identifier of the record this statistic tracks
    • getPageStatistics

      public Map<String,CampaignRecordPageStatistic> getPageStatistics()
    • setPageStatistics

      public void setPageStatistics(Map<String,CampaignRecordPageStatistic> pageStatistics)
    • getStatus

      public CrowdsourcingStatus getStatus()
      Getter for the field status.
      Returns:
      the crowdsourcing processing status for this record within the campaign
    • setStatus

      public void setStatus(CrowdsourcingStatus status)
      Setter for the field status.
      Parameters:
      status - the crowdsourcing processing status for this record within the campaign
    • getAnnotators

      public List<User> getAnnotators()
      Getter for the field annotators.
      Returns:
      the list of users who have contributed annotations for this record
    • setAnnotators

      public void setAnnotators(List<User> annotators)
      Setter for the field annotators.
      Parameters:
      annotators - the list of users who have contributed annotations for this record
    • getReviewers

      public List<User> getReviewers()
      Getter for the field reviewers.
      Returns:
      the list of users who have reviewed annotations for this record
    • setReviewers

      public void setReviewers(List<User> reviewers)
      Setter for the field reviewers.
      Parameters:
      reviewers - the list of users who have reviewed annotations for this record
    • addAnnotater

      public void addAnnotater(User user)
      addAnnotater.
      Parameters:
      user - a User object.
    • addReviewer

      public void addReviewer(User user)
      addReviewer.
      Parameters:
      user - a User object.
    • containsPageStatus

      public boolean containsPageStatus(CrowdsourcingStatus status)
      Checks both record status and all page status to check if any matches the given status.
      Parameters:
      status - crowdsourcing status to check for
      Returns:
      false if status is null, otherwise true exactly if getStatus() equals status or if any CampaignRecordPageStatistic.getStatus() of pageStatistics returns true
    • getTotalPages

      public Integer getTotalPages()
    • setTotalPages

      public void setTotalPages(Integer totalPages)