|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.BasicItem<D>
org.proteios.core.OwnedItem<D>
org.proteios.core.SharedItem<D>
org.proteios.core.CommonItem<D>
org.proteios.core.AnnotatedItem<D>
org.proteios.core.BioMaterial<D>
public abstract class BioMaterial<D extends BioMaterialData>
This is the base class for for the four types of biomaterials:
BioSource, Sample, Extract
and LabeledExtract.
| Field Summary | |
|---|---|
static int |
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external id that can be stored in the database. |
static int |
MAX_STORAGE_LOCATION_LENGTH
The maximum length of the storage location info that can be stored in the database. |
| Fields inherited from interface org.proteios.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Method Summary | |
|---|---|
void |
addFile(File file)
Add a File |
String |
getExternalId()
Get the external id of the biomaterial. |
Set<File> |
getFiles()
|
String |
getStorageLocation()
Get the storage location of the biomaterial. |
void |
setExternalId(String externalId)
Set the external id of the biomaterial. |
void |
setFiles(Set<File> files)
Set the File files set. |
void |
setStorageLocation(String storageLocation)
Set the storage location of the biomaterial. |
| Methods inherited from class org.proteios.core.CommonItem |
|---|
getDescription, getName, isRemoved, setDescription, setName, setRemoved |
| Methods inherited from class org.proteios.core.SharedItem |
|---|
getItemKey, getProjectKey, isShared, setItemKey, setProjectKey |
| Methods inherited from class org.proteios.core.OwnedItem |
|---|
getOwner, setOwner |
| Methods inherited from class org.proteios.core.BasicItem |
|---|
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.Identifiable |
|---|
getId, getType, getVersion |
| Methods inherited from interface org.proteios.core.AccessControlled |
|---|
checkPermission, hasPermission |
| Methods inherited from interface org.proteios.core.Ownable |
|---|
getOwner, setOwner |
| Field Detail |
|---|
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String),
Constant Field Valuespublic static final int MAX_STORAGE_LOCATION_LENGTH
setStorageLocation(String),
Constant Field Values| Method Detail |
|---|
public String getExternalId()
public void setExternalId(String externalId)
throws PermissionDeniedException,
InvalidDataException
MAX_EXTERNAL_ID_LENGTH constant.
externalId - The new value for the external id
PermissionDeniedException - If the logged in user doesn't have
write permission
InvalidDataException - If the string is too longpublic void addFile(File file)
file - The File to add to the Set
public Set<File> getFiles()
throws ItemNotFoundException,
BaseException
ItemNotFoundException
BaseExceptionpublic void setFiles(Set<File> files)
File files set.
files - The new Set item.public String getStorageLocation()
public void setStorageLocation(String storageLocation)
throws PermissionDeniedException,
InvalidDataException
MAX_STORAGE_LOCATION_LENGTH constant.
storageLocation - The new value for the storage location.
PermissionDeniedException - If the logged in user doesn't have
write permission
InvalidDataException - If the string is too long
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||