[Yanel-dev] Yarep delete method
Michael Wechner
michael.wechner at wyona.com
Fri Jul 20 15:09:03 CEST 2007
Hi
I have noticed that according to the API calling delete also is supposed
to delete all children resp. also non-empty collections
src/core/java/org/wyona/yarep/core/Node.java
/**
* Deletes this node and all subnodes.
* The root node cannot be deleted.
* @throws RepositoryException if this node is the root node or if a
repository error occurs.
*/
public void delete() throws RepositoryException;
Shouldn't we introduce something like
delete(boolean recursive)
which would allow to block the deletion of non-empty collections when
being set to delete(false)
?
This would corrspond to rm -r
WDYT?
Cheers
Michi
--
Michael Wechner
Wyona - Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61
More information about the Yanel-development
mailing list