public Cohort(String id, Study.Type type, String creationDate, String description, List<Sample> samples, int release, Map<String, Object> attributes) { this(id, type, creationDate, new CohortStatus(), description, samples, null, Collections.emptyList(), Collections.emptyMap(), release, attributes); }
public Cohort(String id, Study.Type type, String creationDate, String description, List<Sample> samples, List<AnnotationSet> annotationSetList, int release, Map<String, Object> attributes) { this(id, type, creationDate, new CohortStatus(), description, samples, null, annotationSetList, Collections.emptyMap(), release, attributes); }
Arrays.asList(new Sample().setId("1"), new Sample().setId("2")), 2, null) .setAttributes(new HashMap<>()); cohort.setUid(200).setStatus(new Cohort.CohortStatus("CALCULATING")).setAnnotationSets(AnnotationHelper.createAnnotation()); CohortSolrModel cohortSolrModel = new CatalogCohortToSolrCohortConverter(study).convertToStorageType(cohort);