Package com.centraview.preference

Examples of com.centraview.preference.PreferenceHome.create()


    Vector indIdVec = new Vector();

    try {
      PreferenceHome hm = (PreferenceHome) CVUtility.getHomeObject("com.centraview.preference.PreferenceHome",
          "Preference");
      Preference remote = hm.create();
      remote.setDataSource(dataSource);

      if (typeofModule.equals(Constants.ACTIVITYMODULE)) {
        moduleName = Constants.ACTIVITYMODULE;
      } else if (typeofModule.equals(Constants.ACTIVITYMODULE)) {
View Full Code Here


    Vector indIdVec = new Vector();

    try {
      PreferenceHome hm = (PreferenceHome) CVUtility.getHomeObject("com.centraview.preference.PreferenceHome",
          "Preference");
      Preference remote = hm.create();
      remote.setDataSource(dataSource);

      // FIXME Delegation of Email through getCalendarDelegatorIds??
      if (typeofModule.equals(Constants.ACTIVITYMODULE)) {
        moduleName = Constants.ACTIVITYMODULE;
View Full Code Here

    Calendar calendar;
    TimeZone tz = null;
    try {
      PreferenceHome prefHome = (PreferenceHome)CVUtility.getHomeObject(
          "com.centraview.preference.PreferenceHome", "Preference");
      Preference prefRemote = prefHome.create();
      prefRemote.setDataSource(dataSource);
      UserPrefererences prefs = prefRemote.getUserPreferences(individualId);
      tz = TimeZone.getTimeZone(prefs.getTimeZone());
    } catch (Exception e) {
      logger.error("[getCalendar]: Exception", e);
View Full Code Here

    {
      Boolean syncAsPrivate = (Boolean)syncForm.get("syncAsPrivate");
      String prefValue = (syncAsPrivate != null && syncAsPrivate.booleanValue() == true) ? "YES" : "NO";

      PreferenceHome home = (PreferenceHome)CVUtility.getHomeObject("com.centraview.preference.PreferenceHome", "Preference");
      Preference remote = home.create();
      remote.setDataSource(dataSource);

      int recordsChanged = remote.updateSyncAsPrivatePref(individualID, prefValue);

      // if we successfully updated the preference in the database, now
View Full Code Here

       
        Vector prefsVector = new Vector();
        prefsVector.addElement(prefVO);
       
        PreferenceHome prefHome = (PreferenceHome)CVUtility.getHomeObject("com.centraview.preference.PreferenceHome", "Preference");
        Preference prefRemote = prefHome.create();
        prefRemote.setDataSource(dataSource);
       
        prefRemote.updateUserPreference(individualID, prefsVector);
       
        UserPrefererences userPrefs = userObject.getUserPref();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.