Class CurationCommitRequest
java.lang.Object
ubic.gemma.persistence.service.expression.experiment.CurationCommitRequest
Resolved, section-scoped inputs for one all-or-none curation commit
(
ExpressionExperimentService.commitCuration(ExpressionExperiment, CurationCommitRequest, boolean)). Phase 1 covers the two dataset-level sections that
reuse existing ExpressionExperimentService writes cleanly — basics (name / description / short
name) and publications; design / tags / sample characteristics land in later phases.
Publication identifiers are resolved to persistent BibliographicReferences by the web layer
before the transaction opens, so the (possibly slow, network-bound) PubMed/CrossRef fetch does
not hold the commit transaction open. Each arrives as a PublicationAssertion — the reference plus
the basis given for attaching it — because the basis is what a restore has to put back along with the link.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA per-sample characteristic to create:clientRef, the resolved biomaterial id, and the tag.static classA tag to create, paired with the documentclientRefso the report can echo its new id. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()The paper to attach as primary, with the basis for attaching it.getRunId()The producing side's run identifier, if this commit is being applied by an agent run.The PROPOSAL annotation set this commit applies, if it applies one.Which build produced the run named bygetRunId().intWho committed, recorded on the snapshot row so the displaced state names the commit that displaced it.The dataset's current curation, serialized as theCurationDocumentthe commit itself accepts, to be stored as aSNAPSHOTAnnotationSet if this commit changes anything.intbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAdvanceLinkedTickets(boolean advanceLinkedTickets) voidsetBasicsPresent(boolean basicsPresent) voidsetCurationDetailsNote(String curationDetailsNote) voidsetCurationDetailsPresent(boolean curationDetailsPresent) voidsetDescription(String description) voidsetDesignPlan(DesignCommitPlan designPlan) voidsetDesignPresent(boolean designPresent) voidsetExpectedLastUpdated(Date expectedLastUpdated) voidvoidsetOtherRelevantPublications(List<PublicationAssertion> otherRelevantPublications) voidsetPrimaryPublication(PublicationAssertion primaryPublication) voidsetProposedDesign(ExperimentalDesignValueObject proposedDesign) voidsetPublicationsPresent(boolean publicationsPresent) voidvoidsetReasonCode(String reasonCode) voidvoidsetRunParentProposal(AnnotationSet runParentProposal) voidsetRunProvenance(AnnotationSetService.RunProvenance runProvenance) voidsetSampleCharsPresent(boolean sampleCharsPresent) voidsetSampleCharsToAdd(List<CurationCommitRequest.SampleCharacteristicAdd> sampleCharsToAdd) voidsetSampleCharsToDelete(List<Long> sampleCharsToDelete) voidsetSampleCharsUnchanged(int sampleCharsUnchanged) voidsetShortName(String shortName) voidsetShortNameChangeAllowed(boolean shortNameChangeAllowed) voidsetSnapshotCreatedBy(String snapshotCreatedBy) voidsetSnapshotPayloadJson(String snapshotPayloadJson) voidsetSplitOnFactorId(Long splitOnFactorId) voidsetSplitRationale(String splitRationale) voidsetTagsPresent(boolean tagsPresent) voidsetTagsToAdd(List<CurationCommitRequest.TagAdd> tagsToAdd) voidsetTagsToDelete(List<Long> tagsToDelete) voidsetTagsUnchanged(int tagsUnchanged)
-
Constructor Details
-
CurationCommitRequest
public CurationCommitRequest()
-
-
Method Details
-
isAdvanceLinkedTickets
public boolean isAdvanceLinkedTickets() -
setAdvanceLinkedTickets
public void setAdvanceLinkedTickets(boolean advanceLinkedTickets) -
getExpectedLastUpdated
-
setExpectedLastUpdated
-
isBasicsPresent
public boolean isBasicsPresent() -
setBasicsPresent
public void setBasicsPresent(boolean basicsPresent) -
getName
-
setName
-
getDescription
-
setDescription
-
getShortName
-
setShortName
-
isShortNameChangeAllowed
public boolean isShortNameChangeAllowed() -
setShortNameChangeAllowed
public void setShortNameChangeAllowed(boolean shortNameChangeAllowed) -
isPublicationsPresent
public boolean isPublicationsPresent() -
setPublicationsPresent
public void setPublicationsPresent(boolean publicationsPresent) -
getPrimaryPublication
The paper to attach as primary, with the basis for attaching it. The basis rides along rather than being flattened away here: a commit that names evidence has it recorded, and a snapshot replayed as a restore puts a re-attached paper back with the reason it was attached rather than as an unexplained claim. -
setPrimaryPublication
-
getOtherRelevantPublications
-
setOtherRelevantPublications
-
isDesignPresent
public boolean isDesignPresent() -
setDesignPresent
public void setDesignPresent(boolean designPresent) -
getProposedDesign
-
setProposedDesign
-
getDesignPlan
-
setDesignPlan
-
getSplitOnFactorId
-
setSplitOnFactorId
-
getSplitRationale
-
setSplitRationale
-
isTagsPresent
public boolean isTagsPresent() -
setTagsPresent
public void setTagsPresent(boolean tagsPresent) -
getTagsToAdd
-
setTagsToAdd
-
getReason
-
getReasonCode
-
setReasonCode
-
setReason
-
getTagsToDelete
-
setTagsToDelete
-
getTagsUnchanged
public int getTagsUnchanged() -
setTagsUnchanged
public void setTagsUnchanged(int tagsUnchanged) -
isSampleCharsPresent
public boolean isSampleCharsPresent() -
setSampleCharsPresent
public void setSampleCharsPresent(boolean sampleCharsPresent) -
getSampleCharsToAdd
-
setSampleCharsToAdd
public void setSampleCharsToAdd(List<CurationCommitRequest.SampleCharacteristicAdd> sampleCharsToAdd) -
getSampleCharsToDelete
-
setSampleCharsToDelete
-
getSampleCharsUnchanged
public int getSampleCharsUnchanged() -
setSampleCharsUnchanged
public void setSampleCharsUnchanged(int sampleCharsUnchanged) -
isCurationDetailsPresent
public boolean isCurationDetailsPresent() -
setCurationDetailsPresent
public void setCurationDetailsPresent(boolean curationDetailsPresent) -
getCurationDetailsNote
-
setCurationDetailsNote
-
getRunId
The producing side's run identifier, if this commit is being applied by an agent run.Null for a curator commit. When non-null the commit mints a
COMMITAnnotationSet in its own transaction, so the row exists only if the commit itself succeeded. -
setRunId
-
getRunProvenance
Which build produced the run named bygetRunId(). Null when no run was named. -
setRunProvenance
-
getRunParentProposal
The PROPOSAL annotation set this commit applies, if it applies one. Null for an unsolicited commit. -
setRunParentProposal
-
getSnapshotPayloadJson
The dataset's current curation, serialized as theCurationDocumentthe commit itself accepts, to be stored as aSNAPSHOTAnnotationSet if this commit changes anything.Read before the commit applies, so it records what the commit displaced. Null on a dry run, which writes nothing and therefore displaces nothing.
-
setSnapshotPayloadJson
-
getSnapshotCreatedBy
Who committed, recorded on the snapshot row so the displaced state names the commit that displaced it. -
setSnapshotCreatedBy
-