Interface SupportsCopy

  • All Known Subinterfaces:
    CopyService, HtmlEditorService

    public interface SupportsCopy
    Describes a service that supports the copy operation.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path, String newName, String comment)
      Copies a file or directory to the same parent directory, with a new name.
      org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)
      Copies a file or directory to a specific target directory, with a new name.
    • Method Detail

      • copy

        org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path,
                                           String newName,
                                           String comment)
        Copies a file or directory to the same parent directory, with a new name.
        Parameters:
        path - Original file or directory
        newName - Name of the new file or directory
        comment - Comment for the copy operation
        Returns:
        The path to the new file.
      • copy

        org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path,
                                           String newName,
                                           org.uberfire.backend.vfs.Path targetDirectory,
                                           String comment)
        Copies a file or directory to a specific target directory, with a new name.
        Parameters:
        path - Original file or directory
        newName - Name of the new file or directory
        targetDirectory - Directory in which the new file will be written
        comment - Comment for the copy operation
        Returns:
        The path to the new file.