Interface DeleteService
-
- All Superinterfaces:
SupportsDelete
public interface DeleteService extends SupportsDelete
Responsible for paths removal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteIfExists(Collection<org.uberfire.backend.vfs.Path> paths, String comment)Deletes (in batch) the paths passed in {@param paths}, if they exist.booleanhasRestriction(org.uberfire.backend.vfs.Path path)Verifies if a path can be deleted.-
Methods inherited from interface org.uberfire.ext.editor.commons.service.support.SupportsDelete
delete
-
-
-
-
Method Detail
-
deleteIfExists
void deleteIfExists(Collection<org.uberfire.backend.vfs.Path> paths, String comment)
Deletes (in batch) the paths passed in {@param paths}, if they exist.- Parameters:
paths- Paths that will be removed.
-
hasRestriction
boolean hasRestriction(org.uberfire.backend.vfs.Path path)
Verifies if a path can be deleted.- Parameters:
path- Path to be verified.- Returns:
- true if there is a restriction and the path cannot be deleted, and false otherwise.
-
-