Interface Project

    • Method Detail

      • setName

        void setName​(java.lang.String name)
        Sets the name of the project.
        Parameters:
        name - The name of the project. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the name is null.
      • setDescription

        void setDescription​(java.lang.String description)
        Sets the description of the project.
        Parameters:
        description - The description of the project.
      • getProjects

        default java.util.List<Project> getProjects​(Browser browser)
                                             throws AccessException,
                                                    ServiceException,
                                                    java.util.concurrent.ExecutionException
        Reloads and returns this project as a singleton list.
        Specified by:
        getProjects in interface ContainerLinked
        Parameters:
        browser - The data browser.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getDatasets

        default java.util.List<Dataset> getDatasets​(Browser browser)
                                             throws AccessException,
                                                    ServiceException,
                                                    java.util.concurrent.ExecutionException
        Reloads this project and retrieves the updated list of datasets contained in this project.
        Specified by:
        getDatasets in interface ContainerLinked
        Parameters:
        browser - The data browser.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getDatasets

        java.util.List<Dataset> getDatasets()
        Gets all the datasets in the project available from OMERO.
        Returns:
        Collection of Dataset.
      • getDatasets

        default java.util.List<Dataset> getDatasets​(java.lang.String name)
        Gets the dataset with the specified name from OMERO
        Parameters:
        name - Name of the dataset searched.
        Returns:
        List of dataset with the given name.
      • addDataset

        Dataset addDataset​(Client client,
                           java.lang.String name,
                           java.lang.String description)
                    throws ServiceException,
                           AccessException,
                           java.util.concurrent.ExecutionException
        Adds a dataset to the project in OMERO. Create the dataset.
        Parameters:
        client - The client handling the connection.
        name - Dataset name.
        description - Dataset description.
        Returns:
        The object saved in OMERO.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • addDataset

        default Dataset addDataset​(Client client,
                                   Dataset dataset)
                            throws ServiceException,
                                   AccessException,
                                   java.util.concurrent.ExecutionException
        Adds a dataset to the project in OMERO.
        Parameters:
        client - The client handling the connection.
        dataset - Dataset to be added.
        Returns:
        The object saved in OMERO.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • removeDataset

        void removeDataset​(Client client,
                           Dataset dataset)
                    throws ServiceException,
                           AccessException,
                           java.util.concurrent.ExecutionException,
                           ServerException,
                           java.lang.InterruptedException
        Removes a dataset from the project in OMERO.
        Parameters:
        client - The client handling the connection.
        dataset - Dataset to remove.
        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.
      • getImages

        java.util.List<Image> getImages​(Browser browser)
                                 throws ServiceException,
                                        AccessException,
                                        java.util.concurrent.ExecutionException
        Gets all images in the project available from OMERO.
        Specified by:
        getImages in interface ImageLinked
        Parameters:
        browser - The data browser.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getImages

        default java.util.List<Image> getImages​(Browser browser,
                                                java.lang.String name)
                                         throws ServiceException,
                                                AccessException,
                                                java.util.concurrent.ExecutionException
        Gets all images in the project with a certain name from OMERO.
        Parameters:
        browser - The data browser.
        name - Name searched.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getImages

        default java.util.List<Image> getImages​(Browser browser,
                                                java.lang.String datasetName,
                                                java.lang.String imageName)
                                         throws ServiceException,
                                                AccessException,
                                                java.util.concurrent.ExecutionException
        Gets all images with a certain name from datasets with the specified name inside this project on OMERO.
        Parameters:
        browser - The data browser.
        datasetName - Expected dataset name.
        imageName - Expected image name.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getImagesLike

        default java.util.List<Image> getImagesLike​(Browser browser,
                                                    java.lang.String motif)
                                             throws ServiceException,
                                                    AccessException,
                                                    java.util.concurrent.ExecutionException
        Gets all images in the project with a certain motif in their name from OMERO.
        Parameters:
        browser - The data browser.
        motif - Motif searched in an image name.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getImagesTagged

        default java.util.List<Image> getImagesTagged​(Browser browser,
                                                      TagAnnotation tag)
                                               throws ServiceException,
                                                      AccessException,
                                                      ServerException,
                                                      java.util.concurrent.ExecutionException
        Gets all images in the project tagged with a specified tag from OMERO.
        Parameters:
        browser - The data browser.
        tag - TagAnnotation containing the tag researched.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        ServerException - Server error.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getImagesTagged

        default java.util.List<Image> getImagesTagged​(Browser browser,
                                                      java.lang.Long tagId)
                                               throws ServiceException,
                                                      AccessException,
                                                      ServerException,
                                                      java.util.concurrent.ExecutionException
        Gets all images in the project tagged with a specified tag from OMERO.
        Parameters:
        browser - The data browser.
        tagId - Id of the tag researched.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        ServerException - Server error.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getImagesWithKey

        default java.util.List<Image> getImagesWithKey​(Browser browser,
                                                       java.lang.String key)
                                                throws ServiceException,
                                                       AccessException,
                                                       java.util.concurrent.ExecutionException
        Gets all images in the project with a certain key
        Parameters:
        browser - The data browser.
        key - Name of the key researched.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • getImagesWithKeyValuePair

        default java.util.List<Image> getImagesWithKeyValuePair​(Browser browser,
                                                                java.lang.String key,
                                                                java.lang.String value)
                                                         throws ServiceException,
                                                                AccessException,
                                                                java.util.concurrent.ExecutionException
        Gets all images in the project with a certain key value pair from OMERO.
        Parameters:
        browser - The data browser.
        key - Name of the key researched.
        value - Value associated with the key.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.
      • reload

        void reload​(Browser browser)
             throws ServiceException,
                    AccessException,
                    java.util.concurrent.ExecutionException
        Reloads the project from OMERO.
        Parameters:
        browser - The data browser.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.