Best approach for adding userprofile dataModel/schema properties to NuxeoPrincipalImpl

I have numerous custom multi-valued properties that are currently defined as part of my custom userprofile schema since the user schema does not conveniently support multi-valued properties. It would be ideal if I could make these properties universally available via NuxeoPrincipalImpl so that, for example, my custom Security Policy could access them. Would it make sense to augment NuxeoPrincipalImpl with an additional userprofile dataModel? Would it make sense to take this a step further and have the UserManager manage both the User directory entry as it does today and manage the UserProfile by serving as a facade to the UserProfileService?

Thanks in advance for your input.

1 votes

0 answers