public class DataManagerFacility extends Facility
Facility
for saving, deleting and updating data objectsModifier and Type | Method and Description |
---|---|
void |
addImagesToDataset(SecurityContext ctx,
Collection<ImageData> images,
DatasetData ds)
Adds the
ImageData s to the given DatasetData |
void |
addImageToDataset(SecurityContext ctx,
ImageData image,
DatasetData ds)
Adds the
ImageData to the given DatasetData |
CmdCallbackI |
delete(SecurityContext ctx,
omero.model.IObject object)
Deletes the specified object asynchronously
|
CmdCallbackI |
delete(SecurityContext ctx,
List<omero.model.IObject> objects)
Deletes the specified objects asynchronously
|
omero.cmd.Response |
deleteObject(SecurityContext ctx,
omero.model.IObject object)
Deprecated.
Use the asynchronous method
delete(SecurityContext, IObject) instead |
omero.cmd.Response |
deleteObjects(SecurityContext ctx,
List<omero.model.IObject> objects)
Deprecated.
Use the asynchronous method
delete(SecurityContext, List) instead |
DataObject |
saveAndReturnObject(SecurityContext ctx,
DataObject object)
Updates the specified object.
|
DataObject |
saveAndReturnObject(SecurityContext ctx,
DataObject object,
String userName)
Updates the specified object.
|
omero.model.IObject |
saveAndReturnObject(SecurityContext ctx,
omero.model.IObject object)
Updates the specified object.
|
omero.model.IObject |
saveAndReturnObject(SecurityContext ctx,
omero.model.IObject object,
Map options)
Updates the specified object.
|
omero.model.IObject |
saveAndReturnObject(SecurityContext ctx,
omero.model.IObject object,
Map options,
String userName)
Updates the specified object.
|
omero.model.IObject |
saveAndReturnObject(SecurityContext ctx,
omero.model.IObject object,
String userName)
Updates the specified object.
|
List<omero.model.IObject> |
saveAndReturnObject(SecurityContext ctx,
List<omero.model.IObject> objects,
Map options,
String userName)
Updates the specified object.
|
omero.model.IObject |
updateObject(SecurityContext ctx,
omero.model.IObject object,
omero.sys.Parameters options)
Updates the specified object.
|
List<omero.model.IObject> |
updateObjects(SecurityContext ctx,
List<omero.model.IObject> objects,
omero.sys.Parameters options)
Updates the specified
IObject s and returned the updated
IObject s. |
addPropertyChangeListener, clear, getFacility, logDebug, logError, logInfo, logWarn, removePropertyChangeListener
public omero.cmd.Response deleteObject(SecurityContext ctx, omero.model.IObject object) throws DSOutOfServiceException, DSAccessException
delete(SecurityContext, IObject)
insteadctx
- The security context.object
- The object to delete.Response
handleDSOutOfServiceException
DSAccessException
public CmdCallbackI delete(SecurityContext ctx, omero.model.IObject object) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.object
- The object to delete.CmdCallbackI
DSOutOfServiceException
- If the connection is broken, or logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public CmdCallbackI delete(SecurityContext ctx, List<omero.model.IObject> objects) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.objects
- The objects to delete.CmdCallbackI
DSOutOfServiceException
- If the connection is broken, or logged inDSAccessException
- If an error occurred while trying to retrieve data from OMERO
service.public omero.cmd.Response deleteObjects(SecurityContext ctx, List<omero.model.IObject> objects) throws DSOutOfServiceException, DSAccessException
delete(SecurityContext, List)
insteadctx
- The security context.objects
- The objects to delete.Response
handleDSOutOfServiceException
DSAccessException
public omero.model.IObject saveAndReturnObject(SecurityContext ctx, omero.model.IObject object, Map options) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.object
- The object to update.options
- Options to update the data.DSOutOfServiceException
DSAccessException
IContainerPrx.updateDataObject(IObject, Parameters)
public DataObject saveAndReturnObject(SecurityContext ctx, DataObject object) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.object
- The object to update.DSOutOfServiceException
DSAccessException
IContainerPrx.updateDataObject(IObject, Parameters)
public omero.model.IObject saveAndReturnObject(SecurityContext ctx, omero.model.IObject object) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.object
- The object to update.DSOutOfServiceException
DSAccessException
IContainerPrx.updateDataObject(IObject, Parameters)
public omero.model.IObject saveAndReturnObject(SecurityContext ctx, omero.model.IObject object, Map options, String userName) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.object
- The object to update.options
- Options to update the data.userName
- The name of the user to create the data for.DSOutOfServiceException
DSAccessException
IContainerPrx.updateDataObject(IObject, Parameters)
public DataObject saveAndReturnObject(SecurityContext ctx, DataObject object, String userName) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.object
- The object to update.userName
- The name of the user to create the data for.DSOutOfServiceException
DSAccessException
IContainerPrx.updateDataObject(IObject, Parameters)
public omero.model.IObject saveAndReturnObject(SecurityContext ctx, omero.model.IObject object, String userName) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.object
- The object to update.userName
- The name of the user to create the data for.DSOutOfServiceException
DSAccessException
IContainerPrx.updateDataObject(IObject, Parameters)
public List<omero.model.IObject> saveAndReturnObject(SecurityContext ctx, List<omero.model.IObject> objects, Map options, String userName) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.objects
- The objects to update.options
- Options to update the data.userName
- The usernameDSOutOfServiceException
DSAccessException
IContainerPrx.updateDataObject(IObject, Parameters)
public omero.model.IObject updateObject(SecurityContext ctx, omero.model.IObject object, omero.sys.Parameters options) throws DSOutOfServiceException, DSAccessException
ctx
- The security context.object
- The object to update.options
- Options to update the data.DSOutOfServiceException
DSAccessException
IContainerPrx.updateDataObject(IObject, Parameters)
public List<omero.model.IObject> updateObjects(SecurityContext ctx, List<omero.model.IObject> objects, omero.sys.Parameters options) throws DSOutOfServiceException, DSAccessException
IObject
s and returned the updated
IObject
s.ctx
- The security context.objects
- The array of objects to update.options
- Options to update the data.DSOutOfServiceException
DSAccessException
IContainerPrx.updateDataObjects(List, Parameters)
public void addImageToDataset(SecurityContext ctx, ImageData image, DatasetData ds) throws DSOutOfServiceException, DSAccessException
ImageData
to the given DatasetData
ctx
- The security context.image
- The image to add to the datasetds
- The dataset to add the image toDSOutOfServiceException
DSAccessException
public void addImagesToDataset(SecurityContext ctx, Collection<ImageData> images, DatasetData ds) throws DSOutOfServiceException, DSAccessException
ImageData
s to the given DatasetData
ctx
- The security context.images
- The images to add to the datasetds
- The dataset to add the images toDSOutOfServiceException
DSAccessException
Version: 5.2.1-ice35-b15
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.