Package com.centraview.common

Examples of com.centraview.common.UserPrefererences


      request.setAttribute("body", "EDIT");

      com.centraview.common.UserObject  userobjectd = (com.centraview.common.UserObject)session.getAttribute( "userobject" );//get the user object
      int individualID = userobjectd.getIndividualID();

      UserPrefererences userPref = userobjectd.getUserPref();
      String dateFormat  = userPref.getDateFormat();

      dateFormat= "M/d/yyyy";
      String timeZone    = userPref.getTimeZone();
      if(timeZone == null)
        timeZone = "EST";

      GregorianCalendar gCal = new GregorianCalendar(TimeZone.getTimeZone(timeZone));
      SimpleDateFormat dForm = new SimpleDateFormat(dateFormat);
View Full Code Here


      com.centraview.common.UserObject  userobjectd = (com.centraview.common.UserObject)session.getAttribute( "userobject" );//get the user object
      int individualID = userobjectd.getIndividualID();

      int expenseID = 0;

      UserPrefererences userPref = userobjectd.getUserPref();
      String dateFormat  = userPref.getDateFormat();

      dateFormat= "M/d/yyyy";
      String timeZone    = userPref.getTimeZone();
      if(timeZone == null)
        timeZone = "EST";

      GregorianCalendar gCal = new GregorianCalendar(TimeZone.getTimeZone(timeZone));
      SimpleDateFormat dForm = new SimpleDateFormat(dateFormat);
View Full Code Here

        }
      }
      emailForm.set("subject", newSubject);

      String linebreak = "\n";
      UserPrefererences userPref= userObject.getUserPref();
      if ((userPref.getContentType()).equals("HTML")) {
        linebreak = "<br>\n";
      }


      StringBuffer body = new StringBuffer();
View Full Code Here

      request.setAttribute("body", "EDIT");
     
      com.centraview.common.UserObject  userobjectd = (com.centraview.common.UserObject)session.getAttribute( "userobject" );//get the user object
      int individualID = userobjectd.getIndividualID();
     
      UserPrefererences userPref = userobjectd.getUserPref();
      String dateFormat  = userPref.getDateFormat();
       
      dateFormat= "MMMMMMMMM dd, yyyy";
      String timeZone    = userPref.getTimeZone();
      if(timeZone == null)
      timeZone = "EST";
       
      GregorianCalendar gCal = new GregorianCalendar(TimeZone.getTimeZone(timeZone));
      SimpleDateFormat dForm = new SimpleDateFormat(dateFormat);
View Full Code Here

  {
    String dataSource = Settings.getInstance().getSiteInfo(
        CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    HttpSession session = request.getSession(true);
    UserObject userObject = (UserObject)session.getAttribute("userobject");
    UserPrefererences prefs = userObject.getUserPref();
    TimeZone tz = TimeZone.getTimeZone(prefs.getTimeZone());
    Locale locale = request.getLocale();
   
    PopulateForm populateForm = new PopulateForm();
    // set the form elements
    populateForm.setForm(request, form);
View Full Code Here

        activityForm.setActivityEndTime(tf.format(end.getTime()));
      } else if (unScheduleActivity != null && !(unScheduleActivity.equals("unSchedule"))) {
        // In the case the start time wasn't requested from the parent window,
        // set the start time to now() rounded up to the nearest hour, and the
        // end time to be the start time plus 1 hour.
        UserPrefererences userPref = userObject.getUserPref();
        String userTimeZoneId = userPref.getTimeZone();
        TimeZone userTimeZone = TimeZone.getTimeZone(userTimeZoneId);
        Calendar now = Calendar.getInstance(userTimeZone, locale);
        // round up the hour if we are at the 1 minute mark of the hour or
        // higher. just clear the second and millisecond fields, its only
        // scheduling not physics.
View Full Code Here

      request.setAttribute("body", "EDIT");
     
      com.centraview.common.UserObject  userobjectd = (com.centraview.common.UserObject)session.getAttribute( "userobject" );//get the user object
      int individualID = userobjectd.getIndividualID();
     
      UserPrefererences userPref = userobjectd.getUserPref();
      String dateFormat  = userPref.getDateFormat();
       
      dateFormat= "MMMMMMMMM dd, yyyy";
      String timeZone    = userPref.getTimeZone();
      if(timeZone == null)
      timeZone = "EST";
       
      GregorianCalendar gCal = new GregorianCalendar(TimeZone.getTimeZone(timeZone));
      SimpleDateFormat dForm = new SimpleDateFormat(dateFormat);
View Full Code Here

    ActivityEditHandler requestForm = (ActivityEditHandler)form;

    String sessionID = requestForm.getSessionID();
    HttpSession session = request.getSession();
    UserObject userobjectd = (UserObject)session.getAttribute("userobject");
    UserPrefererences userPrefs = userobjectd.getUserPref();
    TimeZone tz = TimeZone.getTimeZone(userPrefs.getTimeZone());
    Locale locale = request.getLocale();
    int individualID = userobjectd.getIndividualID();
    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    // date format for writing to the form should be in the format based on
    // locale
View Full Code Here

      request.setAttribute("body", "EDIT");

      com.centraview.common.UserObject userobjectd = (com.centraview.common.UserObject)session.getAttribute("userobject"); //get the user object
      int individualID = userobjectd.getIndividualID();

      UserPrefererences userPref = userobjectd.getUserPref();

      String dateFormat = userPref.getDateFormat();

      dateFormat = "M/d/yyyy";
      String timeZone = userPref.getTimeZone();
      if (timeZone == null)
        timeZone = "EST";
      GregorianCalendar gCal = new GregorianCalendar(TimeZone.getTimeZone(timeZone));
      SimpleDateFormat dForm = new SimpleDateFormat(dateFormat);
      dForm.setCalendar(gCal);
View Full Code Here

      com.centraview.common.UserObject userobjectd = (com.centraview.common.UserObject)session.getAttribute("userobject"); //get the user object
      int individualID = userobjectd.getIndividualID();

      int expenseFormID = 0;

      UserPrefererences userPref = userobjectd.getUserPref();
      String dateFormat = userPref.getDateFormat();

      dateFormat = "M/d/yyyy";
      String timeZone = userPref.getTimeZone();
      if (timeZone == null)
        timeZone = "EST";
      GregorianCalendar gCal = new GregorianCalendar(TimeZone.getTimeZone(timeZone));
      SimpleDateFormat dForm = new SimpleDateFormat(dateFormat);
      dForm.setCalendar(gCal);
View Full Code Here

TOP

Related Classes of com.centraview.common.UserPrefererences

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.