Class DefaultContactProvider
java.lang.Object
org.exoplatform.forum.common.user.DefaultContactProvider
- All Implemented Interfaces:
ContactProvider
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultContactProvider(org.exoplatform.services.organization.OrganizationService orgService) -
Method Summary
Modifier and TypeMethodDescriptiongetCommonContact(String userId) Retrieve the forum contact information from user and user profile.
email address is taken from the userUser.getEmail()mobile, city and country from theUserProfile.HOME_INFO_KEYSphone is taken from theUserProfile.BUSINESE_INFO_KEYS
-
Constructor Details
-
DefaultContactProvider
public DefaultContactProvider(org.exoplatform.services.organization.OrganizationService orgService)
-
-
Method Details
-
getCommonContact
Retrieve the forum contact information from user and user profile.
- email address is taken from the user
User.getEmail() - mobile, city and country from the
UserProfile.HOME_INFO_KEYS - phone is taken from the
UserProfile.BUSINESE_INFO_KEYS
- Specified by:
getCommonContactin interfaceContactProvider
- email address is taken from the user
-