Class MetadataTemplate
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.model.sample.MetadataTemplate
-
- All Implemented Interfaces:
IridaThing
,MutableIridaThing
,Timestamped<java.lang.Long>
@Entity public class MetadataTemplate extends java.lang.Object implements MutableIridaThing
Stores a collection ofMetadataTemplateField
s that will often used together
-
-
Constructor Summary
Constructors Constructor Description MetadataTemplate()
MetadataTemplate(java.lang.String name, java.util.List<MetadataTemplateField> fields)
MetadataTemplate(java.lang.String name, java.util.List<MetadataTemplateField> fields, Project project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getCreatedDate()
Get the created date of the objectjava.lang.String
getDescription()
java.lang.Long
getId()
Get the numerical identifier for this objectjava.lang.String
getLabel()
Get a human readable label for this object.java.util.Date
getModifiedDate()
Get the date that this object was last modifiedjava.lang.String
getName()
Project
getProject()
boolean
isProjectDefault()
void
setDescription(java.lang.String description)
void
setFields(java.util.List<MetadataTemplateField> fields)
void
setId(java.lang.Long id)
Set the numerical identifier for this objectvoid
setModifiedDate(java.util.Date modifiedDate)
Set the modification time of this objectvoid
setName(java.lang.String name)
void
setProject(Project project)
void
setProjectDefault(boolean projectDefault)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.model.IridaThing
getIdentifier, setLabel
-
-
-
-
Constructor Detail
-
MetadataTemplate
public MetadataTemplate()
-
MetadataTemplate
public MetadataTemplate(java.lang.String name, java.util.List<MetadataTemplateField> fields)
-
MetadataTemplate
public MetadataTemplate(java.lang.String name, java.util.List<MetadataTemplateField> fields, Project project)
-
-
Method Detail
-
setId
public void setId(java.lang.Long id)
Description copied from interface:MutableIridaThing
Set the numerical identifier for this object- Specified by:
setId
in interfaceMutableIridaThing
- Parameters:
id
- The ID to set
-
getId
public java.lang.Long getId()
Description copied from interface:IridaThing
Get the numerical identifier for this object- Specified by:
getId
in interfaceIridaThing
- Specified by:
getId
in interfaceTimestamped<java.lang.Long>
- Returns:
- the numerical identifier for the object
-
setFields
public void setFields(java.util.List<MetadataTemplateField> fields)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getCreatedDate
public java.util.Date getCreatedDate()
Description copied from interface:Timestamped
Get the created date of the object- Specified by:
getCreatedDate
in interfaceTimestamped<java.lang.Long>
- Returns:
- A
Date
object of the created date
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThing
Get a human readable label for this object.- Specified by:
getLabel
in interfaceIridaThing
- Returns:
- a human-readable label for the object.
-
getModifiedDate
public java.util.Date getModifiedDate()
Description copied from interface:MutableIridaThing
Get the date that this object was last modified- Specified by:
getModifiedDate
in interfaceMutableIridaThing
- Returns:
Date
object of the modified date
-
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
Description copied from interface:MutableIridaThing
Set the modification time of this object- Specified by:
setModifiedDate
in interfaceMutableIridaThing
- Parameters:
modifiedDate
- The date where this object was modified
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
setProject
public void setProject(Project project)
-
getProject
public Project getProject()
-
isProjectDefault
public boolean isProjectDefault()
-
setProjectDefault
public void setProjectDefault(boolean projectDefault)
-
-