Hi Richard Thanks for your help. I did already create a JIRA issue: http://jira.magnolia-cms.com/browse/MAGNOLIA-4806
Instead of writing a subclass I "circumvented" the problem with an ugly reflection hack for now. This way I don't have to reconfigure anything in Magnolia. Cheers, Will On 01.02.2013, at 14:38, Unger, Richard wrote: > Hello Will, > > AFAICT when the various user-manager classes were upgraded for Magnolia 4.5 > they forgot to implement a bunch of methods, including things like > GroupManager.deleteRole() and (apparently) UserManager.deleteUser() > > I think someone needs to open a bug in JIRA: complete migration of > SecurityManagers --> implement add/remove/delete for everything. > > In the meantime you can help yourself by subclassing the UserManager and > adding the delete method yourself... > > Regards, > > Richard > > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von Will Scheidegger > Gesendet: Mittwoch, 30. Jänner 2013 13:34 > An: Magnolia User List > Betreff: [magnolia-user] Deleting a user programmatically in 4.5? > > Dear Magnolians > > We need to delete Magnolia users programmatically. So far (4.4) on could get > the user node from the user with MgnlUser.getUserNode(). Now (in 4.5) this is > not only deprecated, but > > - throws an UnsupportedOperationException > - and the JavaDoc links to quite something different > > I checked MgnlUserManager and could not find anything. I also checked > RepositoryBackedSecurityManager and found a remove() method, but honestly did > not quite understand what this is doing. Judging by its parameters it looks > more like you could use this method to remove properties of the user. Again, > the JavaDoc is a bit confusing there (talking about "adding" and > "updating"...). > > Does anyone know the secrets behind this "simple" task? > > Thanks! > -will > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, > E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
