Package com.centraview.marketing.marketingfacade

Examples of com.centraview.marketing.marketingfacade.MarketingFacadeHome


      mapLiterature.put(" Creator ", "" + individualId);
      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)) {
View Full Code Here


      NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(
        CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    int eventid = 0;
    MarketingFacadeHome mfh = (MarketingFacadeHome)CVUtility.getHomeObject(
        "com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
    try {
      DynaActionForm dynaForm = (DynaActionForm)form;
      String strEventid = (String)dynaForm.get("eventid");
      String strName = (String)dynaForm.get("name");
      String strDescription = (String)dynaForm.get("description");
      String strWhoShouldAttend = (String)dynaForm.get("whoshouldattend");
      String strMaxAttendee = "0";

      if ((dynaForm.get("maxattendees") != null) && (!(dynaForm.get("maxattendees").equals("")))) {
        strMaxAttendee = (String)dynaForm.get("maxattendees");
      }

      String strModerator = (String)dynaForm.get("moderatorid");

      // initialize hashmap
      HashMap mapEvent = new HashMap();
      mapEvent.put("Name", strName);
      mapEvent.put("Description", strDescription);
      mapEvent.put("WhoShouldAttend", strWhoShouldAttend);
      mapEvent.put("MaxAttendees", strMaxAttendee);
      mapEvent.put("Moderator", strModerator);

      if ((dynaForm.get("startmonth") != null) && (dynaForm.get("startday") != null)
          && (dynaForm.get("startyear") != null)) {
        String startmonth = (String)dynaForm.get("startmonth");
        String startday = (String)dynaForm.get("startday");
        String startyear = (String)dynaForm.get("startyear");
        String startTime = (String)dynaForm.get("starttime");

        try {
          Timestamp start = DateUtility.createTimestamp(startyear, startmonth, startday, startTime);
          mapEvent.put("StartDate", start);
        } catch (Exception e) {
          logger.error("[execute] SaveNewEventHandler saveEvent thrown.", e);
        }// end of catch block
      }// end of if ((dynaForm.get("startmonth") != null)...

      if ((dynaForm.get("endmonth") != null) && (dynaForm.get("endday") != null)
          && (dynaForm.get("endyear") != null)) {
        String endmonth = (String)dynaForm.get("endmonth");
        String endday = (String)dynaForm.get("endday");
        String endyear = (String)dynaForm.get("endyear");
        String endTime = (String)dynaForm.get("endtime");

        try {
          Timestamp end = DateUtility.createTimestamp(endyear, endmonth, endday, endTime);
          mapEvent.put("EndDate", end);
        } catch (Exception e) {
          logger.error("[execute] SaveNewEventHandler saveEvent thrown.", e);
        }// end of catch block
      }// end of if ((dynaForm.get("endmonth") != null) ....

      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);
View Full Code Here

    request.setAttribute("typeofmodule", AdministrationConstantKeys.MODULESETTINGS);
    request.setAttribute("typeofsubmodule", submodule);
    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);
View Full Code Here

      if (promotionid != null)
      {
        // 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;
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)
View Full Code Here

        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('A'));
        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

    hm.put("sortmem", paramDL.getSortMember());
    hm.put("sortType", new Character(paramDL.getSortType()));

    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

        hm.put("EndAtparam", new Integer(EndAtparam));
        hm.put("searchString", searchString);
        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('A'));
        HashMap listMap = null;
        MarketingFacadeHome aa = (MarketingFacadeHome)CVUtility.getHomeObject(
            "com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
        try {
          MarketingFacade remote = (MarketingFacade)aa.create();
          remote.setDataSource(this.dataSource);
          returnDL = remote.getPromotionList(userID, hm);
        } catch (Exception e) {
          System.out.println("[Exception] ListGenerator.getPromotionList: " + e.toString());
          // e.printStackTrace();
View Full Code Here

    hm.put("EndAtparam", new Integer(Math.min(EndAt + 100, listSize)));
    hm.put("searchString", searchString);
    hm.put("sortmem", paramDL.getSortMember());
    hm.put("sortType", new Character(paramDL.getSortType()));

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

        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('A'));
        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.getMarketingListMemberList(individualID, marketingListID, hm);
        } catch (Exception e) {
          System.out.println("[Exception] ListGenerator.getMarketingListMemberList: "
              + e.toString());
View Full Code Here

TOP

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

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.