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,
                                              java.lang.String... paths)
                                       throws ServiceException,
                                              OMEROServerError,
                                              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.
        OMEROServerError - Server error.
        java.io.IOException - Cannot read file.
      • importImage

        protected static java.util.List<java.lang.Long> importImage​(GatewayWrapper client,
                                                                    DataObject target,
                                                                    java.lang.String path)
                                                             throws ServiceException,
                                                                    OMEROServerError
        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.
        OMEROServerError - Server error.
      • getName

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

        public abstract java.lang.String getDescription()
        Gets the object description
        Returns:
        See above.
      • copyAnnotationLinks

        public void copyAnnotationLinks​(Client client,
                                        GenericRepositoryObjectWrapper<?> object)
                                 throws AccessException,
                                        ServiceException,
                                        java.util.concurrent.ExecutionException
        Copies annotation links from some other object to this one.

        Kept for API compatibility purposes.

        Parameters:
        client - The client handling the connection.
        object - Other repository object to copy annotations from.
        Throws:
        ServiceException - Cannot connect to OMERO.
        AccessException - Cannot access data.
        java.util.concurrent.ExecutionException - A Facility can't be retrieved or instantiated.