Package com.centraview.marketing.marketingfacade

Examples of com.centraview.marketing.marketingfacade.MarketingFacade


      mapLiterature.put(" Owner ", "" + individualId);

      // call to marketing facade
      MarketingFacadeHome mfh = (MarketingFacadeHome)CVUtility.getHomeObject(
          "com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
      MarketingFacade remote = mfh.create();
      remote.setDataSource(dataSource);
      if (typeofoperation.equals(MarketingConstantKeys.ADD))
        remote.addLiterature(mapLiterature);

      else if (typeofoperation.equals(MarketingConstantKeys.EDIT)) {
        String activityid = request.getParameter("activityid");
        mapLiterature.put(" Activityid ", activityid);
        // mapLiterature.put(" Activityid ",""+873);
        remote.editLiterature(mapLiterature);
      }

      ((LiteratureForm)form).setTitle("");
      ((LiteratureForm)form).setDetail("");
      ((LiteratureForm)form).setEntityname("");
View Full Code Here


      HttpSession session = request.getSession();
      int individualID = ((UserObject)session.getAttribute("userobject")).getIndividualID();
      mapEvent.put("Creator", "" + individualID);

      // call to marketing facade
      MarketingFacade remote = mfh.create();
      remote.setDataSource(dataSource);

      String[] attchmentids = request.getParameterValues("attachfile");
      mapEvent.put("Attachment", attchmentids);

      eventid = remote.editEvent(mapEvent, individualID);
      request.setAttribute("TypeOfOperation", "Event");
    } catch (Exception exe) {
      logger.error("[execute] SaveEventHandler saveEvent thrown.", exe);
    }
View Full Code Here

      HttpSession session = request.getSession();
      int individualID = ((UserObject)session.getAttribute("userobject")).getIndividualID();
      mapEvent.put("Creator", "" + individualID);

      // call to marketing facade
      MarketingFacade remote = mfh.create();
      remote.setDataSource(dataSource);

      String[] attchmentids = request.getParameterValues("attachfile");
      mapEvent.put("Attachment", attchmentids);

      eventid = remote.addEvent(mapEvent, individualID);
      request.setAttribute("TypeOfOperation", "Event");
    }// end of try block
    catch (Exception exe) {
      logger.error("[execute] SaveNewEventHandler saveEvent thrown.", exe);
    }// end of catch block
View Full Code Here

    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();
    String rowId[] = request.getParameterValues("rowId");
    try {
      MarketingFacade ejb = (MarketingFacade)CVUtility.setupEJB("MarketingFacade", "com.centraview.marketing.marketingfacade.MarketingFacadeHome", dataSource);
      for (int i=0; i<rowId.length; i++) {
        if(rowId[i] != null && !rowId[i].equals("")) {         
          int elementId = Integer.parseInt(rowId[i]);
          ejb.deleteEvent(elementId);
        }
      }
    } catch(Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new CommunicationException(e.getMessage());
View Full Code Here

    request.setAttribute("settingfor", setting);

    if (setting != null && setting.equals("Literature")) {
      MarketingFacadeHome home = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
      try {
        MarketingFacade remote = home.create();
        remote.setDataSource(dataSource);

        Vector literaturelist = remote.getAllLiterature();
        request.setAttribute("literaturelist", literaturelist);
      } catch (Exception e) {
        logger.error("[Exception] ViewSourceSettingHandler.Execute Handler ", e);
      }
    }

    if (setting != null && setting.equals("Tax")) {
      AccountHelperHome home = (AccountHelperHome)CVUtility.getHomeObject("com.centraview.account.helper.AccountHelperHome", "AccountHelper");
      try {
        AccountHelper remote = home.create();
        remote.setDataSource(dataSource);
        Vector taxClass = remote.getTaxClasses();
        Vector taxJurisdiction = remote.getTaxJurisdiction();
        HashMap taxMatrix = remote.getTaxMartix();
        dynaform.set("taxClassVec",taxClass);
        dynaform.set("taxJurisdictionsVec",taxJurisdiction);
        dynaform.set("taxMatrix",taxMatrix);
        dynaform.set("taxClassValue","");
        dynaform.set("taxJurisdictionsValue","");
View Full Code Here

    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();
    String rowId[] = request.getParameterValues("rowId");
    try {
      MarketingFacade ejb = (MarketingFacade)CVUtility.setupEJB("MarketingFacade", "com.centraview.marketing.marketingfacade.MarketingFacadeHome", dataSource);
      for (int i=0; i<rowId.length; i++) {
        if(rowId[i] != null && !rowId[i].equals("")) {         
          int elementId = Integer.parseInt(rowId[i]);
          ejb.deleteList(elementId);
        }
      }
    } catch(Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new CommunicationException(e.getMessage());
View Full Code Here

      {
        // code for load form
        HttpSession session = request.getSession(true);
        int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
        MarketingFacadeHome home = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
        MarketingFacade remote = home.create();
        remote.setDataSource(dataSource);
        HashMap mapPromotion = new HashMap();
        mapPromotion.put("PromotionID", "" + promotionid);
        PromotionVO promotionVO = remote.getPromotion(individualId, mapPromotion);
        PromotionDetailListForm promotionDetailListForm = (PromotionDetailListForm)form;
        //promotionDetailListForm.convertItemLines();
        // wrong to call this method here as there will be no itemlines in existsing form
        // we have to take itemLines from VO and put it in form
        // that is done at bottom ...
View Full Code Here

    try
    {
      HttpSession session = request.getSession(true);
      int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
      MarketingFacadeHome home = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
      MarketingFacade remote = home.create();
      remote.setDataSource(dataSource);

      // TODO so which one do we want the parameter or the Attribute?
      int promotionid = 0;
      if (request.getAttribute("promotionid") != null)
        promotionid = Integer.parseInt(request.getAttribute("promotionid").toString());
      if (promotionid == 0)
        promotionid = Integer.parseInt(request.getParameter("promotionid").toString());

      HashMap mapPromotion = new HashMap();
      mapPromotion.put("PromotionID", "" + promotionid);
      PromotionVO promotionVO = remote.getPromotion(individualId, mapPromotion);

      PromotionDetailListForm promotionDetailListForm = (PromotionDetailListForm)form;
      promotionDetailListForm.convertItemLines();
      promotionDetailListForm.setPromotionid("" + promotionid);
      promotionDetailListForm.setPname(promotionVO.getName());
View Full Code Here

        HashMap listMap = null;

        try {
          MarketingFacadeHome aa = (MarketingFacadeHome)CVUtility.getHomeObject(
              "com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
          MarketingFacade remote = (MarketingFacade)aa.create();
          remote.setDataSource(this.dataSource);
          returnDL = remote.getEventList(userID, hm);
        } catch (Exception e) {
          System.out.println("[Exception] ListGenerator.getEventList: " + e.toString());
          // e.printStackTrace();
        }
View Full Code Here

    try {
      // HashMap listMap = new HashMap();
      MarketingFacadeHome aa = (MarketingFacadeHome)CVUtility.getHomeObject(
          "com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
      MarketingFacade remote = (MarketingFacade)aa.create();
      remote.setDataSource(this.dataSource);
      returnDL = remote.getEventList(userid, hm);
    } catch (Exception e) {
      System.out.println("[Exception] ListGenerator.getEventList: " + e.toString());
      // e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of com.centraview.marketing.marketingfacade.MarketingFacade

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.