Class Profile
java.lang.Object
org.exoplatform.social.core.identity.model.Profile
The Class Profile.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumTypes of updating of profile. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAbout me key.static final Stringproperty of typeAvatarAttachmentthat contains the avatarstatic final Stringstatic final StringCITY.static final StringCOMPANY.static final StringURLS key.static final StringCOUNTRY.static final Stringprofile of a deleted userstatic final StringDEPARTMENT.static final StringDISPLAYED PHONE PROFILE PROPERTY.static final StringDISPLAYED EMAIL PROFILE PROPERTY.static final Stringemail key.static final StringENROLLMENT DATE.static final StringEXPERIENCE.static final StringCOMPANY.static final StringDESCRIPTION OF EXPERIENCE.static final StringEND DATE OF EXPERIENCE.static final StringID.static final StringCURRENT OR PAST EXPERIENCE.static final StringPOSITION.static final StringPOSITION.static final StringSTART DATE OF EXPERIENCE.static final StringEXTERNAL.static final Stringstatic final Stringfirstname key.static final Stringlastname key.static final Stringgender key.static final StringLAST LOGIN TIME.static final Stringlastname key.static final StringLOCATION.static final Stringstatic final StringPOSITION.static final StringPROFESSION.static final StringResized subfixstatic final StringSYNCHRONIZED DATE.static final StringTEAM.static final StringDeprecated.static final StringTimeZone DayLight savings key.static final StringDeprecated.static final Stringurl postfixstatic final StringThe organization profile attribute holding the timezone the browser of the user lives in, for example Europe/Paris.static final Stringusername key. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddOrModifyProperties(Map<String, Object> props) Add or modify properties of the profilefinal voidClear the has changed flag.final booleanContains.final StringDeprecated.usegetAvatarUrl().Gets the last updated time in milliseconds of avatar in a profilefinal StringGets avatar urlfinal StringGets avatar urlfinal StringgetCity()final Stringfinal Stringlongfinal Stringfinal StringgetEmail()Gets email address of this profile.final StringGets the full name.final StringGets genderfinal StringgetId()Gets the id.final IdentityGets the identity.final longGets the last loaded time.final Stringfinal StringGets positionfinal StringGets the properties.final ObjectgetProperty(String name) Gets the property.final ObjectgetPropertyValue(String name) Deprecated.usegetProperty(String).Get this profile synchronized datefinal StringgetTeam()Gets type of update.final StringgetUrl()Get this profile URLfinal booleanIndicates whether or not the profile has been modified locally.booleanIndicates wif the profile avatar is default or not.final voidremoveProperty(String name) Removes the property.voidsetAboutMe(String aboutMe) voidsetAttachedActivityType(Profile.AttachedActivityType attachedActivityType) voidsetAvatarLastUpdated(Long avatarLastUpdated) Sets the last updated time in milliseconds of avatar in a profilevoidsetAvatarUrl(String avatarUrl) Sets avatar urlvoidsetBannerLastUpdated(Long bannerLastUpdated) voidsetBannerUrl(String bannerUrl) Sets avatar urlvoidsetCreatedTime(Long createdTime) voidsetDefaultAvatar(boolean defaultAvatar) Sets the value of the property isDefaultAvatar.final voidSets the id.final voidsetIdentity(Identity identity) Sets the identity.final voidsetLastLoaded(long lastLoaded) Sets the last loaded time.voidsetListUpdateTypes(List<Profile.UpdateType> listUpdateTypes) final voidsetProperty(String name, Object value) Sets the property.voidsetSynchronizedDate(String synchronizedDate) Set this profile synchronized datevoidsetTimeZone(String timeZone) voidsetTimeZoneDSTSavings(Object timeZoneDayLightSaving) protected voidsetUpdateType(String updateType) Sets type of update.voidSet this profile URLfinal StringtoString()
-
Field Details
-
GENDER
-
MALE
- See Also:
-
FEMALE
- See Also:
-
USERNAME
-
FIRST_NAME
-
LAST_NAME
-
FULL_NAME
-
EMAIL
-
ABOUT_ME
-
TIME_ZONE
Deprecated.since 7.3.0, not for removal: the timezone of the user isUSER_TIME_ZONE, kept up to date by the platform timezone synchronization; this key stays for the CSV import and its readers, which nothing has written since the sync moved toUSER_TIME_ZONETimeZone key of the legacy profile property, still written by the CSV users import and read throughgetTimeZone().- See Also:
-
USER_TIME_ZONE
The organization profile attribute holding the timezone the browser of the user lives in, for example Europe/Paris. It is the source of truth for everything sent to the user on a schedule, kept up to date on every page load by the platform timezone synchronization.- See Also:
-
TIME_ZONE_DST_SAVINGS
-
DELETED
-
AVATAR
property of typeAvatarAttachmentthat contains the avatar- See Also:
-
BANNER
- See Also:
-
EXPERIENCES
-
EXPERIENCES_ID
-
EXPERIENCES_COMPANY
-
EXPERIENCES_POSITION
-
EXPERIENCES_SKILLS
-
EXPERIENCES_START_DATE
-
EXPERIENCES_END_DATE
-
EXPERIENCES_IS_CURRENT
-
EXPERIENCES_DESCRIPTION
-
POSITION
-
COMPANY
-
LOCATION
-
DEPARTMENT
-
TEAM
-
PROFESSION
-
COUNTRY
-
CITY
-
EXTERNAL
-
ENROLLMENT_DATE
-
SYNCHRONIZED_DATE
-
LAST_LOGIN_TIME
-
DISPLAYED_PHONE
-
DISPLAYED_EMAIL
-
URL
-
CONTACT_URLS
-
URL_POSTFIX
-
RESIZED_SUBFIX
-
-
Constructor Details
-
Profile
public Profile() -
Profile
-
-
Method Details
-
getIdentity
-
setIdentity
Sets the identity.- Parameters:
identity- the identity
-
getId
-
setId
-
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:
trueif it has been modified locally,falseotherwise.
-
clearHasChanged
public final void clearHasChanged()Clear the has changed flag. -
getUpdateType
Gets type of update.- Returns:
- the updated type for a profile
- Since:
- 1.2.0-GA
-
getAttachedActivityType
-
setAttachedActivityType
-
setUpdateType
Sets type of update.- Parameters:
updateType-- Since:
- 1.2.0-GA
-
getProperty
-
setProperty
-
contains
Contains.- Parameters:
name- the name- Returns:
- true, if successful
-
getProperties
-
removeProperty
-
getPropertyValue
Deprecated.usegetProperty(String). Will be removed at 1.3.xGets the property value.- Parameters:
name- the name- Returns:
- the property value
-
getFullName
-
getSynchronizedDate
Get this profile synchronized date- Returns:
- this profile synchronized date
-
setSynchronizedDate
Set this profile synchronized date -
getUrl
-
setUrl
Set this profile URL -
getEmail
-
addOrModifyProperties
-
getAvatarImageSource
Deprecated.usegetAvatarUrl(). Will be removed at 1.3.xGets avatar url- Returns:
- avatar image source
-
getAvatarUrl
-
setAvatarUrl
-
getBannerUrl
-
setBannerUrl
-
getPosition
-
getCompany
-
getLocation
-
getDepartment
-
getTeam
-
getProfession
-
getCountry
-
getCity
-
getAboutMe
-
setAboutMe
-
getTimeZone
-
setTimeZone
-
getTimeZoneDSTSavings
-
setTimeZoneDSTSavings
-
getGender
-
getCreatedTime
public long getCreatedTime() -
setCreatedTime
-
toString
-
getListUpdateTypes
-
setListUpdateTypes
-
getAvatarLastUpdated
-
setAvatarLastUpdated
Sets the last updated time in milliseconds of avatar in a profile- Parameters:
avatarLastUpdated-
-
isDefaultAvatar
public boolean isDefaultAvatar()Indicates wif the profile avatar is default or not.- Returns:
trueif it is default,falseotherwise.
-
setDefaultAvatar
public void setDefaultAvatar(boolean defaultAvatar) Sets the value of the property isDefaultAvatar.- Parameters:
defaultAvatar- the new defaultAvatar
-
getBannerLastUpdated
-
setBannerLastUpdated
-
hasAvatar
-
USER_TIME_ZONE, kept up to date by the platform timezone synchronization; this key stays for the CSV import and its readers, which nothing has written since the sync moved toUSER_TIME_ZONE