Package fr.igred.omero.client
Interface DataManager
-
- All Known Subinterfaces:
Client
- All Known Implementing Classes:
GatewayWrapper
public interface DataManager
Interface to add or remove data on an OMERO server in a givenSecurityContext
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
delete(Table table)
Deletes a table from OMERO.default void
delete(RemoteObject object)
Deletes an object from OMERO.default void
delete(java.util.Collection<? extends RemoteObject> objects)
Deletes multiple objects from OMERO.default void
delete(java.util.List<IObject> objects)
Deletes multiple objects from OMERO.default void
delete(IObject object)
Deletes an object from OMERO.default void
deleteFile(java.lang.Long id)
Deletes a file from OMEROSecurityContext
getCtx()
Returns the currentSecurityContext
.DataManagerFacility
getDMFacility()
Gets theDataManagerFacility
to handle/write data on OMERO.ROIFacility
getRoiFacility()
Gets theROIFacility
used to manipulate ROIs from OMERO.TablesFacility
getTablesFacility()
Gets theTablesFacility
used to manipulate tables on OMERO.default IObject
save(IObject object)
Saves an object on OMERO.
-
-
-
Method Detail
-
getCtx
SecurityContext getCtx()
Returns the currentSecurityContext
.- Returns:
- See above
-
getDMFacility
DataManagerFacility getDMFacility() throws java.util.concurrent.ExecutionException
Gets theDataManagerFacility
to handle/write data on OMERO. A- Returns:
- See above.
- Throws:
java.util.concurrent.ExecutionException
- If the DataManagerFacility can't be retrieved or instantiated.
-
getRoiFacility
ROIFacility getRoiFacility() throws java.util.concurrent.ExecutionException
Gets theROIFacility
used to manipulate ROIs from OMERO.- Returns:
- See above.
- Throws:
java.util.concurrent.ExecutionException
- If the ROIFacility can't be retrieved or instantiated.
-
getTablesFacility
TablesFacility getTablesFacility() throws java.util.concurrent.ExecutionException
Gets theTablesFacility
used to manipulate tables on OMERO.- Returns:
- See above.
- Throws:
java.util.concurrent.ExecutionException
- If the TablesFacility can't be retrieved or instantiated.
-
save
default IObject save(IObject object) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Saves an object on OMERO.- Parameters:
object
- The OMERO object.- Returns:
- The saved OMERO object
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
delete
default void delete(IObject object) throws ServiceException, AccessException, java.util.concurrent.ExecutionException, ServerException, java.lang.InterruptedException
Deletes an object from OMERO.- Parameters:
object
- The OMERO object.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.ServerException
- Server error.java.lang.InterruptedException
- If block(long) does not return.
-
delete
default void delete(java.util.List<IObject> objects) throws ServiceException, AccessException, java.util.concurrent.ExecutionException, ServerException, java.lang.InterruptedException
Deletes multiple objects from OMERO.- Parameters:
objects
- The OMERO objects.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.ServerException
- Server error.java.lang.InterruptedException
- If block(long) does not return.
-
deleteFile
default void deleteFile(java.lang.Long id) throws ServiceException, AccessException, java.util.concurrent.ExecutionException, ServerException, java.lang.InterruptedException
Deletes a file from OMERO- Parameters:
id
- ID of the file to delete.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.ServerException
- Server error.java.lang.InterruptedException
- If block(long) does not return.
-
delete
default void delete(java.util.Collection<? extends RemoteObject> objects) throws ServiceException, AccessException, java.util.concurrent.ExecutionException, ServerException, java.lang.InterruptedException
Deletes multiple objects from OMERO.- Parameters:
objects
- The OMERO object.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.ServerException
- Server error.java.lang.InterruptedException
- If block(long) does not return.
-
delete
default void delete(RemoteObject object) throws ServiceException, AccessException, java.util.concurrent.ExecutionException, ServerException, java.lang.InterruptedException
Deletes an object from OMERO.Make sure a folder is loaded before deleting it.
- Parameters:
object
- The OMERO object.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.ServerException
- Server error.java.lang.InterruptedException
- If block(long) does not return.
-
delete
default void delete(Table table) throws ServiceException, AccessException, java.util.concurrent.ExecutionException, ServerException, java.lang.InterruptedException
Deletes a table from OMERO.- Parameters:
table
- Table to delete.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.java.lang.IllegalArgumentException
- ID not defined.ServerException
- Server error.java.lang.InterruptedException
- If block(long) does not return.
-
-