Class ProjectMetadataResponse


  • public class ProjectMetadataResponse
    extends java.lang.Object
    Object grouping a project and all the metadata for samples within that project. The main reason for this class is so that spring security can analyze the metadata being requested in the context of the project it's requested from. This will ensure that a user is only given metadata they have permissions to read.
    See Also:
    ReadProjectMetadataResponsePermission
    • Constructor Detail

      • ProjectMetadataResponse

        public ProjectMetadataResponse​(Project project,
                                       java.util.Map<java.lang.Long,​java.util.Set<MetadataEntry>> metadata)
    • Method Detail

      • getMetadata

        public java.util.Map<java.lang.Long,​java.util.Set<MetadataEntry>> getMetadata()
      • getProject

        public Project getProject()