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 ofMetadataTemplateFields 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.DategetCreatedDate()Get the created date of the objectjava.lang.StringgetDescription()java.lang.LonggetId()Get the numerical identifier for this objectjava.lang.StringgetLabel()Get a human readable label for this object.java.util.DategetModifiedDate()Get the date that this object was last modifiedjava.lang.StringgetName()ProjectgetProject()booleanisProjectDefault()voidsetDescription(java.lang.String description)voidsetFields(java.util.List<MetadataTemplateField> fields)voidsetId(java.lang.Long id)Set the numerical identifier for this objectvoidsetModifiedDate(java.util.Date modifiedDate)Set the modification time of this objectvoidsetName(java.lang.String name)voidsetProject(Project project)voidsetProjectDefault(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:MutableIridaThingSet the numerical identifier for this object- Specified by:
setIdin interfaceMutableIridaThing- Parameters:
id- The ID to set
-
getId
public java.lang.Long getId()
Description copied from interface:IridaThingGet the numerical identifier for this object- Specified by:
getIdin interfaceIridaThing- Specified by:
getIdin 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:TimestampedGet the created date of the object- Specified by:
getCreatedDatein interfaceTimestamped<java.lang.Long>- Returns:
- A
Dateobject of the created date
-
getLabel
public java.lang.String getLabel()
Description copied from interface:IridaThingGet a human readable label for this object.- Specified by:
getLabelin interfaceIridaThing- Returns:
- a human-readable label for the object.
-
getModifiedDate
public java.util.Date getModifiedDate()
Description copied from interface:MutableIridaThingGet the date that this object was last modified- Specified by:
getModifiedDatein interfaceMutableIridaThing- Returns:
Dateobject of the modified date
-
setModifiedDate
public void setModifiedDate(java.util.Date modifiedDate)
Description copied from interface:MutableIridaThingSet the modification time of this object- Specified by:
setModifiedDatein 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)
-
-