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 StringIMS key.static final StringPHONES key.static final StringURLS key.static final StringCOUNTRY.static final Stringprofile of a deleted userstatic final StringDEPARTMENT.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 StringTimeZone key.static final StringTimeZone DayLight savings key.static final StringDeprecated.static final Stringurl postfixstatic 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.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 StringGets Phonesfinal 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.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) 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
gender key.- See Also:
-
MALE
- See Also:
-
FEMALE
- See Also:
-
USERNAME
username key.- See Also:
-
FIRST_NAME
firstname key.- See Also:
-
LAST_NAME
lastname key.- See Also:
-
FULL_NAME
lastname key.- See Also:
-
EMAIL
email key.- See Also:
-
ABOUT_ME
About me key.- See Also:
-
TIME_ZONE
TimeZone key.- See Also:
-
TIME_ZONE_DST_SAVINGS
TimeZone DayLight savings key.- See Also:
-
DELETED
profile of a deleted user- See Also:
-
AVATAR
property of typeAvatarAttachmentthat contains the avatar- See Also:
-
BANNER
- See Also:
-
EXPERIENCES
EXPERIENCE.- See Also:
-
EXPERIENCES_ID
ID.- See Also:
-
EXPERIENCES_COMPANY
COMPANY.- See Also:
-
EXPERIENCES_POSITION
POSITION.- See Also:
-
EXPERIENCES_SKILLS
POSITION.- See Also:
-
EXPERIENCES_START_DATE
START DATE OF EXPERIENCE.- See Also:
-
EXPERIENCES_END_DATE
END DATE OF EXPERIENCE.- See Also:
-
EXPERIENCES_IS_CURRENT
CURRENT OR PAST EXPERIENCE.- See Also:
-
EXPERIENCES_DESCRIPTION
DESCRIPTION OF EXPERIENCE.- See Also:
-
POSITION
POSITION.- See Also:
-
COMPANY
COMPANY.- See Also:
-
LOCATION
LOCATION.- See Also:
-
DEPARTMENT
DEPARTMENT.- See Also:
-
TEAM
TEAM.- See Also:
-
PROFESSION
PROFESSION.- See Also:
-
COUNTRY
COUNTRY.- See Also:
-
CITY
CITY.- See Also:
-
EXTERNAL
EXTERNAL.- See Also:
-
ENROLLMENT_DATE
ENROLLMENT DATE.- See Also:
-
SYNCHRONIZED_DATE
SYNCHRONIZED DATE.- See Also:
-
LAST_LOGIN_TIME
LAST LOGIN TIME.- See Also:
-
URL
Deprecated.An optional url for this profile- See Also:
-
CONTACT_PHONES
PHONES key.- See Also:
-
CONTACT_IMS
IMS key.- See Also:
-
CONTACT_URLS
URLS key.- See Also:
-
URL_POSTFIX
url postfix- See Also:
-
RESIZED_SUBFIX
Resized subfix- See Also:
-
-
Constructor Details
-
Profile
public Profile() -
Profile
Instantiates a new profile.- Parameters:
identity- the identity
-
-
Method Details
-
getIdentity
Gets the identity.- Returns:
- the identity
-
setIdentity
Sets the identity.- Parameters:
identity- the identity
-
getId
Gets the id.- Returns:
- the id
-
setId
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:
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
Gets the property.- Parameters:
name- the name- Returns:
- the property
-
setProperty
Sets the property.- Parameters:
name- the namevalue- the value
-
contains
Contains.- Parameters:
name- the name- Returns:
- true, if successful
-
getProperties
Gets the properties.- Returns:
- the properties
-
removeProperty
Removes the property.- Parameters:
name- the name
-
getPropertyValue
Deprecated.usegetProperty(String). Will be removed at 1.3.xGets the property value.- Parameters:
name- the name- Returns:
- the property value
-
getFullName
Gets the full name.- Returns:
- the full name
-
getSynchronizedDate
Get this profile synchronized date- Returns:
- this profile synchronized date
-
setSynchronizedDate
Set this profile synchronized date -
getUrl
Get this profile URL- Returns:
- this profile URL
-
setUrl
Set this profile URL -
getEmail
Gets email address of this profile.- Returns:
- email in String format
-
addOrModifyProperties
Add or modify properties of the profile- Parameters:
props-
-
getAvatarImageSource
Deprecated.usegetAvatarUrl(). Will be removed at 1.3.xGets avatar url- Returns:
- avatar image source
-
getAvatarUrl
Gets avatar url- Returns:
- avatar image source
- Since:
- 1.2.0-GA
-
setAvatarUrl
Sets avatar url- Since:
- 1.2.0-GA
-
getBannerUrl
Gets avatar url- Returns:
- avatar image source
- Since:
- 1.2.0-GA
-
setBannerUrl
Sets avatar url- Since:
- 1.2.0-GA
-
getPosition
Gets position- Returns:
- position
- Since:
- 1.2.0-GA
-
getCompany
-
getLocation
-
getDepartment
-
getTeam
-
getProfession
-
getCountry
-
getCity
-
getAboutMe
-
setAboutMe
-
getTimeZone
-
setTimeZone
-
getTimeZoneDSTSavings
-
setTimeZoneDSTSavings
-
getGender
Gets gender- Returns:
- gender of user
- Since:
- 4.0.0.Alpha1
-
getPhones
Gets Phones- Returns:
- list of user's number phone
- Since:
- 4.0.0.Alpha1
-
getCreatedTime
public long getCreatedTime() -
setCreatedTime
-
toString
-
getListUpdateTypes
-
setListUpdateTypes
-
getAvatarLastUpdated
Gets the last updated time in milliseconds of avatar in a profile- Returns:
Void
-
setAvatarLastUpdated
Sets the last updated time in milliseconds of avatar in a profile- Parameters:
avatarLastUpdated-
-
getBannerLastUpdated
-
setBannerLastUpdated
-
hasAvatar
-
getAvatarUrl().