Hi Chris,
I need to get an instance of the MgnlUserManager to get an user object
to know infos about a specified user.
For example if I want to get an user email I do this (the user is not
the user loged in magnolia):
MgnlUserManager userManager = new MgnlUserManager();
MgnlUser actualUser=(MgnlUser)userManager.getUser("userName");
actualUser.getEmail();
I think that's not the good way to do it but I don't know if it already
exists a singleton that provides me that manager. Regarding your
preceding post, it already exists.
Thanks,
CAPITAINE Harold
Chris Miner a écrit :
Hi Harold,
You can probably get what you are looking for from the class
info.magnolia.cms.security.Security
Its method getUserManager() returns an instance of a class that implements the
UserManager interface. MgnlUserManager implements that interface and is
meant to be replaceable. So try this method and see if it provides you a
user manager. BTW, what do you need a user manager instance for?
Cheers,
Chris
Am Donnerstag, 28. September 2006 11:53 schrieb Harold CAPITAINE:
Hi all,
I'd like to know why there is a comment attached to the MgnlUserManager
constructor that says:"Don't instanciate it"
Does it means that to get a MgnlUserManager, I've to use another method
like ClassX.getUserManager or something like that.
Thanks in advance,
CAPITAINE Harold
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------