public class DataServiceImpl extends Object implements DataService
Constructor and Description |
---|
DataServiceImpl(GatewayFactory gatewayFactory)
Instantiate the imageService with the serviceFactory.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
<T extends omero.model.IObject> |
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.
|
public DataServiceImpl(GatewayFactory gatewayFactory)
serviceFactory
- see above.public void attachImageToDataset(omero.model.Dataset dataset, omero.model.Image image) throws omero.ServerError
DataService
attachImageToDataset
in interface DataService
omero.ServerError
public void deleteObject(omero.model.IObject row) throws omero.ServerError
DataService
deleteObject
in interface DataService
row
- the object.(commonly a row in db)omero.ServerError
public List<omero.model.IObject> findAllByQuery(String myQuery) throws omero.ServerError
DataService
findAllByQuery
in interface DataService
myQuery
- the string containing the query.omero.ServerError
public omero.model.IObject findByQuery(String myQuery) throws omero.ServerError
DataService
findByQuery
in interface DataService
myQuery
- the string containing the query.omero.ServerError
public List<omero.model.Dataset> getDatasets(List<Long> ids, boolean getLeaves) throws omero.ServerError
DataService
getDatasets
in interface DataService
ids
- see above.getLeaves
- should image data be populated.omero.ServerError
public List<omero.model.Image> getImageByName(String imageName) throws omero.ServerError
DataService
getImageByName
in interface DataService
imageName
- see above.omero.ServerError
public List<omero.model.Image> getImageFromDatasetByName(Long datasetId, String imageName) throws omero.ServerError
DataService
getImageFromDatasetByName
in interface DataService
datasetId
- see above.imageName
- see above.omero.ServerError
public List<omero.model.Image> getImages(omero.api.ContainerClass nodeType, List<Long> nodeIds) throws omero.ServerError
DataService
getImages
in interface DataService
nodeType
- The type of container. Can either be Project,
Dataset, CategoryGroup, Category or Image.nodeIds
- Set of node ids..Set
of retrieved images.omero.ServerError
- If an error occurred while trying to
retrieve data from OMERO service.public omero.model.PixelsType getPixelType(String type) throws omero.ServerError
DataService
getPixelType
in interface DataService
type
- see above.omero.ServerError
public List<omero.model.PixelsType> getPixelTypes() throws omero.ServerError
DataService
getPixelTypes
in interface DataService
omero.ServerError
public List<omero.model.Pixels> getPixelsFromImage(long imageId) throws omero.ServerError
DataService
getPixelsFromImage
in interface DataService
omero.ServerError
- If an error occurred while trying topublic List<omero.model.Project> getProjects(List<Long> ids, boolean getLeaves) throws omero.ServerError
DataService
getProjects
in interface DataService
ids
- The ids of the projects.getLeaves
- see above.omero.ServerError
public <T extends omero.model.IObject> List<T> saveAndReturnArray(List<omero.model.IObject> graph) throws omero.ServerError
DataService
saveAndReturnArray
in interface DataService
T
- The Type to return.graph
- the objectomero.ServerError
public omero.model.IObject saveAndReturnObject(omero.model.IObject obj) throws omero.ServerError
DataService
saveAndReturnObject
in interface DataService
obj
- see above.omero.ServerError
public void saveArray(List<omero.model.IObject> graph) throws omero.ServerError
DataService
saveArray
in interface DataService
graph
- see above.omero.ServerError
public void saveObject(omero.model.IObject obj) throws omero.ServerError
DataService
saveObject
in interface DataService
obj
- see above.omero.ServerError
public omero.model.Pixels updatePixels(omero.model.Pixels object) throws omero.ServerError
DataService
updatePixels
in interface DataService
object
- see above.omero.ServerError
Version: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.