Interface RenameService

    • Method Detail

      • renameIfExists

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

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