Package com.centraview.preference

Examples of com.centraview.preference.Preference


    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)) {
        moduleName = Constants.EMAILMODULE;
      }

      indIdVec = remote.getDelegatorIDs(userID, moduleName, typeofoperation);
      indIdVec.addElement((new Integer(userID)).toString());
    } catch (Exception e) {
      logger.error("[getDelegatorIds] Exception thrown.", e);
    }
    return indIdVec;
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;
      } else if (typeofModule.equals(Constants.ACTIVITYMODULE)) {
        moduleName = Constants.EMAILMODULE;
      }

      indIdVec = remote.getCalendarDelegatorIds(userID, moduleName, typeofoperation);
      if (moduleName.equals(Constants.EMAILMODULE)) {
        indIdVec.addElement((new Integer(userID)).toString());
      }
    } catch (Exception e) {
      logger.error("[getCalendarDelegatorIds] Exception thrown.", e);
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);
    }
    if (tz != null) {
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
      // we need to update the preference in the user's UserPrefererence
      // object in the UserObject in the session.
      if (recordsChanged > 0)
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();
        userPrefs.setEmailCheckInterval(newValue.intValue());
        userObject.setUserPref(userPrefs);
        session.setAttribute("userobject", userObject);
View Full Code Here

TOP

Related Classes of com.centraview.preference.Preference

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.