public interface RenameService extends SupportsRename
Modifier and Type | Method and Description |
---|---|
boolean |
hasRestriction(Path path)
Verifies if a path can be renamed.
|
void |
renameIfExists(Collection<Path> paths,
String newName,
String comment)
Renames (in batch) the paths passed in , if they exist.
|
rename
void renameIfExists(Collection<Path> paths, String newName, String comment)
paths
- Paths that will be renamed.newName
- Path's new name.comment
- Comment about the renaming.boolean hasRestriction(Path path)
path
- Path to be verified.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.