java.lang.Object
org.exoplatform.social.core.identity.model.Profile

public class Profile extends Object
The Class Profile.
  • Field Details

  • Constructor Details

    • Profile

      public Profile()
    • Profile

      public Profile(Identity identity)
      Instantiates a new profile.
      Parameters:
      identity - the identity
  • Method Details

    • getIdentity

      public final Identity getIdentity()
      Gets the identity.
      Returns:
      the identity
    • setIdentity

      public final void setIdentity(Identity identity)
      Sets the identity.
      Parameters:
      identity - the identity
    • getId

      public final String getId()
      Gets the id.
      Returns:
      the id
    • setId

      public final void setId(String id)
      Sets the id.
      Parameters:
      id - the new id
    • getLastLoaded

      public final long getLastLoaded()
      Gets the last loaded time.
      Returns:
      the last loaded time
    • setLastLoaded

      public final void setLastLoaded(long lastLoaded)
      Sets the last loaded time.
      Parameters:
      lastLoaded - the new last loaded time
    • hasChanged

      public final boolean hasChanged()
      Indicates whether or not the profile has been modified locally.
      Returns:
      true if it has been modified locally, false otherwise.
    • clearHasChanged

      public final void clearHasChanged()
      Clear the has changed flag.
    • getUpdateType

      public Profile.UpdateType getUpdateType()
      Gets type of update.
      Returns:
      the updated type for a profile
      Since:
      1.2.0-GA
    • getAttachedActivityType

      public Profile.AttachedActivityType getAttachedActivityType()
    • setAttachedActivityType

      public void setAttachedActivityType(Profile.AttachedActivityType attachedActivityType)
    • setUpdateType

      protected void setUpdateType(String updateType)
      Sets type of update.
      Parameters:
      updateType -
      Since:
      1.2.0-GA
    • getProperty

      public final Object getProperty(String name)
      Gets the property.
      Parameters:
      name - the name
      Returns:
      the property
    • setProperty

      public final void setProperty(String name, Object value)
      Sets the property.
      Parameters:
      name - the name
      value - the value
    • contains

      public final boolean contains(String name)
      Contains.
      Parameters:
      name - the name
      Returns:
      true, if successful
    • getProperties

      public final Map<String,Object> getProperties()
      Gets the properties.
      Returns:
      the properties
    • removeProperty

      public final void removeProperty(String name)
      Removes the property.
      Parameters:
      name - the name
    • getPropertyValue

      public final Object getPropertyValue(String name)
      Deprecated.
      use getProperty(String). Will be removed at 1.3.x
      Gets the property value.
      Parameters:
      name - the name
      Returns:
      the property value
    • getFullName

      public final String getFullName()
      Gets the full name.
      Returns:
      the full name
    • getSynchronizedDate

      public String getSynchronizedDate()
      Get this profile synchronized date
      Returns:
      this profile synchronized date
    • setSynchronizedDate

      public void setSynchronizedDate(String synchronizedDate)
      Set this profile synchronized date
    • getUrl

      public final String getUrl()
      Get this profile URL
      Returns:
      this profile URL
    • setUrl

      public void setUrl(String url)
      Set this profile URL
    • getEmail

      public final String getEmail()
      Gets email address of this profile.
      Returns:
      email in String format
    • addOrModifyProperties

      public final void addOrModifyProperties(Map<String,Object> props)
      Add or modify properties of the profile
      Parameters:
      props -
    • getAvatarImageSource

      @Deprecated public final String getAvatarImageSource()
      Deprecated.
      use getAvatarUrl(). Will be removed at 1.3.x
      Gets avatar url
      Returns:
      avatar image source
    • getAvatarUrl

      public final String getAvatarUrl()
      Gets avatar url
      Returns:
      avatar image source
      Since:
      1.2.0-GA
    • setAvatarUrl

      public void setAvatarUrl(String avatarUrl)
      Sets avatar url
      Since:
      1.2.0-GA
    • getBannerUrl

      public final String getBannerUrl()
      Gets avatar url
      Returns:
      avatar image source
      Since:
      1.2.0-GA
    • setBannerUrl

      public void setBannerUrl(String bannerUrl)
      Sets avatar url
      Since:
      1.2.0-GA
    • getPosition

      public final String getPosition()
      Gets position
      Returns:
      position
      Since:
      1.2.0-GA
    • getCompany

      public final String getCompany()
    • getLocation

      public final String getLocation()
    • getDepartment

      public final String getDepartment()
    • getTeam

      public final String getTeam()
    • getProfession

      public final String getProfession()
    • getCountry

      public final String getCountry()
    • getCity

      public final String getCity()
    • getAboutMe

      public String getAboutMe()
    • setAboutMe

      public void setAboutMe(String aboutMe)
    • getTimeZone

      public String getTimeZone()
    • setTimeZone

      public void setTimeZone(String timeZone)
    • getTimeZoneDSTSavings

      public Integer getTimeZoneDSTSavings()
    • setTimeZoneDSTSavings

      public void setTimeZoneDSTSavings(Object timeZoneDayLightSaving)
    • getGender

      public final String getGender()
      Gets gender
      Returns:
      gender of user
      Since:
      4.0.0.Alpha1
    • getPhones

      public final List<Map<String,String>> getPhones()
      Gets Phones
      Returns:
      list of user's number phone
      Since:
      4.0.0.Alpha1
    • getCreatedTime

      public long getCreatedTime()
    • setCreatedTime

      public void setCreatedTime(Long createdTime)
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • getListUpdateTypes

      public List<Profile.UpdateType> getListUpdateTypes()
    • setListUpdateTypes

      public void setListUpdateTypes(List<Profile.UpdateType> listUpdateTypes)
    • getAvatarLastUpdated

      public Long getAvatarLastUpdated()
      Gets the last updated time in milliseconds of avatar in a profile
      Returns:
      Void
    • setAvatarLastUpdated

      public void setAvatarLastUpdated(Long avatarLastUpdated)
      Sets the last updated time in milliseconds of avatar in a profile
      Parameters:
      avatarLastUpdated -
    • getBannerLastUpdated

      public Long getBannerLastUpdated()
    • setBannerLastUpdated

      public void setBannerLastUpdated(Long bannerLastUpdated)
    • hasAvatar

      public Boolean hasAvatar()