Exemplo n.º 1
0
  private UserSettings() {
    privateDataManager = new PrivateDataManager(ChatsyManager.getConnection());
    PrivateDataManager.addPrivateDataProvider(
        "personal_settings", "jive:user:settings", new SettingsDataProvider());

    try {
      settingsData =
          (SettingsData)
              privateDataManager.getPrivateData("personal_settings", "jive:user:settings");
    } catch (XMPPException e) {
      Log.error("Error in User Settings", e);
    }
  }
Exemplo n.º 2
0
 public void save() {
   try {
     privateDataManager.setPrivateData(settingsData);
   } catch (XMPPException e) {
     Log.error("Error in User Settings.", e);
   }
 }