Interface CopyService

    • Method Detail

      • copyIfExists

        void copyIfExists​(Collection<org.uberfire.backend.vfs.Path> paths,
                          String newName,
                          String comment)
        Copies (in batch) the paths passed in {@param paths}, if they exist.
        Parameters:
        paths - Paths that will be removed.
        newName - New path's name.
        comment - Comment about the renaming.
      • hasRestriction

        boolean hasRestriction​(org.uberfire.backend.vfs.Path path)
        Verifies if a path can be copied.
        Parameters:
        path - Path to be verified.
        Returns:
        true if there is a restriction and the path cannot be copied, and false otherwise.