JBoss.orgCommunity Documentation
You can get the ContactProvider as follows:
public CommonContact getPersonalContact(String userId) throws Exception {
try {
if(userId.indexOf(Utils.DELETED) > 0) return new CommonContact();
ContactProvider provider = (ContactProvider) PortalContainer.getComponent(ContactProvider.class) ;
return provider.getCommonContact(userId);
} catch (Exception e) {
return new CommonContact();
}
}
In eXo Knowledge, when using ContactProvider, you can use one of two following classes: