Class MetadataEntryRepositoryImpl

    • Constructor Detail

      • MetadataEntryRepositoryImpl

        @Autowired
        public MetadataEntryRepositoryImpl​(javax.sql.DataSource dataSource,
                                           javax.persistence.EntityManager entityManager)
    • Method Detail

      • getMetadataForProjectSamples

        public java.util.Map<java.lang.Long,​java.util.Set<MetadataEntry>> getMetadataForProjectSamples​(Project project,
                                                                                                             java.util.List<java.lang.Long> sampleIds,
                                                                                                             java.util.List<MetadataTemplateField> requestedFields)
        Get all the MetadataEntry for a set of samples in a given project. This will return a Map of the Sample IDs associated with a Set of MetadataEntry
        Specified by:
        getMetadataForProjectSamples in interface MetadataEntryRepositoryCustom
        Parameters:
        project - the Project to get metadata for
        sampleIds - the Sample ids to get metadata for
        requestedFields - the fields to get metadata from in the project. This must not be empty.
        Returns:
        The Map of the Project's metadata