Subject: Grouper Developers Forum
- From: Chris Hyzer <>
- To: Gagné Sébastien <>, "" <>
- Subject: [grouper-dev] RE: Recursive Stem deletion
- Date: Tue, 24 Jul 2012 17:20:25 +0000
- Accept-language: en-US
From GSH or API you can call stem.obliterate() in 2.0.2+
Its not exposed over WS which we could if people need that. It isn’t all that convenient so that people don’t accidentally do bad things… J
I was wondering if there was an easy way to delete a stem with children under it and delete the child objects too ? From what I see in Stem.delete() there’s a validation to prevent deleting a Stem with childs (groups or stem), why is that ? Is it because you couldn’t validate that the session/user had the necessary rights to delete all the child objects?
I can create a little bit of code that would do the recursive find and delete using a RootSession for our tests, but I was wondering why it wasn’t included in the Stem class directly ?
Our current use case is easy cleaning of tests and temp data, but maybe in the future it could be useful for other tasks.
Sébastien Gagné, | Analyste en informatique
514-343-6111 x33844 | Université de Montréal,
| Pavillon Roger-Gaudry, local X-100-11
- [grouper-dev] Recursive Stem deletion, Gagné Sébastien, 07/24/2012
- [grouper-dev] RE: Recursive Stem deletion, Chris Hyzer, 07/24/2012
Archive powered by MHonArc 2.6.16.