Interface ProfilePropertyService
public interface ProfilePropertyService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProfilePropertyPlugin(org.exoplatform.container.component.ComponentPlugin profilePropertyInitPlugin) createPropertySetting(ProfilePropertySetting profilePropertySetting) Creates a newProfilePropertySettingobjectvoidDeletes theProfilePropertySettingobject with given IdGets excluded analytics index propertiesGets excluded quick search propertiesgetHiddenProfilePropertyIds(long userIdentityId) Get hidden profile property IdsRetrieves the ProfileProperty item with givenProfilePropertySettingpropertyNameRetrieves the ProfileProperty item with givenProfilePropertySettingpropertyNameRetrive the list of allProfilePropertySettingobjectsRetrive the list of synchronizedProfilePropertySettingobjectsGets unhiddenable propertiesbooleanhasChildProperties(ProfilePropertySetting propertySetting) Checks if the current property has child propertiesvoidhidePropertySetting(long userIdentityId, long profilePropertyId) Hide profile property settingbooleanisDefaultProperties(ProfilePropertySetting propertySetting) Checks if the current property is a default propertiebooleanisGroupSynchronizedEnabledProperty(ProfilePropertySetting profilePropertySetting) Checks if the givenProfilePropertySettingobject can be synchronized with a groupbooleanisPropertySettingHiddenable(ProfilePropertySetting propertySetting) Checks if property is hiddenablevoidshowPropertySetting(long userIdentityId, long profilePropertyId) Show profile property settingvoidupdatePropertySetting(ProfilePropertySetting profilePropertySetting) Updates the givenProfilePropertySettingobject
-
Field Details
-
LABELS_OBJECT_TYPE
- See Also:
-
-
Method Details
-
getPropertySettings
List<ProfilePropertySetting> getPropertySettings()Retrive the list of allProfilePropertySettingobjects- Returns:
ListofProfilePropertySetting
-
getSynchronizedPropertySettings
List<ProfilePropertySetting> getSynchronizedPropertySettings()Retrive the list of synchronizedProfilePropertySettingobjects- Returns:
ListofProfilePropertySetting
-
getProfileSettingById
Retrieves the ProfileProperty item with givenProfilePropertySettingpropertyName- Returns:
ProfilePropertySettingif exist or null if not
-
getProfileSettingByName
Retrieves the ProfileProperty item with givenProfilePropertySettingpropertyName- Returns:
ProfilePropertySettingif exist or null if not
-
createPropertySetting
ProfilePropertySetting createPropertySetting(ProfilePropertySetting profilePropertySetting) throws org.exoplatform.commons.ObjectAlreadyExistsException Creates a newProfilePropertySettingobject- Parameters:
profilePropertySetting-ProfilePropertySetting- Returns:
- newly created
ProfilePropertySetting - Throws:
org.exoplatform.commons.ObjectAlreadyExistsException
-
updatePropertySetting
Updates the givenProfilePropertySettingobject- Parameters:
profilePropertySetting-ProfilePropertySetting
-
deleteProfilePropertySetting
Deletes theProfilePropertySettingobject with given Id- Parameters:
id-Long
-
isGroupSynchronizedEnabledProperty
Checks if the givenProfilePropertySettingobject can be synchronized with a group- Returns:
Boolean
-
getPropertySettingNames
-
addProfilePropertyPlugin
void addProfilePropertyPlugin(org.exoplatform.container.component.ComponentPlugin profilePropertyInitPlugin) -
hasChildProperties
Checks if the current property has child properties- Parameters:
propertySetting-- Returns:
- Boolean : true if the current property has child properties
-
isDefaultProperties
Checks if the current property is a default propertie- Parameters:
propertySetting-- Returns:
- Boolean : true if the current property is a default propertie
-
getExcludedQuickSearchProperties
Gets excluded quick search properties -
isPropertySettingHiddenable
Checks if property is hiddenable- Parameters:
propertySetting- profile property setting- Returns:
- true if property is hiddenbale and false otherwise
-
hidePropertySetting
void hidePropertySetting(long userIdentityId, long profilePropertyId) Hide profile property setting- Parameters:
userIdentityId- user identity idprofilePropertyId- profile property id
-
showPropertySetting
void showPropertySetting(long userIdentityId, long profilePropertyId) Show profile property setting- Parameters:
userIdentityId- user identity idprofilePropertyId- profile property id
-
getHiddenProfilePropertyIds
Get hidden profile property Ids -
getExcludedAnalyticsIndexProperties
Gets excluded analytics index properties
-