Class GenericRepositoryObjectWrapper<T extends DataObject>

    • Constructor Detail

      • GenericRepositoryObjectWrapper

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

      • importImages

        protected static boolean importImages​(GatewayWrapper client,
                                              DataObject target,
                                              int threads,
                                              String... paths)
                                       throws ServiceException,
                                              OMEROServerError,
                                              IOException
        Imports all images candidates in the paths to the target in OMERO.
        Parameters:
        client - The client handling the connection.
        target - The import target.
        threads - The number of threads (same value used for filesets and uploads).
        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.
        OMEROServerError - Server error.
        IOException - Cannot read file.
      • getName

        public abstract String getName()
        Gets the object name.
        Returns:
        See above.
      • getDescription

        public abstract String getDescription()
        Gets the object description
        Returns:
        See above.