Interface RenameService
-
- All Superinterfaces:
SupportsRename
public interface RenameService extends SupportsRename
Responsible for paths renaming.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasRestriction(org.uberfire.backend.vfs.Path path)Verifies if a path can be renamed.voidrenameIfExists(Collection<org.uberfire.backend.vfs.Path> paths, String newName, String comment)Renames (in batch) the paths passed in {@param paths}, if they exist.-
Methods inherited from interface org.uberfire.ext.editor.commons.service.support.SupportsRename
rename
-
-
-
-
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.
-
-