-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
2,000 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/main/java/ca/gc/aafc/seqdb/api/dto/MetagenomicsBatchDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package ca.gc.aafc.seqdb.api.dto; | ||
|
||
import ca.gc.aafc.dina.dto.ExternalRelationDto; | ||
import ca.gc.aafc.dina.dto.RelatedEntity; | ||
import ca.gc.aafc.dina.repository.meta.JsonApiExternalRelation; | ||
import ca.gc.aafc.seqdb.api.entities.MetagenomicsBatch; | ||
|
||
import io.crnk.core.resource.annotations.JsonApiId; | ||
import io.crnk.core.resource.annotations.JsonApiRelation; | ||
import io.crnk.core.resource.annotations.JsonApiResource; | ||
import java.time.OffsetDateTime; | ||
import java.util.UUID; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Builder | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@JsonApiResource(type = MetagenomicsBatchDto.TYPENAME) | ||
@RelatedEntity(MetagenomicsBatch.class) | ||
public class MetagenomicsBatchDto { | ||
|
||
public static final String TYPENAME = "metagenomics-batch"; | ||
|
||
@JsonApiId | ||
private UUID uuid; | ||
|
||
private String createdBy; | ||
|
||
private OffsetDateTime createdOn; | ||
private String group; | ||
|
||
private String name; | ||
|
||
@JsonApiExternalRelation(type = "protocol") | ||
@JsonApiRelation | ||
private ExternalRelationDto protocol; | ||
|
||
@JsonApiRelation | ||
private IndexSetDto indexSet; | ||
|
||
} |
53 changes: 53 additions & 0 deletions
53
src/main/java/ca/gc/aafc/seqdb/api/dto/MetagenomicsBatchItemDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package ca.gc.aafc.seqdb.api.dto; | ||
|
||
import ca.gc.aafc.dina.dto.RelatedEntity; | ||
import ca.gc.aafc.seqdb.api.dto.pcr.PcrBatchItemDto; | ||
import ca.gc.aafc.seqdb.api.entities.MetagenomicsBatchItem; | ||
|
||
import io.crnk.core.resource.annotations.JsonApiId; | ||
import io.crnk.core.resource.annotations.JsonApiRelation; | ||
import io.crnk.core.resource.annotations.JsonApiResource; | ||
import java.time.OffsetDateTime; | ||
import java.util.UUID; | ||
|
||
import org.javers.core.metamodel.annotation.ShallowReference; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Builder | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@JsonApiResource(type = MetagenomicsBatchItemDto.TYPENAME) | ||
@RelatedEntity(MetagenomicsBatchItem.class) | ||
public class MetagenomicsBatchItemDto { | ||
|
||
public static final String TYPENAME = "metagenomics-batch-item"; | ||
|
||
@JsonApiId | ||
private UUID uuid; | ||
|
||
private String createdBy; | ||
|
||
private OffsetDateTime createdOn; | ||
|
||
@JsonApiRelation | ||
private MetagenomicsBatchDto metagenomicsBatch; | ||
|
||
@JsonApiRelation | ||
private PcrBatchItemDto pcrBatchItem; | ||
|
||
@ShallowReference | ||
@JsonApiRelation | ||
private MolecularAnalysisRunItemDto molecularAnalysisRunItem; | ||
|
||
@JsonApiRelation | ||
private NgsIndexDto indexI5; | ||
|
||
@JsonApiRelation | ||
private NgsIndexDto indexI7; | ||
|
||
} |
48 changes: 48 additions & 0 deletions
48
src/main/java/ca/gc/aafc/seqdb/api/dto/QualityControlDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package ca.gc.aafc.seqdb.api.dto; | ||
|
||
import io.crnk.core.resource.annotations.JsonApiId; | ||
import io.crnk.core.resource.annotations.JsonApiRelation; | ||
import io.crnk.core.resource.annotations.JsonApiResource; | ||
import java.time.OffsetDateTime; | ||
import java.util.UUID; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import org.javers.core.metamodel.annotation.Id; | ||
import org.javers.core.metamodel.annotation.PropertyName; | ||
import org.javers.core.metamodel.annotation.TypeName; | ||
|
||
import ca.gc.aafc.dina.dto.RelatedEntity; | ||
import ca.gc.aafc.seqdb.api.entities.QualityControl; | ||
|
||
@Builder | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@JsonApiResource(type = QualityControlDto.TYPENAME) | ||
@TypeName(QualityControlDto.TYPENAME) | ||
@RelatedEntity(QualityControl.class) | ||
public class QualityControlDto { | ||
|
||
public static final String TYPENAME = "quality-control"; | ||
|
||
@JsonApiId | ||
@Id | ||
@PropertyName("id") | ||
private UUID uuid; | ||
|
||
private String createdBy; | ||
private OffsetDateTime createdOn; | ||
|
||
private String group; | ||
|
||
private String name; | ||
|
||
private String qcType; | ||
|
||
@JsonApiRelation | ||
private MolecularAnalysisRunItemDto molecularAnalysisRunItem; | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/ca/gc/aafc/seqdb/api/dto/SequenceManagedAttributeDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package ca.gc.aafc.seqdb.api.dto; | ||
|
||
import ca.gc.aafc.dina.dto.RelatedEntity; | ||
import ca.gc.aafc.dina.i18n.MultilingualDescription; | ||
import ca.gc.aafc.dina.vocabulary.TypedVocabularyElement; | ||
import ca.gc.aafc.seqdb.api.entities.SequenceManagedAttribute; | ||
|
||
import io.crnk.core.resource.annotations.JsonApiId; | ||
import io.crnk.core.resource.annotations.JsonApiResource; | ||
import lombok.Data; | ||
|
||
import java.time.OffsetDateTime; | ||
import java.util.UUID; | ||
|
||
import org.javers.core.metamodel.annotation.Id; | ||
import org.javers.core.metamodel.annotation.PropertyName; | ||
import org.javers.core.metamodel.annotation.TypeName; | ||
|
||
@RelatedEntity(SequenceManagedAttribute.class) | ||
@Data | ||
@JsonApiResource(type = SequenceManagedAttributeDto.TYPENAME) | ||
@TypeName(SequenceManagedAttributeDto.TYPENAME) | ||
public class SequenceManagedAttributeDto { | ||
public static final String TYPENAME = "managed-attribute"; | ||
|
||
@JsonApiId | ||
@Id | ||
@PropertyName("id") | ||
private UUID uuid; | ||
private String name; | ||
private String key; | ||
private TypedVocabularyElement.VocabularyElementType vocabularyElementType; | ||
private String unit; | ||
private SequenceManagedAttribute.ManagedAttributeComponent managedAttributeComponent; | ||
private String[] acceptedValues; | ||
private OffsetDateTime createdOn; | ||
private String createdBy; | ||
private String group; | ||
private MultilingualDescription multilingualDescription; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.