Class DefaultContactProvider

java.lang.Object
org.exoplatform.forum.common.user.DefaultContactProvider
All Implemented Interfaces:
ContactProvider

public class DefaultContactProvider extends Object implements ContactProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultContactProvider(org.exoplatform.services.organization.OrganizationService orgService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultContactProvider

      public DefaultContactProvider(org.exoplatform.services.organization.OrganizationService orgService)
  • Method Details

    • getCommonContact

      public CommonContact getCommonContact(String userId)
      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:
      getCommonContact in interface ContactProvider