Package com.centraview.preference

Examples of com.centraview.preference.PreferenceHome


  public static Vector getDelegatorIds(int userID, String typeofModule, String typeofoperation, String dataSource) {
    String moduleName = "";
    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


      String dataSource) {
    String moduleName = "";
    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

  public static Calendar getCalendar(int individualId, String dataSource, boolean current)
  {
    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

    try
    {
      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

        prefVO.setPreferenceValue(newValue.toString());
       
        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

Related Classes of com.centraview.preference.PreferenceHome

Copyright © 2018 www.massapicom. 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.