|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.edu.archer.service.ddm.impl.DDMServiceImpl
@Transactional(rollbackFor=BusinessException.class) public class DDMServiceImpl
Implements DDMService.
| Constructor Summary | |
|---|---|
DDMServiceImpl()
|
|
| Method Summary | |
|---|---|
au.edu.archer.domain.icat.api.DataFile |
addDatafileToDataset(byte[] content,
java.lang.String srbLocation,
int datasetId)
Insert the extracted meta data. |
au.edu.archer.domain.icat.api.DataFile |
addDatafileToDataset(SRBUploadRequest srbUploadRequest,
java.lang.String srbLocation,
int datasetId)
Add a Datafile to a Dataset. |
DatasetDetails |
addDatasetToAnExpr(DatasetRequest request)
Add dataset to an experiment. |
au.edu.archer.domain.icat.api.DataFile |
addGenericFileToDataset(SRBUploadRequest srbUploadRequest,
java.lang.String srbLocation,
int datasetId)
Add a Generic File to a Dataset. |
void |
addGroupPermissions(SRBGroupPermissionRequest request)
Modify group permissions. |
ProjectDetails |
addProject(ProjectRequest createProjectRequest)
Create Project. |
au.edu.archer.domain.icat.api.DataFile |
copyDatafile(DatafileRequest request)
Copy Datafile to another Dataset. |
DatasetDetails |
copyDataset(DatasetRequest request)
Copy Dataset to another experiment. |
ExperimentDetails |
createExperiment(ExperimentRequest request)
Create Experiment. |
SampleDetails |
createSample(SampleRequest request)
Create sample. |
void |
deleteDataFile(DatafileRequest request)
Delete DataFile by using relative path of the DataFile. |
void |
deleteDataset(DatasetRequest request)
Delete dataset. |
void |
deleteExperiment(ExperimentRequest request)
Delete Experiment. |
void |
deleteProject(ProjectRequest deleteProjectRequest)
Delete project. |
void |
deleteSample(SampleRequest request)
Delete sample. |
SRBDownloadResponse |
downloadSingleDataFile(SRBDownloadRequest request)
Download a datafile from SRB. |
java.util.Map<java.lang.String,java.lang.String> |
getAllDataFileFormat()
Get all existing DataFileformats. |
java.util.List<au.edu.archer.domain.icat.api.DataFile> |
getAllDataFiles(int datasetId)
Get all associated datafiles for a specific dataset. |
java.util.Map<java.lang.String,java.lang.String> |
getAllDatasetFiles(int datasetId)
Get all associated datafiles for a dataset. |
java.util.List<au.edu.archer.domain.icat.api.DataSet> |
getAllDatasetsByExpr(int experimentId)
Get all associasted datasets. |
java.util.List<au.edu.archer.domain.icat.api.DataSet> |
getAllDatasetsBySampleId(int sampleId)
Get all datasets by a sample. |
java.util.Map<java.lang.String,java.lang.String> |
getAllDatasetStatus()
Get all available Dataset status. |
java.util.Map<java.lang.String,java.lang.String> |
getAllDatasetTypes()
Get all available Dataset Types. |
java.util.List<au.edu.archer.domain.icat.api.Investigation> |
getAllExperimentsUnderProject(int projectId)
Get All Experiments under this Project. |
java.util.List<au.edu.archer.domain.icat.api.InvestigationType> |
getAllExperimentTypes()
Get all available experiment types. |
java.util.Map<java.lang.String,java.lang.String> |
getAllInvestigators()
Get all Investigators. |
java.util.Map<java.lang.String,java.lang.String> |
getAllManagers()
Get all available project managers. |
java.util.Map<java.lang.String,java.lang.String> |
getAllNonPackageDatasetType()
Get all non-package Dataset Types. |
java.util.List<au.edu.archer.domain.icat.api.DataSet> |
getAllNonPackagedDatasetByExpId(int experimentId)
Get all non-packaged datasets. |
java.util.List<au.edu.archer.domain.icat.api.DataSet> |
getAllPackagedDatasetsByExpId(int experimentId)
Get all associasted datasets. |
java.util.Map<java.lang.String,java.lang.String> |
getAllProjectNames()
Get all project names. |
java.util.Map<java.lang.String,java.lang.String> |
getAllProjectStatus()
Retrieve a map of all available project status. |
java.util.Map<java.lang.String,java.lang.String> |
getAllSamplesByExpId(SampleRequest request)
Get all samples that are attached to the given experiment id. |
java.util.Map<java.lang.String,java.lang.String> |
getAllSamplesByExpName(SampleRequest request)
Get all samples that are attached to the given experiment id. |
java.util.Map<java.lang.String,java.lang.String> |
getAllSRBGroups(SRBRequest request)
Retrieve all SRB groups. |
java.util.Map<java.lang.String,java.lang.String> |
getAllTopicNames()
Get all Topic. |
au.edu.archer.domain.icat.api.DataFile |
getDataFile(int dfId)
Get DataFile by its id. |
au.edu.archer.domain.icat.api.DataFile |
getDataFile(java.lang.String path)
Get DataFile id by using relative path of the DataFile. |
au.edu.archer.domain.icat.api.DataFile |
getDataFile(java.lang.String projectName,
java.lang.String experimentName,
java.lang.String datasetName,
java.lang.String datafileName)
Get DataFile id by using project name, exepriment name, dataset name and datafile name. |
java.util.Map<java.lang.String,java.lang.String> |
getDatafileParametersById(DatafileRequest request)
Retrieve datafile parameters. |
java.util.Map<java.lang.String,DatafileSliceResponse> |
getDatafileSliceByDatasetId(int datasetId)
Get Datafile Slice by a Dataset Id. |
DatasetDetails |
getDatasetDetailsById(int datasetId,
java.lang.String srbSessionId)
Get dataset details by dataset Id. |
DatasetDetails |
getDatasetDetailsByName(java.lang.String projectName,
java.lang.String exprName,
java.lang.String datasetName,
java.lang.String srbSessionId)
Get dataset details by names. |
int |
getDatasetIdByHandle(java.lang.String handleId)
Get dataset id by dataset handle id. |
java.util.Map<java.lang.String,java.lang.String> |
getDatasetNamesByExperimentId(int experimentId)
getDatasetNamesByExperimentId. |
java.util.Map<java.lang.String,java.lang.String> |
getDatasetParametersById(DatasetRequest request)
Retrieve Dataset parameters by Dataset Id. |
ExperimentDetails |
getExperimentById(int expId,
java.lang.String srbSessionId)
Get Experiment. |
ExperimentDetails |
getExperimentByName(ExperimentRequest request)
Get Experiment. |
java.util.Map<java.lang.String,java.lang.String> |
getExperimentNamesByProjectId(int projectId)
Get all experiment names of a given project. |
java.util.Map<java.lang.String,java.lang.String> |
getLock()
Get the lock. |
java.lang.String |
getManagerDisplayById(int mgrId)
Get manager display name form the Id. |
ProjectDetails |
getProjectDetailsById(int projectId,
java.lang.String srbSessionId)
Get project details. |
ProjectDetails |
getProjectDetailsByName(java.lang.String projectName,
java.lang.String srbSessionId)
Get project details. |
java.util.Map<java.lang.String,java.lang.String> |
getProjectGroups(SRBContentRequest request,
java.lang.String contentType)
Retrieve parent project groups. |
SampleDetails |
getSampleById(SampleRequest request)
Get sample by sample id. |
java.util.Map<java.lang.String,java.lang.String> |
getSampleParametersById(SampleRequest request)
Retrieve sample parameters. |
java.util.List<SRBContentInfo> |
getScratchDatasetDirs(SRBContentRequest request)
Fetch all scratch area dataset directories content from SRB from the specified collection. |
java.util.List<SRBContentInfo> |
getSRBAll(SRBContentRequest request)
Fetch all file content from SRB from the specified collection. |
java.util.List<SRBContentInfo> |
getSRBDirs(SRBContentRequest request)
Fetch all directory content from SRB from the specified collection. |
java.util.List<SRBContentInfo> |
getStagingAreaContent(SRBContentRequest request)
Get staging area contents. |
boolean |
isAuthorised(SRBContentRequest request,
int operation)
Check if user is authorised to perform a SRB operation. |
java.util.List<au.edu.archer.domain.icat.api.Investigator> |
listAllInvestigatorsByExperimentId(int expid)
List all investigators by experiment id. |
java.util.List<au.edu.archer.domain.icat.api.TopicList> |
listAllTopicListsByExperimentId(int expid)
List all TopicLists by ExperimentId. |
java.util.List<au.edu.archer.domain.icat.api.Topic> |
listAllTopics()
List of all Topics. |
au.edu.archer.domain.icat.api.DataFile |
moveDatafile(DatafileRequest request)
Move Datafile to another dataset. |
DatasetDetails |
moveDataset(DatasetRequest request)
Move Dataset to another experiment. |
java.lang.String |
performDDMAuthentication(SRBLoginRequest request)
Authorise request to perform srb related operations. |
au.edu.archer.domain.icat.impl.DataFileImpl |
resetDatafileParameters(DatafileRequest request)
reset datafile parameters by re-extracting from the original file stored on SRB. |
au.edu.archer.domain.icat.api.DataFile |
retrieveMetadata(java.lang.String srbLocation)
Retrieve Metadata information based on srbLocation. |
SearchResponse |
search(SearchRequest request)
Search method. |
void |
setIcatService(ICATService icatService)
Set icatService. |
void |
setLock(java.util.Map<java.lang.String,java.lang.String> lock)
set the lock. |
void |
setMailService(MailService mailService)
setMailService. |
void |
setMetadataExtractorService(MetadataExtractorService metadataExtractorService)
Set MetadataExtractorService. |
void |
setSearchService(SearchService searchService)
Set search service. |
void |
setSrbService(SRBService srbService)
Set SRBService. |
java.lang.Thread |
startMETSThread(CreateMETSRequest request)
startMETSThread. |
java.lang.Thread |
startPublishThread(PublishExperimentRequest request)
startMETSThread. |
java.lang.Thread |
startTransferThread(java.lang.String srbSessionId,
java.lang.String stagingDir,
java.lang.Integer datasetId,
boolean stagTransfer,
java.lang.String notificationRecv)
Transfer all files in the staging area. |
StagingContentTransferResponse |
transferFromStagingArea(StagingContentTransferRequest request)
Transfer the datafiles in the staging area into a specified Dataset (TODO). |
au.edu.archer.domain.icat.api.DataFile |
updateDatafile(DatafileRequest request)
Update Datafile without changing DatafileParameters. |
void |
updateDatafileParameters(DatafileRequest request)
Add datafile parameters. |
DatasetDetails |
updateDataset(DatasetRequest request)
Update dataset. |
void |
updateDatasetParameters(DatasetRequest request)
Update Dataset parameters. |
ExperimentDetails |
updateExperiment(ExperimentRequest request)
Update Experiment. |
ProjectDetails |
updateProject(ProjectRequest updateProjectRequest)
Update project. |
SampleDetails |
updateSample(SampleRequest request)
Update sample. |
void |
updateSampleParameters(SampleRequest request)
Add sample parameters. |
au.edu.archer.domain.icat.api.DataFile |
uploadSingleDatafile(SRBUploadRequest srbUploadRequest)
Upload single datafile to a dataset. |
au.edu.archer.domain.icat.api.DataFile |
uploadSingleGenericFile(SRBUploadRequest srbUploadRequest)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DDMServiceImpl()
| Method Detail |
|---|
public java.lang.String performDDMAuthentication(SRBLoginRequest request)
throws InvalidDDMRequestException
This authorisation will return a SRB session id which shall be refrenced for further SRB related operations.
performDDMAuthentication in interface DDMServicerequest - SRBLoginRequest object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public boolean isAuthorised(SRBContentRequest request,
int operation)
throws InvalidSRBRequestException
isAuthorised in interface DDMServicerequest - SRBContentRequest.operation - operation code.
InvalidSRBRequestException - if the request parameters are invalid.
public java.util.Map<java.lang.String,java.lang.String> getAllSRBGroups(SRBRequest request)
throws InvalidSRBRequestException
getAllSRBGroups in interface DDMServicerequest - SRBRequest object.
InvalidSRBRequestException - if the request parameters are invalid.
public java.util.Map<java.lang.String,java.lang.String> getProjectGroups(SRBContentRequest request,
java.lang.String contentType)
throws InvalidSRBRequestException
getProjectGroups in interface DDMServicerequest - SRBContentRequest.contentType - content type.
InvalidSRBRequestException - if the request parameters are invalid.
public void addGroupPermissions(SRBGroupPermissionRequest request)
throws InvalidSRBRequestException
addGroupPermissions in interface DDMServicerequest - SRBGroupPermissionRequest.
InvalidSRBRequestException - if the request parameters are invalid.
public java.util.List<SRBContentInfo> getScratchDatasetDirs(SRBContentRequest request)
throws InvalidDDMRequestException
getScratchDatasetDirs in interface DDMServicerequest - SRBContentRequest.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public java.util.List<SRBContentInfo> getSRBDirs(SRBContentRequest request)
throws InvalidDDMRequestException
getSRBDirs in interface DDMServicerequest - SRBContentRequest.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public java.util.List<SRBContentInfo> getSRBAll(SRBContentRequest request)
throws InvalidDDMRequestException
getSRBAll in interface DDMServicerequest - SRBContentRequest.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public java.util.List<SRBContentInfo> getStagingAreaContent(SRBContentRequest request)
throws InvalidDDMRequestException
getStagingAreaContent in interface DDMServicerequest - SRBContentRequest.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.public StagingContentTransferResponse transferFromStagingArea(StagingContentTransferRequest request)
request - The StagingContentTransferRequest request.
public java.util.Map<java.lang.String,java.lang.String> getAllManagers()
throws DDMServiceException
Map contains the manager id as key and 'Title + Initials + LastName' as value.
getAllManagers in interface DDMServiceDDMServiceException - Exception raised by DDM service when an error occurs.
public java.lang.String getManagerDisplayById(int mgrId)
throws InvalidDDMRequestException,
DDMServiceException
getManagerDisplayById in interface DDMServicemgrId - manager id.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - Exception raised by DDM service when an error occurs.
public java.util.Map<java.lang.String,java.lang.String> getAllProjectStatus()
throws DDMServiceException
getAllProjectStatus in interface DDMServiceDDMServiceException - Exception raised by DDM service when an error occurs.
public ProjectDetails getProjectDetailsByName(java.lang.String projectName,
java.lang.String srbSessionId)
throws DDMServiceException,
InvalidDDMRequestException
The project detail contains the ICAT meta data and the corresponding SRB directory info.
getProjectDetailsByName in interface DDMServiceprojectName - project name.srbSessionId - srb sessionId.
DDMServiceException - Exception raised by DDM service when an error occurs.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public ProjectDetails getProjectDetailsById(int projectId,
java.lang.String srbSessionId)
throws DDMServiceException,
InvalidDDMRequestException
The project detail contains the ICAT meta data and the corresponding SRB directory info.
getProjectDetailsById in interface DDMServiceprojectId - project id.srbSessionId - srb sessionId.
DDMServiceException - Exception raised by DDM service when an error occurs.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public ProjectDetails addProject(ProjectRequest createProjectRequest)
throws InvalidDDMRequestException,
DDMServiceException
Creates an empty project directory in SRB and the project metadata in ICAT.
addProject in interface DDMServicecreateProjectRequest - request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - Exception raised by DDM service when an error occurs.
public ProjectDetails updateProject(ProjectRequest updateProjectRequest)
throws InvalidDDMRequestException,
DDMServiceException
Update the project ICAT meta-data and SRB project directory name if required.
updateProject in interface DDMServiceupdateProjectRequest - request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - Exception raised by DDM service when an error occurs.
public void deleteProject(ProjectRequest deleteProjectRequest)
throws InvalidDDMRequestException,
DDMServiceException
Delete the project directory from SRB and the project meta data from ICAT.
deleteProject in interface DDMServicedeleteProjectRequest - request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - Exception raised by DDM service when an error occurs.public int getDatasetIdByHandle(java.lang.String handleId)
getDatasetIdByHandle in interface DDMServicehandleId - dataset handle id.
public java.util.Map<java.lang.String,java.lang.String> getAllDatasetTypes()
throws InvalidDDMRequestException
getAllDatasetTypes in interface DDMServiceInvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public java.util.Map<java.lang.String,java.lang.String> getAllNonPackageDatasetType()
throws InvalidDDMRequestException
getAllNonPackageDatasetType in interface DDMServiceInvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public java.util.Map<java.lang.String,java.lang.String> getAllDatasetStatus()
throws InvalidDDMRequestException
getAllDatasetStatus in interface DDMServiceInvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public DatasetDetails getDatasetDetailsById(int datasetId,
java.lang.String srbSessionId)
throws DDMServiceException,
InvalidDDMRequestException
Retrieves dataset metadata from ICAT and the dataset SRB directory info.
getDatasetDetailsById in interface DDMServicedatasetId - dataset id.srbSessionId - srb session id.
DDMServiceException - raised by DDM service when failure reached in processing.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public DatasetDetails getDatasetDetailsByName(java.lang.String projectName,
java.lang.String exprName,
java.lang.String datasetName,
java.lang.String srbSessionId)
throws DDMServiceException,
InvalidDDMRequestException
Retrieves dataset metadata from ICAT and the dataset SRB directory info.
getDatasetDetailsByName in interface DDMServiceprojectName - proj name.exprName - expr name.datasetName - dataste name.srbSessionId - srb session id.
DDMServiceException - raised by DDM service when failure reached in processing.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.public java.util.List<au.edu.archer.domain.icat.api.DataSet> getAllDatasetsByExpr(int experimentId)
getAllDatasetsByExpr in interface DDMServiceexperimentId - id.
public java.util.List<au.edu.archer.domain.icat.api.DataSet> getAllDatasetsBySampleId(int sampleId)
getAllDatasetsBySampleId in interface DDMServicesampleId - id.
public java.util.List<au.edu.archer.domain.icat.api.DataSet> getAllPackagedDatasetsByExpId(int experimentId)
throws DDMServiceException
getAllPackagedDatasetsByExpId in interface DDMServiceexperimentId - id.
DDMServiceException
public java.util.List<au.edu.archer.domain.icat.api.DataSet> getAllNonPackagedDatasetByExpId(int experimentId)
throws DDMServiceException
DDMService
getAllNonPackagedDatasetByExpId in interface DDMServiceexperimentId - id.
DDMServiceExceptionpublic java.util.Map<java.lang.String,java.lang.String> getAllDatasetFiles(int datasetId)
getAllDatasetFiles in interface DDMServicedatasetId - dataset id.
public java.util.List<au.edu.archer.domain.icat.api.DataFile> getAllDataFiles(int datasetId)
getAllDataFiles in interface DDMServicedatasetId - The dataset id.
public SRBDownloadResponse downloadSingleDataFile(SRBDownloadRequest request)
throws InvalidDDMRequestException
downloadSingleDataFile in interface DDMServicerequest - SRBDownloadRequest object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public au.edu.archer.domain.icat.api.DataFile uploadSingleDatafile(SRBUploadRequest srbUploadRequest)
throws InvalidDDMRequestException,
DDMServiceException
Will upload file in SRB and persist extracted meta data based on the file type.
uploadSingleDatafile in interface DDMServicesrbUploadRequest - request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.
public au.edu.archer.domain.icat.api.DataFile uploadSingleGenericFile(SRBUploadRequest srbUploadRequest)
throws InvalidDDMRequestException,
DDMServiceException
InvalidDDMRequestException
DDMServiceException
public au.edu.archer.domain.icat.api.DataFile addGenericFileToDataset(SRBUploadRequest srbUploadRequest,
java.lang.String srbLocation,
int datasetId)
throws DDMServiceException,
InvalidDDMRequestException
addGenericFileToDataset in interface DDMServicesrbUploadRequest - The SRBUploadRequest srbUploadRequest.srbLocation - The SRB location.datasetId - The Dataset Id.
DDMServiceException - if an error occurs.
InvalidDDMRequestException - if an error occurs.
public DatasetDetails addDatasetToAnExpr(DatasetRequest request)
throws InvalidDDMRequestException,
DDMServiceException
Add dataset metadata to ICAT and dataset diredtory in SRB.
addDatasetToAnExpr in interface DDMServicerequest - DatasetRequest object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.
public DatasetDetails updateDataset(DatasetRequest request)
throws InvalidDDMRequestException,
DDMServiceException
Updates metadata data in ICAT and directory name in SRB.
updateDataset in interface DDMServicerequest - DatasetRequest object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.
public void deleteDataset(DatasetRequest request)
throws InvalidDDMRequestException,
DDMServiceException
Delets dataset metadata from ICAT and the dataset directory from SRB.
deleteDataset in interface DDMServicerequest - DatasetRequest object.
InvalidDDMRequestException
DDMServiceException - raised by DDM service when failure reached in processing.
public void updateDatasetParameters(DatasetRequest request)
throws InvalidDDMRequestException,
DDMServiceException
updateDatasetParameters in interface DDMServicerequest - DatasetRequest object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.public java.util.Map<java.lang.String,java.lang.String> getDatasetParametersById(DatasetRequest request)
getDatasetParametersById in interface DDMServicerequest - DatasetRequest object.
public void deleteExperiment(ExperimentRequest request)
throws InvalidDDMRequestException,
DDMServiceException
delete experiment directory under an exist project directory in SRB and remove metadata from ICAT.
deleteExperiment in interface DDMServicerequest - ExperimentRequest request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - Exception raised by DDM service when an error occurs.
public ExperimentDetails createExperiment(ExperimentRequest request)
throws InvalidDDMRequestException,
DDMServiceException
Create an empty experiment directory under an exist project directory in SRB and save metadata in ICAT.
createExperiment in interface DDMServicerequest - ExperimentRequest request object.
DDMServiceException
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public ExperimentDetails updateExperiment(ExperimentRequest request)
throws InvalidDDMRequestException,
DDMServiceException
updateExperiment in interface DDMServicerequest - ExperimentRequest request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.
public ExperimentDetails getExperimentByName(ExperimentRequest request)
throws InvalidDDMRequestException,
DDMServiceException
getExperimentByName in interface DDMServicerequest - ExperimentRequest request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.
public ExperimentDetails getExperimentById(int expId,
java.lang.String srbSessionId)
throws InvalidDDMRequestException,
DDMServiceException
getExperimentById in interface DDMServiceexpId - int experiment id.srbSessionId - String srb session id.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.
public SampleDetails createSample(SampleRequest request)
throws InvalidDDMRequestException,
DDMServiceException
createSample in interface DDMServicerequest - SampleRequest request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.
public void deleteSample(SampleRequest request)
throws InvalidDDMRequestException,
DDMServiceException
deleteSample in interface DDMServicerequest - SampleRequest request
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.public java.util.Map<java.lang.String,java.lang.String> getAllSamplesByExpId(SampleRequest request)
getAllSamplesByExpId in interface DDMServicerequest - SampleRequest request.
public SampleDetails getSampleById(SampleRequest request)
throws InvalidDDMRequestException,
DDMServiceException
getSampleById in interface DDMServicerequest - SampleRequest request.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.
public SampleDetails updateSample(SampleRequest request)
throws InvalidDDMRequestException,
DDMServiceException
updateSample in interface DDMServicerequest - SampleRequest request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.public java.util.Map<java.lang.String,java.lang.String> getAllSamplesByExpName(SampleRequest request)
getAllSamplesByExpName in interface DDMServicerequest - SampleRequest request.
public void updateSampleParameters(SampleRequest request)
throws InvalidDDMRequestException,
DDMServiceException
This method is used by UQ Meta DataEditor.
updateSampleParameters in interface DDMServicerequest - SampleRequest object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.public java.util.Map<java.lang.String,java.lang.String> getSampleParametersById(SampleRequest request)
This method is used by UQ Meta DataEditor.
getSampleParametersById in interface DDMServicerequest - SampleRequest object.
public java.util.List<au.edu.archer.domain.icat.api.InvestigationType> getAllExperimentTypes()
getAllExperimentTypes in interface DDMService
public au.edu.archer.domain.icat.api.DataFile addDatafileToDataset(byte[] content,
java.lang.String srbLocation,
int datasetId)
throws DDMServiceException,
InvalidDDMRequestException
addDatafileToDataset in interface DDMServicecontent - meta data content in XML file.srbLocation - String location of the file.datasetId - dataset id.
DDMServiceException - Exception raised by DDM service when an error occurs.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
public au.edu.archer.domain.icat.api.DataFile addDatafileToDataset(SRBUploadRequest srbUploadRequest,
java.lang.String srbLocation,
int datasetId)
throws DDMServiceException,
InvalidDDMRequestException
srbUploadRequest - The SRBUploadRequest srbUploadRequest.srbLocation - The SRB location.datasetId - The Dataset Id.
DDMServiceException - if an error occurs.
InvalidDDMRequestException - if an error occurs.
public SearchResponse search(SearchRequest request)
throws InvalidDDMRequestException
search in interface DDMServicerequest - SearchRequest search request.
InvalidDDMRequestException - throw InvalidDDMRequestException when no search criteria is provided.public java.util.Map<java.lang.String,java.lang.String> getAllProjectNames()
getAllProjectNames in interface DDMService
public java.util.Map<java.lang.String,java.lang.String> getExperimentNamesByProjectId(int projectId)
throws DDMServiceException
getExperimentNamesByProjectId in interface DDMServiceprojectId - int project id.
DDMServiceException - throw DDMServiceException when an error occurs.
public java.util.List<au.edu.archer.domain.icat.api.Investigation> getAllExperimentsUnderProject(int projectId)
throws DDMServiceException
getAllExperimentsUnderProject in interface DDMServiceprojectId - The project id.
DDMServiceException - if any errors occur.
public java.util.Map<java.lang.String,java.lang.String> getDatasetNamesByExperimentId(int experimentId)
throws DDMServiceException
getDatasetNamesByExperimentId in interface DDMServiceexperimentId - int.
DDMServiceException - .
public DatasetDetails copyDataset(DatasetRequest request)
throws DDMServiceException
copyDataset in interface DDMServicerequest - DatasetRequest request object.
DDMServiceException - throw DDMServiceException when an error occurs.
public au.edu.archer.domain.icat.api.DataFile copyDatafile(DatafileRequest request)
throws DDMServiceException
copyDatafile in interface DDMServicerequest - DatafileRequest request object.
DDMServiceException - throw DDMServiceException when an error occurs.
public au.edu.archer.domain.icat.api.DataFile moveDatafile(DatafileRequest request)
throws DDMServiceException
moveDatafile in interface DDMServicerequest - DatasetRequest request object.
DDMServiceException - DDMServiceException throw DDMServiceException when an error occurs.
public DatasetDetails moveDataset(DatasetRequest request)
throws DDMServiceException,
InvalidDDMRequestException
moveDataset in interface DDMServicerequest - DatasetRequest request object.
DDMServiceException - throw DDMServiceException when an error occurs.
InvalidDDMRequestException - throw InvalidDDMRequestException when request object is invalid.
public au.edu.archer.domain.icat.api.DataFile retrieveMetadata(java.lang.String srbLocation)
throws InvalidICATRequestException
retrieveMetadata in interface DDMServicesrbLocation - String location used when inserting metadata.
InvalidICATRequestException - throw MetaDataIncompleteException in case validation fails.public au.edu.archer.domain.icat.api.DataFile getDataFile(int dfId)
getDataFile in interface DDMServicedfId - int DataFile id.
public au.edu.archer.domain.icat.api.DataFile getDataFile(java.lang.String projectName,
java.lang.String experimentName,
java.lang.String datasetName,
java.lang.String datafileName)
throws DDMServiceException
getDataFile in interface DDMServiceprojectName - String project name.experimentName - String experiment name.datasetName - String dataset name.datafileName - String datafile name.
DDMServiceException - if any errors occur.
public au.edu.archer.domain.icat.api.DataFile getDataFile(java.lang.String path)
throws DDMServiceException
getDataFile in interface DDMServicepath - String relative path of the DataFile.
DDMServiceException - if any errors occur.
public void deleteDataFile(DatafileRequest request)
throws DDMServiceException
deleteDataFile in interface DDMServicerequest - DatafileRequest request object.
DDMServiceException - throw DDMServiceException when an error happens.
public void updateDatafileParameters(DatafileRequest request)
throws InvalidDDMRequestException,
DDMServiceException
This method is used by UQ Meta DataEditor.
updateDatafileParameters in interface DDMServicerequest - DatafileRequest object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.
public au.edu.archer.domain.icat.api.DataFile updateDatafile(DatafileRequest request)
throws InvalidDDMRequestException,
DDMServiceException
updateDatafile in interface DDMServicerequest - DatafileRequest request object.
InvalidDDMRequestException - Exception raised by DDM service when an invalid request is received for processing.
DDMServiceException - raised by DDM service when failure reached in processing.public java.util.Map<java.lang.String,java.lang.String> getDatafileParametersById(DatafileRequest request)
This method is used by UQ Meta DataEditor.
getDatafileParametersById in interface DDMServicerequest - DatafileRequest object.
public au.edu.archer.domain.icat.impl.DataFileImpl resetDatafileParameters(DatafileRequest request)
throws DDMServiceException
resetDatafileParameters in interface DDMServicerequest - DatafileRequest request object.
DDMServiceException - throw DDMServiceException when an error occurs.public java.util.Map<java.lang.String,java.lang.String> getAllDataFileFormat()
getAllDataFileFormat in interface DDMServicepublic void setIcatService(ICATService icatService)
icatService - to set.public void setSrbService(SRBService srbService)
srbService - to set.public void setMetadataExtractorService(MetadataExtractorService metadataExtractorService)
metadataExtractorService - to set.public void setSearchService(SearchService searchService)
searchService - SearchService searchService.public void setMailService(MailService mailService)
mailService - MailService.
public java.lang.Thread startMETSThread(CreateMETSRequest request)
throws DDMServiceException,
InvalidDDMRequestException
startMETSThread in interface DDMServicerequest - CreateMETSRequest.
DDMServiceException
InvalidDDMRequestException
public java.lang.Thread startPublishThread(PublishExperimentRequest request)
throws java.lang.Exception
startPublishThread in interface DDMServicerequest - CreateMETSRequest.
DDMServiceException
java.lang.Exceptionpublic java.util.Map<java.lang.String,DatafileSliceResponse> getDatafileSliceByDatasetId(int datasetId)
getDatafileSliceByDatasetId in interface DDMServicedatasetId - A datafile id.
public java.lang.Thread startTransferThread(java.lang.String srbSessionId,
java.lang.String stagingDir,
java.lang.Integer datasetId,
boolean stagTransfer,
java.lang.String notificationRecv)
startTransferThread in interface DDMServicesrbSessionId - The String srbSessionId.stagingDir - The String stagingDir.datasetId - The Dataset Id.stagTransfer - The flag is stagTransfer.notificationRecv - String.
public java.util.List<au.edu.archer.domain.icat.api.Investigator> listAllInvestigatorsByExperimentId(int expid)
listAllInvestigatorsByExperimentId in interface DDMServiceexpid - The experiment Id.
public java.util.List<au.edu.archer.domain.icat.api.TopicList> listAllTopicListsByExperimentId(int expid)
listAllTopicListsByExperimentId in interface DDMServiceexpid - The experiment Id.
public java.util.List<au.edu.archer.domain.icat.api.Topic> listAllTopics()
throws DDMServiceException
listAllTopics in interface DDMServiceDDMServiceException - if errors.
public java.util.Map<java.lang.String,java.lang.String> getAllTopicNames()
throws DDMServiceException
getAllTopicNames in interface DDMServiceDDMServiceException - if any errors.
public java.util.Map<java.lang.String,java.lang.String> getAllInvestigators()
throws DDMServiceException
getAllInvestigators in interface DDMServiceDDMServiceException - if any errors.public java.util.Map<java.lang.String,java.lang.String> getLock()
getLock in interface DDMServicepublic void setLock(java.util.Map<java.lang.String,java.lang.String> lock)
setLock in interface DDMServicelock - the lock to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||