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 given SecurityContext.
    • Method Detail

      • getDMFacility

        DataManagerFacility getDMFacility()
                                   throws java.util.concurrent.ExecutionException
        Gets the DataManagerFacility 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 the ROIFacility 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 the TablesFacility 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.