Package com.centraview.common

Examples of com.centraview.common.UserObject


    request.setAttribute("TypeOfOperation", "List Manager");
    request.setAttribute("showAddAttendeesButton", new Boolean(false));
    request.setAttribute("showImportButton", new Boolean(true));

    UserObject userobjectd = (UserObject)session.getAttribute("userobject");
    try
    {
      this.buildSubList(Integer.parseInt(row), userobjectd, request, session, dataSource);
    }
    catch (Exception e)
View Full Code Here


    int smarkFlag = 0;
    try
    {
      boolean markflag = false;
      HttpSession session = request.getSession(true);
      UserObject userobjectd = (UserObject)session.getAttribute("userobject");
      int individualId = userobjectd.getIndividualID();

      String rowId = null;

      int destfolderid = 0;
View Full Code Here

  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    HttpSession session = request.getSession();
    UserObject userObject = (UserObject)session.getAttribute("userobject");

    int individualID = userObject.getIndividualID();    // logged in user
   
    // "mailCheckForm" defined in struts-config-preference.xml
    DynaActionForm mailForm = (DynaActionForm)form;
   
    UserPrefererences userPrefs = userObject.getUserPref();
    int prefValue = userPrefs.getEmailCheckInterval();
   
    try {
      mailForm.set("mailCheckInterval", new Integer(prefValue));
    }catch(NumberFormatException nfe){
View Full Code Here

    try
    {
      DynaActionForm dynaForm = (DynaActionForm)form;
      HttpSession session = request.getSession();
    UserObject userobject =(UserObject) session.getAttribute("userobject");
    UserPrefererences userPrefererences = userobject.getUserPref();
     
      String typeOfSave = "save";
      int individualID = 0;
      String[] leftportlet = (String[])request.getParameterValues("portletsLeft");
      String[] rightportlet = (String[])request.getParameterValues("portletsRight");
      Vector vec = new Vector();

      if (rightportlet != null)
      {
        for (int i = 0; i < rightportlet.length; i++)
        {
          PreferenceVO pvo3 = new PreferenceVO();
          pvo3.setModuleId(4);
          pvo3.setPreferenceName(rightportlet[i]);
          pvo3.setPreferenceValue("YES");

          vec.addElement(pvo3);

        }
      }
      if (leftportlet != null)
      {

        for (int i = 0; i < leftportlet.length; i++)
        {
          PreferenceVO pvo4 = new PreferenceVO();
          pvo4.setModuleId(4);
          pvo4.setPreferenceName(leftportlet[i]);
          pvo4.setPreferenceValue("NO");

          vec.addElement(pvo4);
        }
      }
      UserObject userObject = (UserObject)session.getAttribute("userobject");
      // might as well null pointer now before we do any real harm
      individualID = userObject.getIndividualID();
      if (request.getParameter("buttonpress") != null)
      {
        typeOfSave = request.getParameter("buttonpress");

        PreferenceVO pvo1 = new PreferenceVO();
        PreferenceVO pvo2 = new PreferenceVO();

        pvo1.setModuleId(4);
        pvo1.setPreferenceName("homesettingrefreshmin");
        String minutes = (String) (dynaForm.get("minutes"));
        pvo1.setPreferenceValue(minutes);
        pvo2.setModuleId(4);
        pvo2.setPreferenceName("homesettingrefreshsec");
        String seconds = (String) (dynaForm.get("seconds"));
        pvo2.setPreferenceValue(seconds);
        vec.addElement(pvo1);
        vec.addElement(pvo2);
       
        PreferenceHome prefHome = (PreferenceHome)CVUtility.getHomeObject("com.centraview.preference.PreferenceHome", "Preference");
        Preference prefRemote = prefHome.create();
        prefRemote.setDataSource(dataSource);
        prefRemote.updateUserPreference(individualID, vec);

        updatePrefs(prefRemote.getUserPreferences(individualID),
                    userObject.getUserPref());

        if(minutes != null && !minutes.equals("") && !minutes.equals("null")
              && seconds != null && !seconds.equals("") && !seconds.equals("null"))
        {
            userPrefererences.setHomeRefreshMin(minutes);
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    String btnClicked = (String) request.getParameter("btnClicked");

    HttpSession session = request.getSession();
    UserObject userobjectd = (UserObject) session.getAttribute("userobject");
    int individualID = userobjectd.getIndividualID();

    OrderForm oform = (OrderForm) form;
    OrderForm tempform = null;
    oform.convertFormbeanToValueObject("add");
View Full Code Here

    try
    {
      DynaActionForm dynaForm = (DynaActionForm)form;

      HttpSession session = request.getSession();
      UserObject userObject = (UserObject)session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();

      IndividualVO individualVO;
      AddressVO addressVO = null;

      ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    try {
      request.setAttribute("action", "view");
      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();

      SupportFacadeHome sfh = (SupportFacadeHome) CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = sfh.create();
      remote.setDataSource(dataSource);
View Full Code Here

    try
    {
      DynaActionForm dynaForm = (DynaActionForm)form;

      HttpSession session = request.getSession(true);
      UserObject userobjectd = (UserObject)session.getAttribute("userobject");
      int individualID = userobjectd.getIndividualID();
      ListPreference listpreference = userobjectd.getListPreference("Email");
      String rowId = null;


      rowId = request.getParameter("rowId");
      int messageID = Integer.parseInt(rowId);
View Full Code Here

  private static String SALES = "sales";
  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    HttpSession session = request.getSession();
    UserObject user = (UserObject)session.getAttribute("userobject");
    int individualId = user.getIndividualID();
    UserPrefererences preferences = user.getUserPref();
    String type = request.getParameter("type");
    PreferenceVO preferenceVO = new PreferenceVO();

    StringBuffer returnPath = new StringBuffer(mapping.findForward(type).getPath());
View Full Code Here

    try
    {

      HttpSession session = request.getSession(true);
      UserObject userobjectd = (UserObject)session.getAttribute("userobject");
      int individualId = userobjectd.getIndividualID();
      ListPreference listpreference = userobjectd.getListPreference("Email");

      //account object created
      MailAccount mailaccount = new MailAccount();
      DynaActionForm dynaForm = (DynaActionForm)form;
View Full Code Here

TOP

Related Classes of com.centraview.common.UserObject

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.