Class CampaignRecordStatistic
java.lang.Object
io.goobi.viewer.model.crowdsourcing.campaigns.CampaignRecordStatistic
- All Implemented Interfaces:
Serializable
Annotation status of a record in the context of a particular campaign.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotater(User user) addAnnotater.voidaddReviewer(User user) addReviewer.booleanChecks both record status and all page status to check if any matches the given status.booleanGetter for the fieldannotators.Getter for the fielddateCreated.Getter for the fielddateUpdated.getId()Getter for the fieldid.getOwner()Getter for the fieldowner.getPi()Getter for the fieldpi.Getter for the fieldreviewers.Getter for the fieldstatus.inthashCode()voidsetAnnotators(List<User> annotators) Setter for the fieldannotators.voidsetDateCreated(LocalDateTime dateCreated) Setter for the fielddateCreated.voidsetDateUpdated(LocalDateTime dateUpdated) Setter for the fielddateUpdated.voidSetter for the fieldid.voidSetter for the fieldowner.voidsetPageStatistics(Map<String, CampaignRecordPageStatistic> pageStatistics) voidSetter for the fieldpi.voidsetReviewers(List<User> reviewers) Setter for the fieldreviewers.voidsetStatus(CrowdsourcingStatus status) Setter for the fieldstatus.voidsetTotalPages(Integer totalPages)
-
Constructor Details
-
CampaignRecordStatistic
public CampaignRecordStatistic()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getId
Getter for the fieldid.- Returns:
- the database primary key of this record statistic entry
-
setId
Setter for the fieldid.- Parameters:
id- the database primary key to set
-
getDateCreated
Getter for the fielddateCreated.- Returns:
- the date and time when this record statistic entry was created
-
setDateCreated
Setter for the fielddateCreated.- Parameters:
dateCreated- the date and time when this record statistic entry was created
-
getDateUpdated
Getter for the fielddateUpdated.- Returns:
- the date and time when this record statistic entry was last updated
-
setDateUpdated
Setter for the fielddateUpdated.- Parameters:
dateUpdated- the date and time when this record statistic entry was last updated
-
getOwner
Getter for the fieldowner.- Returns:
- the campaign this record statistic belongs to
-
setOwner
Setter for the fieldowner.- Parameters:
owner- the campaign this record statistic belongs to
-
getPi
Getter for the fieldpi.- Returns:
- the persistent identifier of the record this statistic tracks
-
setPi
Setter for the fieldpi.- Parameters:
pi- the persistent identifier of the record this statistic tracks
-
getPageStatistics
-
setPageStatistics
-
getStatus
Getter for the fieldstatus.- Returns:
- the crowdsourcing processing status for this record within the campaign
-
setStatus
Setter for the fieldstatus.- Parameters:
status- the crowdsourcing processing status for this record within the campaign
-
getAnnotators
Getter for the fieldannotators.- Returns:
- the list of users who have contributed annotations for this record
-
setAnnotators
Setter for the fieldannotators.- Parameters:
annotators- the list of users who have contributed annotations for this record
-
getReviewers
Getter for the fieldreviewers.- Returns:
- the list of users who have reviewed annotations for this record
-
setReviewers
Setter for the fieldreviewers.- Parameters:
reviewers- the list of users who have reviewed annotations for this record
-
addAnnotater
addAnnotater.- Parameters:
user- aUserobject.
-
addReviewer
addReviewer.- Parameters:
user- aUserobject.
-
containsPageStatus
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 anyCampaignRecordPageStatistic.getStatus()ofpageStatisticsreturns true
-
getTotalPages
-
setTotalPages
-