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); } }
public void save() { try { privateDataManager.setPrivateData(settingsData); } catch (XMPPException e) { Log.error("Error in User Settings.", e); } }