Package com.centraview.common

Examples of com.centraview.common.UserObject


      PreferenceHome prefHome = (PreferenceHome)CVUtility.getHomeObject("com.centraview.preference.PreferenceHome", "Preference");
      Preference prefRemote = prefHome.create();
      prefRemote.setDataSource(dataSource);
     
      UserObject userObject = (UserObject)session.getAttribute("userobject");
     
      int individualID = 0;

      if (userObject != null) {
        individualID = userObject.getIndividualID();
      }
     
      DynaActionForm composeForm = (DynaActionForm)form;

      UserPrefererences userPref = prefRemote.getUserPreferences(individualID);
View Full Code Here


      ActivityVOX activityVOX = new ActivityVOX(form);

      // initialize VO
      ActivityVO activityVO = activityVOX.getVO();

      UserObject userObject = (UserObject)session.getAttribute("userobject");
      int IndividualId = userObject.getIndividualID();

      // this method will convert the date to GMT
      String currTimeZone = userObject.getUserPref().getTimeZone();
      activityVO.changeTimeZoneOfAllDates(currTimeZone, "EST");

      String emailinvitation = ((ActivityForm)form).getActivityEmailInvitation();
      if (emailinvitation != null && emailinvitation.equals("on")) {
        ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
View Full Code Here

   
    String returnStatus = ".view.marketing.edit.event";
    try
    {
      HttpSession session = request.getSession(true);
      UserObject userObject = (UserObject)session.getAttribute("userobject");

      int individualId = userObject.getIndividualID();

      EventDetails eventDetails = new EventDetails();


      MarketingFacadeHome home = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
View Full Code Here

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

    try {
      HttpSession session = request.getSession();
      UserObject userObject = (UserObject)session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();
      int ticketID = 0;
     
      // Check the session for an existing error message (possibly from the delete handler)
      ActionErrors allErrors =  (ActionErrors)session.getAttribute("listErrorMessage");
      if (allErrors != null) {
View Full Code Here

      DynaActionForm dynaForm = (DynaActionForm)form;
      HttpSession session = request.getSession();
      session.setAttribute("highlightmodule", "preferences");

      int individualID = 0;
      UserObject userObject = (UserObject)session.getAttribute("userobject");

      if (userObject != null)
      {
        // get current user's individualID
        individualID = userObject.getIndividualID();
      }

      Vector vecleft = new Vector();
      Vector vecright = new Vector();
View Full Code Here

      request.setAttribute("entityNo", entityNo);
      request.setAttribute("entityName", entityName);

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

      String messageBody = (String)session.getAttribute("emailmessage");
      DynaActionForm dynaForm = (DynaActionForm)form;

      GlobalMasterLists gml = GlobalMasterLists.getGlobalMasterLists(dataSource);
View Full Code Here

    try
    {
      PurchaseOrderForm purchaseForm = (PurchaseOrderForm)form;

      HttpSession session = request.getSession(true);
      UserObject  userobjectd = (UserObject)session.getAttribute( "userobject" );//get the user object
      int individualID = userobjectd.getIndividualID();
      session.setAttribute("highlightmodule", "account");

      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.PURCHASEORDER);
      request.setAttribute("body",AccountConstantKeys.ADD );
View Full Code Here

    throws IOException, ServletException, CommunicationException, NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

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

    request.setAttribute("TypeOfOperation", "List Manager");

    ListMemberForm dynaForm = (ListMemberForm) form;
View Full Code Here

    }

    // Check wheather the actionType is it Lookup or not
    String actionType = (String)request.getParameter("actionType");

    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int individualId = userObject.getIndividualID();
    ListPreference listPreference = userObject.getListPreference("Expense");
    ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
    ValueListParameters listParameters = null;
    ValueListParameters requestListParameters = (ValueListParameters)request.getAttribute("listParameters");
    if (requestListParameters == null) // build up new Parameters
    {
View Full Code Here

      HttpSession session = request.getSession();
      // hash map for add activity
      HashMap fileHashMap = null;
      // to identify multiple opened window
      String newWindowId = "1";
      UserObject userObject = (UserObject)session.getAttribute("userobject");
      int userId = userObject.getIndividualID();
      String folderId;
      // Related Info frames, and any file list that calls this handler needs to set this parameter so
      // The target directory becomes the users default rather than trying to get the CurrentFolder from
      // the display list.
      boolean fromRelatedInfo = request.getParameter("BottomFile")!=null && request.getParameter("BottomFile").equals("true");
      if (fromRelatedInfo)
      {
        folderId = "" + (userObject.getUserPref()).getDefaultFolderID();
      }
      else
      {
        folderId = request.getParameter("folderId");
      }
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.