Examples of deleteEvent()


Examples of com.centraview.marketing.events.EventsLocal.deleteEvent()

    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteEvent(eventid);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
View Full Code Here

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

    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

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

      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

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

    try
    {
      MarketingFacade remote =( MarketingFacade )marketingFacadeHome.create();
         remote.setDataSource(dataSource);
      int eventid = Integer.parseInt(request.getParameter("eventid").toString());
      remote.deleteEvent(eventid);
    }
    catch(Exception e)
    {
      resultPage = "failure";
      logger.error("[Exception] DeleteEventHandler.Execute Handler ", e);
View Full Code Here

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

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

Examples of org.apache.olio.webapp.model.ModelFacade.deleteEvent()

        return "/site.jsp?page=event.jsp&socialEventID=" + eventID;
        }

    private String deleteEvent (int eid, HttpServletRequest request, HttpServletResponse response) throws IOException {
        ModelFacade mf= (ModelFacade) context.getAttribute(MF_KEY);
        mf.deleteEvent(eid);
        // Since this affects the cache, clear the cache
        WebappUtil.clearCache("/event/list");
        response.sendRedirect(request.getContextPath() + "/event/list");
        return null;
    }
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.