public class DataServiceImpl extends java.lang.Object implements DataService
コンストラクタと説明 |
---|
DataServiceImpl(GatewayFactory gatewayFactory)
Instantiate the imageService with the serviceFactory.
|
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
java.util.List<omero.model.IObject> |
findAllByQuery(java.lang.String myQuery)
Run the query against the iQuery interface.
|
omero.model.IObject |
findByQuery(java.lang.String myQuery)
Run the query against the iQuery interface.
|
java.util.List<omero.model.Dataset> |
getDatasets(java.util.List<java.lang.Long> ids,
boolean getLeaves)
Get the Datasets with id's passed as list in ids.
|
java.util.List<omero.model.Image> |
getImageByName(java.lang.String imageName)
Get the list of images with name containing imageName.
|
java.util.List<omero.model.Image> |
getImageFromDatasetByName(java.lang.Long datasetId,
java.lang.String imageName)
Get the images from the dataset with name, this can use wild cards.
|
java.util.List<omero.model.Image> |
getImages(omero.api.ContainerClass nodeType,
java.util.List<java.lang.Long> nodeIds)
Retrieves the images contained in containers specified by the
node type.
|
java.util.List<omero.model.Pixels> |
getPixelsFromImage(long imageId)
Get the pixels associated with the image.
|
omero.model.PixelsType |
getPixelType(java.lang.String type)
Get the pixelsType with type.
|
java.util.List<omero.model.PixelsType> |
getPixelTypes()
Get the PixelTypes available in the system.
|
java.util.List<omero.model.Project> |
getProjects(java.util.List<java.lang.Long> ids,
boolean getLeaves)
Get the projects in the users.
|
<T extends omero.model.IObject> |
saveAndReturnArray(java.util.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(java.util.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
インタフェース内 DataService
omero.ServerError
public void deleteObject(omero.model.IObject row) throws omero.ServerError
DataService
deleteObject
インタフェース内 DataService
row
- the object.(commonly a row in db)omero.ServerError
public java.util.List<omero.model.IObject> findAllByQuery(java.lang.String myQuery) throws omero.ServerError
DataService
findAllByQuery
インタフェース内 DataService
myQuery
- the string containing the query.omero.ServerError
public omero.model.IObject findByQuery(java.lang.String myQuery) throws omero.ServerError
DataService
findByQuery
インタフェース内 DataService
myQuery
- the string containing the query.omero.ServerError
public java.util.List<omero.model.Dataset> getDatasets(java.util.List<java.lang.Long> ids, boolean getLeaves) throws omero.ServerError
DataService
getDatasets
インタフェース内 DataService
ids
- see above.getLeaves
- should image data be populated.omero.ServerError
public java.util.List<omero.model.Image> getImageByName(java.lang.String imageName) throws omero.ServerError
DataService
getImageByName
インタフェース内 DataService
imageName
- see above.omero.ServerError
public java.util.List<omero.model.Image> getImageFromDatasetByName(java.lang.Long datasetId, java.lang.String imageName) throws omero.ServerError
DataService
getImageFromDatasetByName
インタフェース内 DataService
datasetId
- see above.imageName
- see above.omero.ServerError
public java.util.List<omero.model.Image> getImages(omero.api.ContainerClass nodeType, java.util.List<java.lang.Long> nodeIds) throws omero.ServerError
DataService
getImages
インタフェース内 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(java.lang.String type) throws omero.ServerError
DataService
getPixelType
インタフェース内 DataService
type
- see above.omero.ServerError
public java.util.List<omero.model.PixelsType> getPixelTypes() throws omero.ServerError
DataService
getPixelTypes
インタフェース内 DataService
omero.ServerError
public java.util.List<omero.model.Pixels> getPixelsFromImage(long imageId) throws omero.ServerError
DataService
getPixelsFromImage
インタフェース内 DataService
omero.ServerError
- If an error occurred while trying topublic java.util.List<omero.model.Project> getProjects(java.util.List<java.lang.Long> ids, boolean getLeaves) throws omero.ServerError
DataService
getProjects
インタフェース内 DataService
ids
- The ids of the projects.getLeaves
- see above.omero.ServerError
public <T extends omero.model.IObject> java.util.List<T> saveAndReturnArray(java.util.List<omero.model.IObject> graph) throws omero.ServerError
DataService
saveAndReturnArray
インタフェース内 DataService
T
- The Type to return.graph
- the objectomero.ServerError
public omero.model.IObject saveAndReturnObject(omero.model.IObject obj) throws omero.ServerError
DataService
saveAndReturnObject
インタフェース内 DataService
obj
- see above.omero.ServerError
public void saveArray(java.util.List<omero.model.IObject> graph) throws omero.ServerError
DataService
saveArray
インタフェース内 DataService
graph
- see above.omero.ServerError
public void saveObject(omero.model.IObject obj) throws omero.ServerError
DataService
saveObject
インタフェース内 DataService
obj
- see above.omero.ServerError
public omero.model.Pixels updatePixels(omero.model.Pixels object) throws omero.ServerError
DataService
updatePixels
インタフェース内 DataService
object
- see above.omero.ServerError