cancel
Showing results for 
Search instead for 
Did you mean: 

PersonService implementation confusion

ethanadams
Champ in-the-making
Champ in-the-making
I'm looking to write my own PersonService implementation to get Person information from a custom registration system.

Based on the comments in the PersonService.java (below), I thought this could be done without storing person properties in Alfresco.

This service encapsulates the management of people and groups.

People and groups may be managed entirely in the repository or entirely in some other implementation such as LDAP or via NTLM. Some properties may in the repository and some in another store. Individual properties may or may not be mutable.


However, Alfresco code asks the NodeService for Person properties, not the PersonService.

Example from InviteUsersWizard.java:
String from = (String)this.nodeService.getProperty(user.getPerson(), ContentModel.PROP_EMAIL);

Can anyone clarify this for me?
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

We do use people and expect them to be in the repository.
Some config hangs off it etc …. at the moment

The intention is to do the same with groups.

I think you should sync from your registration system to the repoitory, in the same way that we sync people and group information from LDAP.
Then leave these two services alone.

If your service handles requests from a lof of apps you are probably better of doing this in any case. It will also reduce the amount of repository external traffic.

Hope this helps

Andy