Package fr.igred.omero.client
Interface DataManager
-
- All Known Subinterfaces:
Client
- All Known Implementing Classes:
GatewayWrapper
public interface DataManagerInterface 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 voiddelete(Table table)Deletes a table from OMERO.default voiddelete(RemoteObject object)Deletes an object from OMERO.default voiddelete(java.util.Collection<? extends RemoteObject> objects)Deletes multiple objects from OMERO.default voiddelete(java.util.List<IObject> objects)Deletes multiple objects from OMERO.default voiddelete(IObject object)Deletes an object from OMERO.default voiddeleteFile(java.lang.Long id)Deletes a file from OMEROSecurityContextgetCtx()Returns the currentSecurityContext.DataManagerFacilitygetDMFacility()Gets theDataManagerFacilityto handle/write data on OMERO.ROIFacilitygetRoiFacility()Gets theROIFacilityused to manipulate ROIs from OMERO.TablesFacilitygetTablesFacility()Gets theTablesFacilityused to manipulate tables on OMERO.default IObjectsave(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 theDataManagerFacilityto 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 theROIFacilityused 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 theTablesFacilityused 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.InterruptedExceptionDeletes 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.
-
-