Package net.sf.basedb.core
Interface FileStoreEnabled
- All Superinterfaces:
AccessControlled
,Identifiable
- All Known Implementing Classes:
ArrayDesign
,BioAssaySet
,DerivedBioAssay
,ExtraValue
,RawBioAssay
This interface is implemented by items that can use files instead
of the database for storing data. For example, to store raw data
for a
RawBioAssay
and features for a ArrayDesign
.- Version:
- 2.5
- Author:
- Nicklas
- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (to, 11 sep 2008) $
-
Method Summary
Modifier and TypeMethodDescriptionGet the file set that collects all files that holds data for this item.Get the file sets of parent item(s) that are related to the current item.Get the platform the item is related to.Get the platform variant the item is related to.boolean
Check if this item has a file set.Methods inherited from interface net.sf.basedb.core.AccessControlled
checkPermission, getPermissions, hasPermission
Methods inherited from interface net.sf.basedb.core.Identifiable
getId, getType, getVersion
-
Method Details
-
getFileSet
FileSet getFileSet()Get the file set that collects all files that holds data for this item. If no file set exists a new one is created and automatically saved to the database whenDbControl.commit()
is called. To check if an item has files without creating a new file set use thehasFileSet()
method.- Returns:
- A file set
-
hasFileSet
boolean hasFileSet()Check if this item has a file set. Always call this method beforegetFileSet()
to avoid creating a new file set when there is no need for it.- Returns:
- TRUE if a file set exists, FALSE if not
-
getPlatform
Platform getPlatform()Get the platform the item is related to. The platform is used to limit theDataFileType
:s that can be added to the file set.- Returns:
- A platform or null if the items is not related to any platform.
-
getVariant
PlatformVariant getVariant()Get the platform variant the item is related to. The platform is used to limit theDataFileType
:s that can be added to the file set.- Returns:
- A platform or null if the items is not related to any variant.
-
getParentFileSets
Collection<FileSet> getParentFileSets()Get the file sets of parent item(s) that are related to the current item. If the item has no parent(s) or if the parent has no file set, null or an empty collection is returned.- Returns:
- A collection of
FileSet
or null
-