Class ProfileSettingStorage
java.lang.Object
org.exoplatform.social.core.profileproperty.storage.ProfileSettingStorage
- Direct Known Subclasses:
CachedProfileSettingStorage
-
Constructor Summary
ConstructorsConstructorDescriptionProfileSettingStorage(ProfilePropertySettingDAO profilePropertySettingDAO, ProfilePropertyOptionDAO profilePropertyOptionDAO) -
Method Summary
Modifier and TypeMethodDescriptionbooleanSwitches off both listing flags of a stored setting, in the caller's transaction.voidorg.exoplatform.social.core.profileproperty.model.ProfilePropertySettingList<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> getListedSettings(ProfileFormKind formKind) Reads the settings listed in a form from the store, never from a cache, in the settings' order: the forms' allow-list must not follow a node's settings caches, which another node's write invalidates asynchronously.List<org.exoplatform.social.core.profileproperty.model.ProfilePropertyOption> getProfilePropertyOptions(Long propertySettingId, int offset, int limit) org.exoplatform.social.core.profileproperty.model.ProfilePropertySettingList<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> List<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> org.exoplatform.social.core.profileproperty.model.ProfilePropertySettingsaveProfilePropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting, boolean isNew)
-
Constructor Details
-
ProfileSettingStorage
public ProfileSettingStorage(ProfilePropertySettingDAO profilePropertySettingDAO, ProfilePropertyOptionDAO profilePropertyOptionDAO)
-
-
Method Details
-
getPropertySettings
public List<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> getPropertySettings() -
getSynchronizedPropertySettings
public List<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> getSynchronizedPropertySettings() -
getListedSettings
public List<org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting> getListedSettings(ProfileFormKind formKind) Reads the settings listed in a form from the store, never from a cache, in the settings' order: the forms' allow-list must not follow a node's settings caches, which another node's write invalidates asynchronously.- Parameters:
formKind- the form- Returns:
- the settings whose flag for that form is on
-
findProfileSettingByName
public org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting findProfileSettingByName(String name) -
getProfileSettingById
public org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting getProfileSettingById(Long id) -
saveProfilePropertySetting
public org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting saveProfilePropertySetting(org.exoplatform.social.core.profileproperty.model.ProfilePropertySetting profilePropertySetting, boolean isNew) -
deleteProfilePropertySetting
-
clearListingFlags
Switches off both listing flags of a stored setting, in the caller's transaction.- Parameters:
id- the setting's technical identifier- Returns:
- true when a flag was on and the setting was changed
-
getProfilePropertyOptions
-