Class RepositoryObjectWrapper<T extends DataObject>

    • Constructor Detail

      • RepositoryObjectWrapper

        protected RepositoryObjectWrapper​(T o)
        Constructor of the class RepositoryObjectWrapper.
        Parameters:
        o - The DataObject to wrap in the RepositoryObjectWrapper.
    • Method Detail

      • importImages

        protected static boolean importImages​(ConnectionHandler client,
                                              DataObject target,
                                              java.lang.String... paths)
                                       throws ServiceException,
                                              ServerException,
                                              java.io.IOException
        Imports all images candidates in the paths to the target in OMERO.
        Parameters:
        client - The client handling the connection.
        target - The import target.
        paths - Paths to the image files on the computer.
        Returns:
        If the import did not exit because of an error.
        Throws:
        ServiceException - Cannot connect to OMERO.
        ServerException - Server error.
        java.io.IOException - Cannot read file.
      • importImage

        protected static java.util.List<java.lang.Long> importImage​(ConnectionHandler client,
                                                                    DataObject target,
                                                                    java.lang.String path)
                                                             throws ServiceException,
                                                                    ServerException
        Imports one image file to the target in OMERO.
        Parameters:
        client - The client handling the connection.
        target - The import target.
        path - Path to the image file on the computer.
        Returns:
        The list of IDs of the newly imported images.
        Throws:
        ServiceException - Cannot connect to OMERO.
        ServerException - Server error.