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 id
    • setId

      public void setId(Long id)

      Setter for the field id.

      Parameters:
      id - the id to set
    • getDateCreated

      public LocalDateTime getDateCreated()

      Getter for the field dateCreated.

      Returns:
      the dateCreated
    • setDateCreated

      public void setDateCreated(LocalDateTime dateCreated)

      Setter for the field dateCreated.

      Parameters:
      dateCreated - the dateCreated to set
    • getDateUpdated

      public LocalDateTime getDateUpdated()

      Getter for the field dateUpdated.

      Returns:
      the dateUpdated
    • setDateUpdated

      public void setDateUpdated(LocalDateTime dateUpdated)

      Setter for the field dateUpdated.

      Parameters:
      dateUpdated - the dateUpdated to set
    • getOwner

      public Campaign getOwner()

      Getter for the field owner.

      Returns:
      the owner
    • setOwner

      public void setOwner(Campaign owner)

      Setter for the field owner.

      Parameters:
      owner - the owner to set
    • getPi

      public String getPi()

      Getter for the field pi.

      Returns:
      the pi
    • setPi

      public void setPi(String pi)

      Setter for the field pi.

      Parameters:
      pi - the pi to set
    • getPageStatistics

      public Map<String,CampaignRecordPageStatistic> getPageStatistics()
      Returns:
      the pageStatistics
    • setPageStatistics

      public void setPageStatistics(Map<String,CampaignRecordPageStatistic> pageStatistics)
      Parameters:
      pageStatistics - the pageStatistics to set
    • getStatus

      public CrowdsourcingStatus getStatus()

      Getter for the field status.

      Returns:
      the status
    • setStatus

      public void setStatus(CrowdsourcingStatus status)

      Setter for the field status.

      Parameters:
      status - the status to set
    • getAnnotators

      public List<User> getAnnotators()

      Getter for the field annotators.

      Returns:
      the annotators
    • setAnnotators

      public void setAnnotators(List<User> annotators)

      Setter for the field annotators.

      Parameters:
      annotators - the annotators to set
    • getReviewers

      public List<User> getReviewers()

      Getter for the field reviewers.

      Returns:
      the reviewers
    • setReviewers

      public void setReviewers(List<User> reviewers)

      Setter for the field reviewers.

      Parameters:
      reviewers - the reviewers to set
    • 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)
      Check both record status and all page status to check if any matches the given status
      Parameters:
      status -
      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()
      Returns:
      the totalPages
    • setTotalPages

      public void setTotalPages(Integer totalPages)
      Parameters:
      totalPages - the totalPages to set