Class CurationDetails
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.common.auditAndSecurity.curation.CurationDetails
-
- All Implemented Interfaces:
Identifiable
public class CurationDetails extends AbstractIdentifiable
Class encapsulating all the curation information for Curatable objects. This includes a flag to indicate whether the entity is "troubled". For ExpressionExperiments as of 2019, this troubled flag will reflect whether an associated ArrayDesign is troubled.- Author:
- tesarst
-
-
Constructor Summary
Constructors Constructor Description CurationDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Compares the objects type and IDs.String
getCurationNote()
AuditEvent
getLastNeedsAttentionEvent()
AuditEvent
getLastNoteUpdateEvent()
AuditEvent
getLastTroubledEvent()
Date
getLastUpdated()
boolean
getNeedsAttention()
boolean
getTroubled()
If you are trying to check for trouble of an expression experiment, you might consider using the methodExpressionExperimentService.isTroubled(ubic.gemma.model.expression.experiment.ExpressionExperiment)
which also checks the parenting array designsint
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.void
setCurationNote(String curationNote)
void
setLastNeedsAttentionEvent(AuditEvent lastNeedsAttentionEvent)
void
setLastNoteUpdateEvent(AuditEvent lastNoteUpdateEvent)
void
setLastTroubledEvent(AuditEvent lastTroubledEvent)
void
setLastUpdated(Date lastUpdated)
void
setNeedsAttention(boolean needsAttention)
void
setTroubled(boolean troubled)
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId, toString
-
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Compares the objects type and IDs.- Specified by:
equals
in classAbstractIdentifiable
- Parameters:
object
- the object to compare this instance to.- Returns:
- true, if this instance and the given object are the same type and have the same ID. False otherwise.
-
hashCode
public int hashCode()
Description copied from class:AbstractIdentifiable
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCode
in classAbstractIdentifiable
-
getLastNeedsAttentionEvent
@Nullable public AuditEvent getLastNeedsAttentionEvent()
-
setLastNeedsAttentionEvent
public void setLastNeedsAttentionEvent(@Nullable AuditEvent lastNeedsAttentionEvent)
-
getNeedsAttention
public boolean getNeedsAttention()
-
setNeedsAttention
public void setNeedsAttention(boolean needsAttention)
-
getLastTroubledEvent
@Nullable public AuditEvent getLastTroubledEvent()
-
setLastTroubledEvent
public void setLastTroubledEvent(@Nullable AuditEvent lastTroubledEvent)
-
getTroubled
public boolean getTroubled()
If you are trying to check for trouble of an expression experiment, you might consider using the methodExpressionExperimentService.isTroubled(ubic.gemma.model.expression.experiment.ExpressionExperiment)
which also checks the parenting array designs- Returns:
- true only if these curation details trouble flag is set to true.
-
setTroubled
public void setTroubled(boolean troubled)
-
getLastNoteUpdateEvent
@Nullable public AuditEvent getLastNoteUpdateEvent()
-
setLastNoteUpdateEvent
public void setLastNoteUpdateEvent(@Nullable AuditEvent lastNoteUpdateEvent)
-
-