Package com.centraview.marketing.marketingfacade

Examples of com.centraview.marketing.marketingfacade.MarketingFacade


   
    String rowId[] = request.getParameterValues("rowId");
    MarketingFacadeHome marketingFacadeHome = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome","MarketingFacade");
    try
    {
      MarketingFacade remote = (MarketingFacade)marketingFacadeHome.create();
      remote.setDataSource(dataSource);
      for (int i=0; i<rowId.length; i++)
      {
        if(rowId[i] != null && !rowId[i].equals(""))
        {         
          int elementId = Integer.parseInt(rowId[i]);
          try
          {
            remote.deleteLiterature(elementId, individualId);
          } catch(AuthorizationFailedException ae) {
            String errorMessage = ae.getExceptionDescription();
            deleteLog.add(errorMessage);
          }
        }
View Full Code Here


    try
    {
      HttpSession session = request.getSession(true);
      int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
      MarketingFacadeHome cfh = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
      MarketingFacade remote = (MarketingFacade)cfh.create();
      remote.setDataSource(dataSource);
      int promotionid = Integer.parseInt(request.getParameter("promotionid").toString());
      HashMap mapPromotion = new HashMap();
      mapPromotion.put("PromotionID", "" + promotionid);
      remote.deletePromotion(individualId, promotionid);
    }
    catch (Exception e)
    {
      resultPage = "failure";
      System.out.println("[Exception][DeletePromotionHandler.execute] Exception Thrown: " + e);
View Full Code Here

        // set request parameter as set in viewhandler and newhandler
        //System.out.println("fasdsfsfsfgsf sfsdf sf sfs sf s");
      }

      MarketingFacadeHome home = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome","MarketingFacade");
      MarketingFacade remote = home.create();
          remote.setDataSource(dataSource);
      Vector deliverymethodlist = remote.getAllDeliveryMethod();
      request.setAttribute("deliverymethodlist" , deliverymethodlist );
      //System.out.println("deliverymethodlist ::" + deliverymethodlist);

      Vector activitystatuslist = remote.getAllActivityStatus();
      request.setAttribute("activitystatuslist" , activitystatuslist );
      //System.out.println("activitystatuslist ::" + activitystatuslist);

      String names = this.getNames();
      //System.out.println("names :: "+names);
View Full Code Here

    request.setAttribute("rowId", row);

  MarketingFacadeHome aa = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
    try
    {
      MarketingFacade remote = (MarketingFacade)aa.create();
      remote.setDataSource(dataSource);
    DynaActionForm dyna = (DynaActionForm)form;
    if (row != null && !row.equals("")){
      int rowID = Integer.parseInt(row);
      ListVO listVO = remote.viewList(rowID);
      dyna.set("listname", listVO.getTitle());
      dyna.set("listdescription", listVO.getDescription());
      dyna.set("listid", listVO.getListID()+"");
      dyna.set("create", listVO.getCreated());
      dyna.set("modify", listVO.getModified());
View Full Code Here

  {
    MarketingFacadeHome marketingFacadeHome = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome","MarketingFacade");
    try
    {
      int elementID = Integer.parseInt(key);
      MarketingFacade remote =(MarketingFacade)marketingFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteEvent(elementID);
      // TODO deleteEvent user-rights.
    }
    catch( Exception e )
    {
      logger.error("[Exception] EventList.deleteElement( int indvID, String key )", e);
View Full Code Here

    ArrayList resultDeleteLog = new ArrayList();
    MarketingFacadeHome marketingFacadeHome = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome","MarketingFacade");
    try
    {
      //call to EJB server
      MarketingFacade remote =(MarketingFacade)marketingFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
          try{
            remote.deleteEvent(elementID);
            // TODO deleteEvent user-rights.
          }//end of try block
          catch(AuthorizationFailedException ae){
            String errorMessage = ae.getExceptionDescription();
            resultDeleteLog.add(errorMessage);
View Full Code Here

  {
    MarketingFacadeHome marketingFacadeHome = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome","MarketingFacade");
    try
    {
      int elementID = Integer.parseInt(key);
      MarketingFacade remote =(MarketingFacade)marketingFacadeHome.create();
      remote.deleteList( elementID );
    }
    catch( Exception e )
    {
      logger.error("[Exception] MarketingList.deleteElement( int indvID, String key )", e);
    }
View Full Code Here

    MarketingFacadeHome marketingFacadeHome = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome","MarketingFacade");
    try
    {
   
      //call to EJB server
      MarketingFacade remote =(MarketingFacade)marketingFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
          remote.deleteList(elementID);
        }//end of if(recordID[i] != null && !recordID[i].equals(""))
      }//end of for (int i=0; i<recordID.length; i++)
    }//end of try block
    catch( CreateException e )
    {
View Full Code Here

      mapEvent.put("IndividualId", strIndividuals);

      // call to marketing facade
      MarketingFacadeHome mfh = (MarketingFacadeHome)
        CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
      MarketingFacade remote = (MarketingFacade) mfh.create();
      remote.setDataSource(dataSource);

      // add record to db
      eventid = remote.addEventRegister(mapEvent, individualID);
    }
    catch (Exception exe)
    {
      System.out.println("[Exception] SaveEventAttendeeHandler.saveEventRegister: " + exe.toString());
      //exe.printStackTrace();
View Full Code Here

      HashMap mapEvent = new HashMap();
      mapEvent.put("eventid", "" + eventid);
      mapEvent.put("individualid", "" + individualid);

      MarketingFacadeHome home = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
      MarketingFacade remote = home.create();
      remote.setDataSource(dataSource);
      boolean isRegistered = remote.hasUserAcceptedEvent(eventid, individualid);

      String newAcceptedString = (!isRegistered) ? "YES" : "NO";

      mapEvent.put("accepted", newAcceptedString);

      remote.registerAttendee(mapEvent);

      request.setAttribute("eventid", "" + eventid);

      FORWARD_final = FORWARD_displayViewEvent;
    }
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.