Interface Client

    • Method Detail

      • getBrowseFacility

        default BrowseFacility getBrowseFacility()
                                          throws java.util.concurrent.ExecutionException
        Gets the BrowseFacility used to access the data from OMERO.
        Specified by:
        getBrowseFacility in interface Browser
        Returns:
        See above.
        Throws:
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getMetadataFacility

        default MetadataFacility getMetadataFacility()
                                              throws java.util.concurrent.ExecutionException
        Gets the MetadataFacility used to retrieve annotations from OMERO.
        Specified by:
        getMetadataFacility in interface Browser
        Returns:
        See above.
        Throws:
        java.util.concurrent.ExecutionException - If the MetadataFacility can't be retrieved or instantiated.
      • getDMFacility

        default DataManagerFacility getDMFacility()
                                           throws java.util.concurrent.ExecutionException
        Gets the DataManagerFacility to handle/write data on OMERO. A
        Specified by:
        getDMFacility in interface DataManager
        Returns:
        See above.
        Throws:
        java.util.concurrent.ExecutionException - If the DataManagerFacility can't be retrieved or instantiated.
      • getRoiFacility

        default ROIFacility getRoiFacility()
                                    throws java.util.concurrent.ExecutionException
        Gets the ROIFacility used to manipulate ROIs from OMERO.
        Specified by:
        getRoiFacility in interface DataManager
        Returns:
        See above.
        Throws:
        java.util.concurrent.ExecutionException - If the ROIFacility can't be retrieved or instantiated.
      • getTablesFacility

        default TablesFacility getTablesFacility()
                                          throws java.util.concurrent.ExecutionException
        Gets the TablesFacility used to manipulate tables on OMERO.
        Specified by:
        getTablesFacility in interface DataManager
        Returns:
        See above.
        Throws:
        java.util.concurrent.ExecutionException - If the TablesFacility can't be retrieved or instantiated.
      • getAdminFacility

        default AdminFacility getAdminFacility()
                                        throws java.util.concurrent.ExecutionException
        Gets the AdminFacility to use admin specific function.
        Specified by:
        getAdminFacility in interface AdminManager
        Returns:
        See above.
        Throws:
        java.util.concurrent.ExecutionException - If the AdminFacility can't be retrieved or instantiated.
      • sudo

        Client sudo​(java.lang.String username)
             throws ServiceException,
                    AccessException,
                    java.util.concurrent.ExecutionException
        Gets the client associated with the username in the parameters. The user calling this function needs to have administrator rights. All action realized with the client returned will be considered as his.
        Specified by:
        sudo in interface ConnectionHandler
        Parameters:
        username - Username of user.
        Returns:
        The client corresponding to the new user.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
        java.util.NoSuchElementException - The requested user does not exist.