Interface CopyService
-
- All Superinterfaces:
SupportsCopy
public interface CopyService extends SupportsCopy
Responsible for paths copy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcopyIfExists(Collection<org.uberfire.backend.vfs.Path> paths, String newName, String comment)Copies (in batch) the paths passed in {@param paths}, if they exist.booleanhasRestriction(org.uberfire.backend.vfs.Path path)Verifies if a path can be copied.-
Methods inherited from interface org.uberfire.ext.editor.commons.service.support.SupportsCopy
copy, copy
-
-
-
-
Method Detail
-
copyIfExists
void copyIfExists(Collection<org.uberfire.backend.vfs.Path> paths, String newName, String comment)
Copies (in batch) the paths passed in {@param paths}, if they exist.- Parameters:
paths- Paths that will be removed.newName- New path's name.comment- Comment about the renaming.
-
hasRestriction
boolean hasRestriction(org.uberfire.backend.vfs.Path path)
Verifies if a path can be copied.- Parameters:
path- Path to be verified.- Returns:
- true if there is a restriction and the path cannot be copied, and false otherwise.
-
-