Examples of deletePromotion()


Examples of com.centraview.marketing.marketingfacade.MarketingFacade.deletePromotion()

      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

Examples of com.centraview.marketing.marketingfacade.MarketingFacade.deletePromotion()

    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.deletePromotion(individualId, elementId);
        }
      }
    } catch(Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new CommunicationException(e.getMessage());
View Full Code Here

Examples of com.centraview.marketing.marketingfacade.MarketingFacade.deletePromotion()

      int elementID = Integer.parseInt(key);
      MarketingFacade remote =(MarketingFacade)marketingFacadeHome.create();
      remote.setDataSource(this.dataSource);
      HashMap mapPromotion = new HashMap();
      mapPromotion.put("PromotionID" ,""+elementID);
      remote.deletePromotion(indvID, elementID);
    }
    catch( Exception e )
    {
      logger.error("[Exception] PromotionList.deleteElement( int indvID, String key )", e);
    }
View Full Code Here

Examples of com.centraview.marketing.marketingfacade.MarketingFacade.deletePromotion()

        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
          try{
            HashMap mapPromotion = new HashMap();
            mapPromotion.put("PromotionID" ,""+elementID);
            remote.deletePromotion(individualID, elementID);
          }//end of try block
          catch(AuthorizationFailedException ae){
            String errorMessage = ae.getExceptionDescription();
            resultDeleteLog.add(errorMessage);
          }//end of catch block
View Full Code Here

Examples of com.centraview.marketing.promotion.PromotionLocal.deletePromotion()

    try {
      InitialContext ic = CVUtility.getInitialContext();
      PromotionLocalHome home = (PromotionLocalHome)ic.lookup("local/Promotion");
      PromotionLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      result = (String)remote.deletePromotion(userId, elementID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.