Class ProfilePropertyServiceImpl
java.lang.Object
org.exoplatform.social.core.profileproperty.ProfilePropertyServiceImpl
- All Implemented Interfaces:
org.exoplatform.social.core.profileproperty.ProfilePropertyService, org.picocontainer.Startable
public class ProfilePropertyServiceImpl
extends Object
implements org.exoplatform.social.core.profileproperty.ProfilePropertyService, org.picocontainer.Startable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ProfilePropertyDatabaseInitializer> static final intNumber of property holders read, then queued for reindex, at once.static final StringBroadcast, with the updated setting as data, when an edit changes the string the profile index holds for the property's values: an option's value or labels, the dropdown switch, or the property hidden or shown again by the administrator, whose values the documents leave out while it is not visible.Fields inherited from interface org.exoplatform.social.core.profileproperty.ProfilePropertyService
LABELS_OBJECT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionProfilePropertyServiceImpl(org.exoplatform.container.xml.InitParams params, ProfileSettingStorage profileSettingStorage, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.commons.search.index.IndexingService indexingService, org.exoplatform.services.listener.ListenerService listenerService, io.meeds.social.translation.service.TranslationService translationService, IdentityDAO identityDAO) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProfilePropertyPlugin(org.exoplatform.container.component.ComponentPlugin profilePropertyInitPlugin) org.exoplatform.social.core.profileproperty.model.ProfilePropertySettingcreatePropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting) voidgetHiddenProfilePropertyIds(long userIdentityId) org.exoplatform.social.core.profileproperty.model.ProfilePropertySettingorg.exoplatform.social.core.profileproperty.model.ProfilePropertySettingList<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> List<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> voidhidePropertySetting(long userIdentityId, long profilePropertyId) booleanisDefaultProperties(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting propertySetting) booleanbooleanbooleanisUserCardFieldSettings(String propertyName) voidreindexPropertyHolders(String propertyName) protected org.exoplatform.social.core.profileproperty.model.ProfilePropertySettingsaveNewPropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting) Saves a new setting, its order and the switch-off of its parent's listing flags in one transaction.protected org.exoplatform.social.core.profileproperty.model.ProfilePropertySettingsaveUpdatedPropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting) Saves a changed setting and the switch-off of its parent's listing flags in one transaction.voidshowPropertySetting(long userIdentityId, long profilePropertyId) voidstart()voidstop()voidupdatePropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting)
-
Field Details
-
PROPERTY_OPTIONS_UPDATED_EVENT
Broadcast, with the updated setting as data, when an edit changes the string the profile index holds for the property's values: an option's value or labels, the dropdown switch, or the property hidden or shown again by the administrator, whose values the documents leave out while it is not visible.- See Also:
-
PROPERTY_HOLDERS_PAGE_SIZE
public static final int PROPERTY_HOLDERS_PAGE_SIZENumber of property holders read, then queued for reindex, at once.- See Also:
-
profielPropertyPlugins
-
-
Constructor Details
-
ProfilePropertyServiceImpl
public ProfilePropertyServiceImpl(org.exoplatform.container.xml.InitParams params, ProfileSettingStorage profileSettingStorage, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.commons.search.index.IndexingService indexingService, org.exoplatform.services.listener.ListenerService listenerService, io.meeds.social.translation.service.TranslationService translationService, IdentityDAO identityDAO)
-
-
Method Details
-
getPropertySettings
public List<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> getPropertySettings()- Specified by:
getPropertySettingsin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
getSynchronizedPropertySettings
public List<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> getSynchronizedPropertySettings()- Specified by:
getSynchronizedPropertySettingsin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
getProfileSettingByName
public org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting getProfileSettingByName(String name) - Specified by:
getProfileSettingByNamein interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
getExcludedAnalyticsIndexProperties
-
getProfileSettingById
public org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting getProfileSettingById(Long id) - Specified by:
getProfileSettingByIdin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
getExcludedQuickSearchProperties
-
isPropertySettingHiddenable
- Specified by:
isPropertySettingHiddenablein interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
createPropertySetting
public org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting createPropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting) throws org.exoplatform.commons.ObjectAlreadyExistsException - Specified by:
createPropertySettingin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService- Throws:
org.exoplatform.commons.ObjectAlreadyExistsException
-
updatePropertySetting
public void updatePropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting) - Specified by:
updatePropertySettingin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
deleteProfilePropertySetting
- Specified by:
deleteProfilePropertySettingin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
isGroupSynchronizedEnabledProperty
- Specified by:
isGroupSynchronizedEnabledPropertyin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
getPropertySettingNames
-
hidePropertySetting
public void hidePropertySetting(long userIdentityId, long profilePropertyId) - Specified by:
hidePropertySettingin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
showPropertySetting
public void showPropertySetting(long userIdentityId, long profilePropertyId) - Specified by:
showPropertySettingin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
getHiddenProfilePropertyIds
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-
reindexPropertyHolders
- Specified by:
reindexPropertyHoldersin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
addProfilePropertyPlugin
public void addProfilePropertyPlugin(org.exoplatform.container.component.ComponentPlugin profilePropertyInitPlugin) - Specified by:
addProfilePropertyPluginin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
isDefaultProperties
public boolean isDefaultProperties(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting propertySetting) - Specified by:
isDefaultPropertiesin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-
saveNewPropertySetting
protected org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting saveNewPropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting) Saves a new setting, its order and the switch-off of its parent's listing flags in one transaction.- Parameters:
profilePropertySetting- the setting to create- Returns:
- the stored setting
-
saveUpdatedPropertySetting
protected org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting saveUpdatedPropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting) Saves a changed setting and the switch-off of its parent's listing flags in one transaction.- Parameters:
profilePropertySetting- the setting to update- Returns:
- the stored setting
-
isUserCardFieldSettings
- Specified by:
isUserCardFieldSettingsin interfaceorg.exoplatform.social.core.profileproperty.ProfilePropertyService
-