Package com.centraview.marketing.marketingfacade

Examples of com.centraview.marketing.marketingfacade.MarketingFacadeHome


    HttpSession session = request.getSession(true);
    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();
   
    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(""))
        {         
View Full Code Here


    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    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);
View Full Code Here

        request.setAttribute(MarketingConstantKeys.WINDOWID, request.getParameter(MarketingConstantKeys.WINDOWID));
        // 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);
View Full Code Here

      row = rowId[0];
    } //end of if statement (rowId != null)

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

  }

  //abstract
  public void  deleteElement( int indvID, String key ) throws CommunicationException,NamingException
  {
    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 )
View Full Code Here

    * @return resultDeleteLog A Collection of the Error Message while deleting a particular record.
    */
  public ArrayList deleteElement(int individualID, String recordID[]) throws CommunicationException,NamingException,RemoteException
  {
    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]);
View Full Code Here

  }

  //abstract
  public void  deleteElement( int indvID, String key ) throws CommunicationException,NamingException
  {
    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

    * @return resultDeleteLog A Collection of the Error Message while deleting a particular record.
    */
  public ArrayList deleteElement(int individualID, String recordID[]) throws CommunicationException,NamingException,RemoteException
  {
    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]);
View Full Code Here

      mapEvent.put("EventId", strEventid);
      mapEvent.put("Accepted", "NO");
      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);
    }
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";
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.