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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotater
(User user) addAnnotater.void
addReviewer
(User user) addReviewer.boolean
Check both record status and all page status to check if any matches the given statusboolean
Getter 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
.int
hashCode()
void
setAnnotators
(List<User> annotators) Setter for the fieldannotators
.void
setDateCreated
(LocalDateTime dateCreated) Setter for the fielddateCreated
.void
setDateUpdated
(LocalDateTime dateUpdated) Setter for the fielddateUpdated
.void
Setter for the fieldid
.void
Setter for the fieldowner
.void
setPageStatistics
(Map<String, CampaignRecordPageStatistic> pageStatistics) void
Setter for the fieldpi
.void
setReviewers
(List<User> reviewers) Setter for the fieldreviewers
.void
setStatus
(CrowdsourcingStatus status) Setter for the fieldstatus
.void
setTotalPages
(Integer totalPages)
-
Constructor Details
-
CampaignRecordStatistic
public CampaignRecordStatistic()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getId
Getter for the field
id
.- Returns:
- the id
-
setId
Setter for the field
id
.- Parameters:
id
- the id to set
-
getDateCreated
Getter for the field
dateCreated
.- Returns:
- the dateCreated
-
setDateCreated
Setter for the field
dateCreated
.- Parameters:
dateCreated
- the dateCreated to set
-
getDateUpdated
Getter for the field
dateUpdated
.- Returns:
- the dateUpdated
-
setDateUpdated
Setter for the field
dateUpdated
.- Parameters:
dateUpdated
- the dateUpdated to set
-
getOwner
Getter for the field
owner
.- Returns:
- the owner
-
setOwner
Setter for the field
owner
.- Parameters:
owner
- the owner to set
-
getPi
Getter for the field
pi
.- Returns:
- the pi
-
setPi
Setter for the field
pi
.- Parameters:
pi
- the pi to set
-
getPageStatistics
- Returns:
- the pageStatistics
-
setPageStatistics
- Parameters:
pageStatistics
- the pageStatistics to set
-
getStatus
Getter for the field
status
.- Returns:
- the status
-
setStatus
Setter for the field
status
.- Parameters:
status
- the status to set
-
getAnnotators
Getter for the field
annotators
.- Returns:
- the annotators
-
setAnnotators
Setter for the field
annotators
.- Parameters:
annotators
- the annotators to set
-
getReviewers
Getter for the field
reviewers
.- Returns:
- the reviewers
-
setReviewers
Setter for the field
reviewers
.- Parameters:
reviewers
- the reviewers to set
-
addAnnotater
addAnnotater.
- Parameters:
user
- aUser
object.
-
addReviewer
addReviewer.
- Parameters:
user
- aUser
object.
-
containsPageStatus
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 anyCampaignRecordPageStatistic.getStatus()
ofpageStatistics
returns true
-
getTotalPages
- Returns:
- the totalPages
-
setTotalPages
- Parameters:
totalPages
- the totalPages to set
-