Class ProjectMetadataResponse
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.sample.metadata.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 Summary
Constructors Constructor Description ProjectMetadataResponse(Project project, java.util.Map<java.lang.Long,java.util.Set<MetadataEntry>> metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Long,java.util.Set<MetadataEntry>>
getMetadata()
Project
getProject()
-
-
-
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()
-
-