Class CurationDetailsValueObject
- All Implemented Interfaces:
Serializable, Identifiable
CurationDetails over the REST API.
The curationNote and lastNoteUpdateEvent fields are admin-only and remain null for
non-administrators.
curationPending is not read from CurationDetails at all — it comes from the curation lock and
is supplied by the caller, so it is null unless the reading path had the lock in hand.
- See Also:
-
Field Summary
Fields inherited from class IdentifiableValueObject
id -
Constructor Summary
ConstructorsConstructorDescriptionCurationDetailsValueObject(CurationDetails curationDetails) CurationDetailsValueObject(CurationDetails curationDetails, Boolean curationPending) AsCurationDetailsValueObject(CurationDetails), plus the curation-lock state the caller already holds. -
Method Summary
Modifier and TypeMethodDescriptionWhether curation of the dataset is under way right now.booleanbooleanvoidsetCurationNote(String curationNote) voidsetCurationPending(Boolean curationPending) Whether curation of the dataset is under way right now.voidsetLastNeedsAttentionEvent(AuditEventValueObject lastNeedsAttentionEvent) voidsetLastNoteUpdateEvent(AuditEventValueObject lastNoteUpdateEvent) voidsetLastTroubledEvent(AuditEventValueObject lastTroubledEvent) voidsetLastUpdated(Date lastUpdated) voidsetNeedsAttention(boolean needsAttention) voidsetTroubled(boolean troubled)
-
Constructor Details
-
CurationDetailsValueObject
public CurationDetailsValueObject() -
CurationDetailsValueObject
-
CurationDetailsValueObject
public CurationDetailsValueObject(CurationDetails curationDetails, @Nullable Boolean curationPending) AsCurationDetailsValueObject(CurationDetails), plus the curation-lock state the caller already holds.- Parameters:
curationPending- whether an unexpired curation lock exists on the dataset, ornullwhen the caller did not look. Kept only for administrators.
-
-
Method Details
-
getLastUpdated
-
isTroubled
public boolean isTroubled() -
getLastTroubledEvent
-
isNeedsAttention
public boolean isNeedsAttention() -
getLastNeedsAttentionEvent
-
getCurationNote
-
getLastNoteUpdateEvent
-
getCurationPending
Whether curation of the dataset is under way right now.Administrators only, like
curationNotebeside it. Derived from the curation lock: true exactly while an unexpired claim exists. It names nobody, and it lapses with the lease rather than waiting on a sign-off, so a curator who only relabels does not leave it stuck on. -
setLastUpdated
-
setTroubled
public void setTroubled(boolean troubled) -
setLastTroubledEvent
-
setNeedsAttention
public void setNeedsAttention(boolean needsAttention) -
setLastNeedsAttentionEvent
-
setCurationNote
-
setLastNoteUpdateEvent
-
setCurationPending
Whether curation of the dataset is under way right now.Administrators only, like
curationNotebeside it. Derived from the curation lock: true exactly while an unexpired claim exists. It names nobody, and it lapses with the lease rather than waiting on a sign-off, so a curator who only relabels does not leave it stuck on.
-