Class ProfileSettingStorage

java.lang.Object
org.exoplatform.social.core.profileproperty.storage.ProfileSettingStorage
Direct Known Subclasses:
CachedProfileSettingStorage

public class ProfileSettingStorage extends Object
  • Constructor Details

  • 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

      public void deleteProfilePropertySetting(Long id)
    • clearListingFlags

      public boolean clearListingFlags(Long id)
      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

      public List<org.exoplatform.social.core.profileproperty.model.ProfilePropertyOption> getProfilePropertyOptions(Long propertySettingId, int offset, int limit)