Interface SupportsCopy
-
- All Known Subinterfaces:
CopyService,HtmlEditorService
public interface SupportsCopyDescribes a service that supports the copy operation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.uberfire.backend.vfs.Pathcopy(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.Pathcopy(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 directorynewName- Name of the new file or directorycomment- 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 directorynewName- Name of the new file or directorytargetDirectory- Directory in which the new file will be writtencomment- Comment for the copy operation- Returns:
- The path to the new file.
-
-