|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectau.edu.jcu.hermes.plugin.icat.ICATModel
public class ICATModel
| Field Summary | |
|---|---|
protected ICAT |
icat
ICAT server connection. |
| Constructor Summary | |
|---|---|
ICATModel(ICAT icat,
IEventShower eventShower)
Constructor for unit tests so that we can pass in a local hibernate ICAT service instead of a normal connection. |
|
ICATModel(IEventShower eventShower,
IFileSystemModel fileSystemModel)
Default Constructor. |
|
| Method Summary | |
|---|---|
void |
addConnection(IICATConnector connector)
Add a connection to an ICAT service. |
void |
addSuccessListener(java.awt.event.ActionListener actionListener)
Add a listener to listen for function success. |
void |
changeConnection(IICATConnector connector)
change the url connected to. |
java.util.List<DataSetStatus> |
getAllDataSetStatus()
Get all the possible Data Set Status'. |
java.util.List<DataSetType> |
getAllDataSetTypes()
Get all the possible Data Set Types. |
java.util.List<DataFileFormat> |
getAllFormats()
Get all the possible Data File Formats. |
java.util.List<Instrument> |
getAllInstruments()
Get all the possible Instruments. |
java.util.List<InvestigationType> |
getAllInvestigationTypes()
Get all the possible Investigation Types. |
java.util.List<SampleParameter> |
getAllSampleParameters(long sampleId)
Get all the parameters for the sample. |
java.util.List<Study> |
getAllStudies()
|
java.util.List<StudyStatus> |
getAllStudyStatus()
Get all the options for Study Status. |
java.util.List<IICATConnector> |
getConnections()
Get the list of connections. |
DataFile |
getDataFileById(long id)
Get the Data File that relates to the id. |
DataFileParameter |
getDataFileParameterById(long id)
get the Data File Parameter that relates to the id. |
java.util.List<DataFile> |
getDataFiles(DataSet dataSet)
Get a list of the Data Files in a Data Set. |
DataSet |
getDataSetById(long id)
Get the Data Set that relates to the id. |
DataSetParameter |
getDataSetParameterById(long id)
get the Data Set Parameter that relates to the id. |
java.util.List<DataSet> |
getDataSets(Investigation inv)
Get a list of the data sets associated with an investigation. |
ICATObjectFactory |
getICATFactory()
|
Investigation |
getInvestigationById(long id)
Get the Investigation that relates to the id. |
java.util.List<Investigation> |
getInvestigations(Study study)
Get a list of the investigations associated with a study. |
InvestigationType |
getInvType(java.lang.String invType)
Get the details of an investigation type from the name. |
Sample |
getSampleById(long id)
Get the Sample that relates to the id. |
SampleParameter |
getSampleParameterById(long id)
Get the sample parameter that relates to the id. |
java.util.List<Sample> |
getSamples(Investigation inv)
Get a list of the samples associated with an investigation. |
Study |
getStudyById(long id)
Return the Study that relates the the id. |
DataFile |
newDataFile(long dataSetId)
Add a Data File. |
DataFileParameter |
newDataFileParameter(long dataFileId)
Add a Data File Parameter. |
DataSet |
newDataSet(long investigationId)
Add a Data Set. |
DataSetParameter |
newDataSetParameter(long dataSetId)
Add a Data Set Parameter. |
Investigation |
newInvestigation(long studyId)
Add an Investigation. |
Sample |
newSample(long investigationId)
Add a sample. |
SampleParameter |
newSampleParameter(long sampleId)
Add a Sample Parameter. |
Study |
newStudy()
Add a new study. |
void |
removeConnection(IICATConnector connector)
Remove a connection to an ICAT service. |
void |
removeDataFile(long dataFileId)
Delete a Data File. |
void |
removeDataFileParameter(long parameterId)
Delete a Data File Parameter. |
void |
removeDataSet(long dataSetId)
Delete a sample. |
void |
removeDataSetParameter(long parameterId)
delete a data set Parameter. |
void |
removeInvestigation(long investigationId)
Delete the Investigation. |
void |
removeSample(long sampleId)
Delete a sample. |
void |
removeSampleParameter(long parameterId)
delete a sample parameter. |
void |
removeStudy(long studyId)
Delete the study. |
void |
updateDataFile(DataFile dataFile)
Update a Data File. |
void |
updateDataFileParameter(DataFileParameter parameter)
Update a Data File Parameter. |
DataSet |
updateDataSet(DataSet dataSet)
Update a data set. |
void |
updateDataSetParameter(DataSetParameter parameter)
update a data set Parameter. |
Investigation |
updateInvestigation(Investigation inv)
Updates an investigation to the ICAT store. |
Sample |
updateSample(Sample sample)
Update a sample. |
void |
updateSampleParameter(SampleParameter parameter)
update a new sample parameter. |
Study |
updateStudy(Study study)
Updates a study to the ICAT store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ICAT icat
| Constructor Detail |
|---|
public ICATModel(IEventShower eventShower,
IFileSystemModel fileSystemModel)
eventShower - - IEventShower allowing the model to throw messages to the viewfileSystemModel - - IFileSystemModel allowing the model to interact with a file system like SRB
public ICATModel(ICAT icat,
IEventShower eventShower)
icat - - hibernate icat connection| Method Detail |
|---|
public void changeConnection(IICATConnector connector)
changeConnection in interface IICATModelconnector - - IICATConnectorpublic ICATObjectFactory getICATFactory()
getICATFactory in interface IICATModelpublic InvestigationType getInvType(java.lang.String invType)
getInvType in interface IICATModelinvType - - the name of the investigation type
public java.util.List<Study> getAllStudies()
getAllStudies in interface IICATModelpublic Study getStudyById(long id)
getStudyById in interface IICATModelid - - long
public void removeStudy(long studyId)
removeStudy in interface IICATModelstudyId - - longpublic Study newStudy()
newStudy in interface IICATModelpublic Study updateStudy(Study study)
updateStudy in interface IICATModelstudy - - the new study object
public java.util.List<Investigation> getInvestigations(Study study)
getInvestigations in interface IICATModelstudy - - Study
public Investigation getInvestigationById(long id)
getInvestigationById in interface IICATModelid - - long
public void removeInvestigation(long investigationId)
removeInvestigation in interface IICATModelinvestigationId - - longpublic Investigation newInvestigation(long studyId)
newInvestigation in interface IICATModelstudyId - - long
public Investigation updateInvestigation(Investigation inv)
updateInvestigation in interface IICATModelinv - - Investigation
public java.util.List<DataSet> getDataSets(Investigation inv)
getDataSets in interface IICATModelinv - - Investigation
public DataSet getDataSetById(long id)
getDataSetById in interface IICATModelid - - long
public void removeDataSet(long dataSetId)
removeDataSet in interface IICATModeldataSetId - - longpublic DataSet newDataSet(long investigationId)
newDataSet in interface IICATModelinvestigationId - - long
public DataSet updateDataSet(DataSet dataSet)
updateDataSet in interface IICATModeldataSet - - DataSet
public java.util.List<Sample> getSamples(Investigation inv)
getSamples in interface IICATModelinv - - Investigation
public Sample getSampleById(long id)
getSampleById in interface IICATModelid - - long
public void removeSample(long sampleId)
removeSample in interface IICATModelsampleId - - longpublic Sample newSample(long investigationId)
newSample in interface IICATModelinvestigationId - - long
public Sample updateSample(Sample sample)
updateSample in interface IICATModelsample - - Sample
public java.util.List<DataFile> getDataFiles(DataSet dataSet)
getDataFiles in interface IICATModeldataSet - - DataSet
public DataFile newDataFile(long dataSetId)
newDataFile in interface IICATModeldataSetId - - long
public void updateDataFile(DataFile dataFile)
updateDataFile in interface IICATModeldataFile - - DataFilepublic DataFile getDataFileById(long id)
getDataFileById in interface IICATModelid - - long
public void removeDataFile(long dataFileId)
removeDataFile in interface IICATModeldataFileId - - longpublic DataFileParameter getDataFileParameterById(long id)
getDataFileParameterById in interface IICATModelid - - long
public DataFileParameter newDataFileParameter(long dataFileId)
newDataFileParameter in interface IICATModeldataFileId - - long
public void updateDataFileParameter(DataFileParameter parameter)
updateDataFileParameter in interface IICATModelparameter - - DataFileParameterpublic void removeDataFileParameter(long parameterId)
removeDataFileParameter in interface IICATModelparameterId - - longpublic DataSetParameter getDataSetParameterById(long id)
getDataSetParameterById in interface IICATModelid - - long
public DataSetParameter newDataSetParameter(long dataSetId)
newDataSetParameter in interface IICATModeldataSetId - - long
public void updateDataSetParameter(DataSetParameter parameter)
updateDataSetParameter in interface IICATModelparameter - - DataSetParameterpublic void removeDataSetParameter(long parameterId)
removeDataSetParameter in interface IICATModelparameterId - - longpublic SampleParameter getSampleParameterById(long id)
getSampleParameterById in interface IICATModelid - - long
public java.util.List<SampleParameter> getAllSampleParameters(long sampleId)
getAllSampleParameters in interface IICATModelsampleId - - long
public SampleParameter newSampleParameter(long sampleId)
newSampleParameter in interface IICATModelsampleId - - long
public void updateSampleParameter(SampleParameter parameter)
updateSampleParameter in interface IICATModelparameter - - SampleParameterpublic void removeSampleParameter(long parameterId)
removeSampleParameter in interface IICATModelparameterId - - longpublic java.util.List<StudyStatus> getAllStudyStatus()
getAllStudyStatus in interface IICATModelpublic java.util.List<Instrument> getAllInstruments()
getAllInstruments in interface IICATModelpublic java.util.List<DataSetType> getAllDataSetTypes()
getAllDataSetTypes in interface IICATModelpublic java.util.List<DataSetStatus> getAllDataSetStatus()
getAllDataSetStatus in interface IICATModelpublic java.util.List<InvestigationType> getAllInvestigationTypes()
getAllInvestigationTypes in interface IICATModelpublic java.util.List<DataFileFormat> getAllFormats()
getAllFormats in interface IICATModelpublic void addSuccessListener(java.awt.event.ActionListener actionListener)
addSuccessListener in interface IICATModelactionListener - - ActionListenerpublic void addConnection(IICATConnector connector)
addConnection in interface IICATModelconnector - - IICATConnectorpublic void removeConnection(IICATConnector connector)
removeConnection in interface IICATModelconnector - - IICATConnectorpublic java.util.List<IICATConnector> getConnections()
getConnections in interface IICATModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||