Ok thanks, I saw "Don't Instanciate" as a comment in the Constructor
of MgnlUserManager
But I was too lazy to search where to get it from elsewhere :D
Regards,
Khalil
On 11/27/06, Harold CAPITAINE <[email protected]> wrote:
Hi Khalil,
I think that you could use Security.getUserManager();
It avoids you to instantiate a new userManager.
Regards.
CAPITAINE Harold
Khalil Slimi a écrit :
> Hi Anthony,
>
> Ok thanks, MgnlUserManager.getUser(String name) is exactly what I wanted,
> I will create the JIRA task for both group and role notification Emails.
>
> Regards,
>
> Khalil
>
>
> On 11/24/06, Anthony Ogier <[email protected]> wrote:
>> Could you create a JIRA task with your patch, so we could see clearer
>> what you did ?
>> And also, did you looked at MgnlUserManager.getUser(String name) ?
>> Or, MgnlUser user = (MgnlUser) MgnlContext.getUser();
>> (WorkflowUtil.java) I think that's exactly what you want.
>>
>> Anthony
>>
>> Khalil Slimi a écrit :
>> > Hi all,
>> >
>> > I wanted to send notifications mail to a role in my workflow (<set
>> > field="mailTo" value="role-publisher">) but it doesn't work. when I
>> > looked into the code I noticed that no code was handling that case. So
>> > I've patched that and it works perfectly. But the thing is, I've added
>> > a method [Collection getRoles(content userNode)] and I wanted to know
>> > if there is a way to instanciate Magnolia users (MgnlUser) directly
>> > from a user node in the JCR (things would become much easier).
>> >
>> >
>> > Thanks,
>> >
>> > Regards,
>> >
>> > Khalil
>> >
>> > ----------------------------------------------------------------
>> > 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
> ----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------