|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.services.util.file.FileLocatorUtils
public final class FileLocatorUtils
Looks up file locations
Constructor Summary | |
---|---|
FileLocatorUtils()
|
Method Summary | |
---|---|
static boolean |
deleteDirectory(java.lang.String directory)
|
static java.lang.String |
getAffyLibraryDirectory()
|
static java.lang.String |
getArrayDesignDataFileInputDirectory(java.lang.String fileTypeId)
This method is for release 1.3 to get the temporary directory to store the files to be parsed into ArrayDesign. |
static java.lang.String |
getArrayDesignFileDirectory()
Finds the final directory for placing the arrayDesign's uploaded files including MAGE-ML and GAL. |
static java.lang.String |
getArrayDesignFileInputDirectory(java.lang.Long arrayDesignId)
This method is for release 1.3.1. |
static java.lang.String |
getArrayDesignMAGEMLFileDirectory()
Finds the logical directory for the arrayDesign files, if not there it makes it. |
static java.lang.String |
getDesignElementsFileLocation(long arrayDesignId,
HybridizationFileType fileType)
Get the cache file for DesignElements based on the specified UploadFileType provided by the new hybridization parsing service. |
static java.lang.String |
getDesignElementsFileLocation(java.lang.Long arrayDesignId,
UploadFileTypes.MICROARRAY_FILE_TYPE type)
|
static java.lang.String |
getExperimentDataFilesDirectory()
|
static java.lang.String |
getExperimentDataFilesDirectory(java.lang.Long experimentId)
Finds the logical directory for the experimentData files, if not there it makes it. |
static java.lang.String |
getExperimentInputFileDirectory()
Input directory for Experiment MAGEML upload |
static java.lang.String |
getExperimentInputFileDirectory(long experimentId)
Finds the logical directory for the input files, if the directory doesn't exist, it is created. |
static java.lang.String |
getExperimentInputFileDirectory(java.lang.Long experimentId)
Finds the logical directory for the input files, if the directory doesn't exist, it is created. |
static java.lang.String |
getExperimentMAGEMLFileDirectory()
Finds the logical directory for the experimentMAGEML files, if the directory doesn't exists, creates it. |
static java.lang.String |
getExperimentMAGEMLFileDirectory(java.lang.Long experimentId)
Finds the logical directory for the generated experiment MAGEML files, if the directory doesn't exists, creates it. |
static java.lang.String |
getExperimentMAGEMLFileDirectory(java.lang.Long experimentId,
boolean createIfNotExists)
|
static java.lang.String |
getGalFileInputLocation(java.lang.String fileName)
|
static java.io.File |
getLatestModifiedFile(java.lang.String directory)
|
static java.io.File |
getLatestModifiedFile(java.lang.String directory,
java.lang.String extension)
Retrieves the latest created file in the specified directory. |
static java.lang.String |
getNETCDFFileLocation(java.lang.Long experimentId,
java.lang.Long bioAssayId)
Locates the file path name for the .nc (NETCDF) file that stores the the parsed quantification data or BioDataCube for the specified BioAssay contained in the specified Experiment. |
static java.lang.String |
getNETCDFFileLocation(java.lang.String directory,
java.lang.Long bioAssayId)
Locates the file path name for the .nc (NETCDF) file that stores the the parsed quantification data or BioDataCube for the specified BioAssay. |
static java.lang.String |
getNETCDFOutputFileDirectory(java.lang.Long experimentId)
|
static java.lang.String |
getQuantitationTypesFileLocation(java.lang.String softwareName)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileLocatorUtils()
Method Detail |
---|
public static java.lang.String getArrayDesignFileDirectory()
public static java.lang.String getArrayDesignMAGEMLFileDirectory()
public static java.lang.String getExperimentInputFileDirectory(java.lang.Long experimentId)
public static java.lang.String getExperimentInputFileDirectory(long experimentId)
public static java.lang.String getExperimentInputFileDirectory()
public static java.lang.String getNETCDFOutputFileDirectory(java.lang.Long experimentId)
public static java.lang.String getNETCDFFileLocation(java.lang.Long experimentId, java.lang.Long bioAssayId)
experimentId
- - The Experiment that contains the specified BioAssaybioAssayId
- - The BioAssay that references the returned NETCDF file
contained quantification data.public static java.lang.String getNETCDFFileLocation(java.lang.String directory, java.lang.Long bioAssayId)
directory
- - The directory at which the NETCDF file is located.bioAssayId
- - The BioAssay that references the returned NETCDF file
contained quantification data.
public static java.lang.String getDesignElementsFileLocation(java.lang.Long arrayDesignId, UploadFileTypes.MICROARRAY_FILE_TYPE type)
public static java.lang.String getDesignElementsFileLocation(long arrayDesignId, HybridizationFileType fileType)
arrayDesignId
- fileType
-
public static java.lang.String getQuantitationTypesFileLocation(java.lang.String softwareName)
public static java.lang.String getGalFileInputLocation(java.lang.String fileName)
public static java.lang.String getArrayDesignDataFileInputDirectory(java.lang.String fileTypeId)
fileTypeId
- - The fileTypeId representing this file type as configured
in the file mapping XML file.
public static java.lang.String getArrayDesignFileInputDirectory(java.lang.Long arrayDesignId)
arrayDesignId
- the array design id, which will be used to name
this subdirectory, under which the gal file is place
public static java.lang.String getExperimentMAGEMLFileDirectory()
public static java.lang.String getExperimentMAGEMLFileDirectory(java.lang.Long experimentId)
experimentId
- - The experiment for which the returned directory is
intended.
public static java.lang.String getExperimentMAGEMLFileDirectory(java.lang.Long experimentId, boolean createIfNotExists)
public static java.lang.String getExperimentDataFilesDirectory(java.lang.Long experimentId)
public static java.lang.String getAffyLibraryDirectory()
public static java.io.File getLatestModifiedFile(java.lang.String directory)
public static boolean deleteDirectory(java.lang.String directory)
public static java.io.File getLatestModifiedFile(java.lang.String directory, java.lang.String extension)
directory
- - The directory in which the latest created file is retrieved.extension
- - The file extension, either prefixed with dot or not, e.g. .zip, zip.
public static final void main(java.lang.String[] args)
public static java.lang.String getExperimentDataFilesDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |