Package com.centraview.marketing.marketingfacade

Examples of com.centraview.marketing.marketingfacade.MarketingFacadeHome


  }

  //abstract
  public void  deleteElement( int indvID, String individualID ) throws CommunicationException,NamingException
  {
    MarketingFacadeHome marketingFacadeHome = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome","MarketingFacade");
    try
    {
      HashMap hm = new HashMap();
      hm.put("individualid",individualID);
      hm.put("eventid", new Integer( eventId ));
      MarketingFacade remote =(MarketingFacade)marketingFacadeHome.create();
      remote.setDataSource(this.dataSource);

      int i = remote.deleteEventRegister( hm );
    }
    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
    {
      HashMap hm = new HashMap();
      hm.put("individualid",individualID+"");
      hm.put("eventid", new Integer( eventId ));
     
      //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

      if (rowID != null && !rowID.equals(""))
      {
        int eventID = Integer.parseInt(rowID);

        MarketingFacadeHome home = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
        MarketingFacade remote = home.create();
        remote.setDataSource(dataSource);
        EventDetails oldEvent = remote.getEventDetails(individualId, eventID);

        if (oldEvent != null)
        {
View Full Code Here

      int individualId = userObject.getIndividualID();

      EventDetails eventDetails = new EventDetails();


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

      int eventid = 0;
      boolean duplicateEvent = false;
View Full Code Here

  public int saveList(ActionForm form, int userid) throws CommunicationException, NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    int listid = 0;
    MarketingFacadeHome aa = (MarketingFacadeHome)CVUtility.getHomeObject("com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
    try
    {
      MarketingFacade remote = (MarketingFacade)aa.create();
      remote.setDataSource(dataSource);
  ListMemberForm listMemberForm = (ListMemberForm) form;
  ListVO listVO = new ListVO();
  listVO.setTitle(listMemberForm.getListname());
  listVO.setDescription(listMemberForm.getListdescription());
View Full Code Here

  {
    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");

      // call ejb to insert record
      // initialize hashmap
      HashMap mapEvent = new HashMap();
      mapEvent.put("eventid", strEventid);
      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] SaveEventHandler saveEvent thrown.", e);
        }
      }

      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] SaveEventHandler saveEvent thrown.", e);
        }
      }

      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

  } // end of getImportedMessages method

  public void run()
  {
    try {
      MarketingFacadeHome marketingFacadeHome = (MarketingFacadeHome) CVUtility.getHomeObject(
          "com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
      MarketingFacade remote = marketingFacadeHome.create();
      remote.setDataSource(this.dataSource);
      this.importMessage = remote.getImportList(this.importList, this.headerRow, this.listID, this.individualID, this.CustomEntList,
          this.CustomIndList, this.tabDelimiter, this.lineDelimiter, this.headLine);

    } catch (Exception e) {
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);
      HashMap mapPromotion = new HashMap();
      mapPromotion.put("PromotionID" ,""+elementID);
      remote.deletePromotion(indvID, elementID);
    }
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

      if (request.getParameter("promotionid") != null) {
        promotionid = request.getParameter("promotionid");
        mapPromotion.put("PromotionID", promotionid);
      }

      MarketingFacadeHome mfh = (MarketingFacadeHome)CVUtility.getHomeObject(
          "com.centraview.marketing.marketingfacade.MarketingFacadeHome", "MarketingFacade");
      MarketingFacade remote = mfh.create();
      remote.setDataSource(dataSource);
      if (request.getParameter("operation") != null) {
        if (request.getParameter("operation").equals("Add")) {
          mapPromotion.put("PromotionVo", promotionVO);
          promotionid = remote.addPromotion(individualId, mapPromotion);
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.