|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataService
Method Summary | ||
---|---|---|
void |
attachImageToDataset(omero.model.Dataset dataset,
omero.model.Image image)
Attach an image to a dataset. |
|
void |
deleteObject(omero.model.IObject row)
Delete the object. |
|
void |
deleteScript(long id)
Delete the script with id from the server. |
|
List<omero.model.IObject> |
findAllByQuery(String myQuery)
Run the query against the iQuery interface. |
|
omero.model.IObject |
findByQuery(String myQuery)
Run the query against the iQuery interface. |
|
List<omero.model.Dataset> |
getDatasets(List<Long> ids,
boolean getLeaves)
Get the Datasets with id's passed as list in ids. |
|
List<omero.model.Image> |
getImageByName(String imageName)
Get the list of images with name containing imageName. |
|
List<omero.model.Image> |
getImageFromDatasetByName(Long datasetId,
String imageName)
Get the images from the dataset with name, this can use wild cards. |
|
List<omero.model.Image> |
getImages(omero.api.ContainerClass nodeType,
List<Long> nodeIds)
Retrieves the images contained in containers specified by the node type. |
|
Map<String,omero.RType> |
getParams(long id)
Get the parameters the script takes, this is a map of the parameter name and type. |
|
List<omero.model.Pixels> |
getPixelsFromImage(long imageId)
Get the pixels associated with the image. |
|
omero.model.PixelsType |
getPixelType(String type)
Get the pixelsType with type. |
|
List<omero.model.PixelsType> |
getPixelTypes()
Get the PixelTypes available in the system. |
|
List<omero.model.Project> |
getProjects(List<Long> ids,
boolean getLeaves)
Get the projects in the users. |
|
String |
getScript(long id)
Get the script with id, this returns the actual script as a string. |
|
long |
getScriptID(String name)
Get the id of the script with name |
|
Map<Long,String> |
getScripts()
Get the scripts from the iScript Service. |
|
Map<String,omero.RType> |
runScript(long id,
Map<String,omero.RType> map)
Run the script and get the results returned as a name , value map. |
|
|
saveAndReturnArray(List<omero.model.IObject> graph)
Save and return the array. |
|
omero.model.IObject |
saveAndReturnObject(omero.model.IObject obj)
Save and return the Object. |
|
void |
saveArray(List<omero.model.IObject> graph)
Save the array. |
|
void |
saveObject(omero.model.IObject obj)
Save the object to the db . |
|
omero.model.Pixels |
updatePixels(omero.model.Pixels object)
Update the pixels object in the server. |
|
long |
uploadScript(String script)
Upload the script to the server. |
Method Detail |
---|
List<omero.model.Image> getImages(omero.api.ContainerClass nodeType, List<Long> nodeIds) throws omero.ServerError
nodeType
- The type of container. Can either be Project,
Dataset, CategoryGroup, Category or Image.nodeIds
- Set of node ids..
Set
of retrieved images.
DSOutOfServiceException
- If the connection is broken, or logged in
omero.ServerError
- If an error occurred while trying to
retrieve data from OMERO service.List<omero.model.Pixels> getPixelsFromImage(long imageId) throws omero.ServerError
imageId
-
DSOutOfServiceException
- If the connection is broken, or logged in
omero.ServerError
- If an error occurred while trying toList<omero.model.Dataset> getDatasets(List<Long> ids, boolean getLeaves) throws omero.ServerError
ids
- see above.getLeaves
- should image data be populated.
DSOutOfServiceException
omero.ServerError
List<omero.model.Project> getProjects(List<Long> ids, boolean getLeaves) throws omero.ServerError
ids
- The ids of the users.getLeaves
- see above.
DSOutOfServiceException
omero.ServerError
List<omero.model.PixelsType> getPixelTypes() throws omero.ServerError
DSOutOfServiceException
omero.ServerError
omero.model.PixelsType getPixelType(String type) throws omero.ServerError
type
- see above.
DSOutOfServiceException
omero.ServerError
List<omero.model.IObject> findAllByQuery(String myQuery) throws omero.ServerError
myQuery
- the string containing the query.
DSOutOfServiceException
omero.ServerError
omero.model.IObject findByQuery(String myQuery) throws omero.ServerError
myQuery
- the string containing the query.
DSOutOfServiceException
omero.ServerError
void attachImageToDataset(omero.model.Dataset dataset, omero.model.Image image) throws omero.ServerError
dataset
- image
-
DSOutOfServiceException
omero.ServerError
List<omero.model.Image> getImageFromDatasetByName(Long datasetId, String imageName) throws omero.ServerError
datasetId
- see above.imageName
- see above.
DSOutOfServiceException
omero.ServerError
List<omero.model.Image> getImageByName(String imageName) throws omero.ServerError
imageName
- see above.
DSOutOfServiceException
omero.ServerError
void saveObject(omero.model.IObject obj) throws omero.ServerError
obj
- see above.
DSOutOfServiceException
omero.ServerError
omero.model.IObject saveAndReturnObject(omero.model.IObject obj) throws omero.ServerError
obj
- see above.
DSOutOfServiceException
omero.ServerError
void saveArray(List<omero.model.IObject> graph) throws omero.ServerError
graph
- see above.
DSOutOfServiceException
omero.ServerError
<T extends omero.model.IObject> List<T> saveAndReturnArray(List<omero.model.IObject> graph) throws omero.ServerError
T
- The Type to return.graph
- the object
DSOutOfServiceException
omero.ServerError
void deleteObject(omero.model.IObject row) throws omero.ServerError
row
- the object.(commonly a row in db)
DSOutOfServiceException
omero.ServerError
omero.model.Pixels updatePixels(omero.model.Pixels object) throws omero.ServerError
object
- see above.
DSOutOfServiceException
DSAccessException
omero.ServerError
Map<Long,String> getScripts() throws omero.ServerError
omero::ServerError
omero.ServerError
long getScriptID(String name) throws omero.ServerError
name
- name of the script.
omero::ServerError
omero.ServerError
long uploadScript(String script) throws omero.ServerError
script
- script to upload
omero::ServerError
omero.ServerError
String getScript(long id) throws omero.ServerError
id
- id of the script to retrieve.
omero::ServerError
omero.ServerError
Map<String,omero.RType> getParams(long id) throws omero.ServerError
id
- id of the script.
omero::ServerError
omero.ServerError
Map<String,omero.RType> runScript(long id, Map<String,omero.RType> map) throws omero.ServerError
id
- id of the script to run.map
- the map of parameters, values for inputs.
omero::ServerError
omero.ServerError
void deleteScript(long id) throws omero.ServerError
id
- id of the script to delete.
omero::ServerError
omero.ServerError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.