AnsweredAssumed Answered

How can I get the personService?

Question asked by sail on Feb 10, 2006
Latest reply on Feb 11, 2006 by sail
How can I get the personService??

It seems that the personService was not accessible from the ServiceRegistry.

I want to get a Person's homeSpaceRef after authenticate. I think the following code should fulfil my purpose:

        AuthenticationService authenticationService = serviceRegistry.getAuthenticationService();
        authenticationService.authenticate("admin", "admin".toCharArray());

        NodeRef homeSpaceRef = (NodeRef) nodeService.getProperty(personService.getPerson("admin"), ContentModel.PROP_HOMEFOLDER);

but I don't know how to get the personService.
Thank you in adv.

Outcomes