Package com.centraview.advancedsearch

Examples of com.centraview.advancedsearch.AdvancedSearchHome


      // make sure the right moduleId is on the form.
      adhocReportForm.set("moduleId", new Integer(moduleId));

      AdvancedSearch remoteAdvancedSearch = null;
      try {
        AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
        remoteAdvancedSearch = advancedSearchHome.create();
        remoteAdvancedSearch.setDataSource(dataSource);
      } catch (Exception e) {
        System.out.println("[Exception][SearchForm.execute] Exception Thrown getting EJB connection: " + e);
        throw new ServletException(e);
      }
View Full Code Here


  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException,
      ServletException, CommunicationException, NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome) CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome",
        "AdvancedSearch");
    PrintTemplateHome PTHome = (PrintTemplateHome) CVUtility.getHomeObject("com.centraview.printtemplate.PrintTemplateHome", "Printtemplate");
    MailHome mailHome = (MailHome) CVUtility.getHomeObject("com.centraview.mail.MailHome", "Mail");
    try {
      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();
      DynaActionForm dynaform = (DynaActionForm) form;
      String mergeType = (String) dynaform.get("mergetype");

      String actionType = null;
      if (request.getParameter("actionType") != null) {
        actionType = request.getParameter("actionType");
      }

      int categoryId = this.getCategoryIdFromType(mergeType);
      PrintTemplate PTRemote = PTHome.create();
      PTRemote.setDataSource(dataSource);
      AdvancedSearch remoteAdvancedSearch = advancedSearchHome.create();
      remoteAdvancedSearch.setDataSource(dataSource);
      String savedsearch1 = "";
      String specificentity = "";
      String entitysavedsearch = "";
      if (mergeType.equals("EMAIL")) {
View Full Code Here

    reportForm.set("reportId", new Integer(reportVO.getReportId()));
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    // Get Saved searches from the EJB
    AdvancedSearch remoteAdvancedSearch = null;
    try {
      AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
      remoteAdvancedSearch = advancedSearchHome.create();
      remoteAdvancedSearch.setDataSource(dataSource);
    } catch (Exception e) {
      logger.error("[getAdHocReportFormFromReportVO] Exception thrown.", e);
    }
    HashMap allFields = (HashMap)reportForm.get("allFields");
View Full Code Here

    SearchCriteriaVO[] searchCriteria = (SearchCriteriaVO[])reportForm.get("searchCriteria");
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    // We need some advanced Search stuff from the EJB layer
    AdvancedSearch remoteAdvancedSearch = null;
    try {
      AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
      remoteAdvancedSearch = advancedSearchHome.create();
      remoteAdvancedSearch.setDataSource(dataSource);
    } catch (Exception e) {
      logger.error("[getStandardReportFormFromReportVO] Exception thrown.", e);
    }
    HashMap allFields = (HashMap)reportForm.get("allFields");
View Full Code Here

      ruleForm.set("conditionList", conditionList);

      // Get Saved search EJB
      AdvancedSearch remoteAdvancedSearch = null;
      try {
        AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
        remoteAdvancedSearch = advancedSearchHome.create();
        remoteAdvancedSearch.setDataSource(dataSource);
      }catch(Exception e){
        System.out.println("[Exception][SearchForm.execute] Exception Thrown getting EJB connection: " + e);
        throw new ServletException(e);
      }
View Full Code Here

      ruleForm.set("conditionList", conditionList);

      // Get Saved search EJB
      AdvancedSearch remoteAdvancedSearch = null;
      try {
        AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
        remoteAdvancedSearch = advancedSearchHome.create();
        remoteAdvancedSearch.setDataSource(dataSource);
      }catch(Exception e){
        System.out.println("[Exception][SearchForm.execute] Exception Thrown getting EJB connection: " + e);
        throw new ServletException(e);
      }
View Full Code Here

      DisplayList displaylistRequest = (DisplayList)request.getAttribute("displaylist");
     
      if ((displayListFlag != null && displayListFlag.equals("true")) || displaylistRequest == null ) {
        // Get Advance Search result by applying the Search criteria
        AdvancedSearch remoteAdvancedSearch = null;
        AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
        try {
          remoteAdvancedSearch = advancedSearchHome.create();
          remoteAdvancedSearch.setDataSource(dataSource);
        } catch (Exception e) {
          logger.error("[Exception] GlobalReplaceHandler.Execute Handler ", e);
        }
       
View Full Code Here

    }
    viewForm.set("availableFields", availableFields);
    viewForm.set("allFields", allFields);

    // get the list of available searches
    AdvancedSearchHome searchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome","AdvancedSearch");
    AdvancedSearch searchRemote = null;
    try {
      searchRemote = (AdvancedSearch)searchHome.create();
    } catch (CreateException e) {
      System.out.println("[execute] Exception thrown: " + e);
      throw new ServletException(e);
    }
    searchRemote.setDataSource(dataSource);
View Full Code Here

      Vector primaryReplaceTableList = globalReplace.getPrimaryReplaceTables();
      globalReplaceForm.set("replaceTableVec",primaryReplaceTableList);

      // intialize the Advance Search EJB
      AdvancedSearch remoteAdvancedSearch = null;
      AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
      try
      {
        remoteAdvancedSearch = advancedSearchHome.create();
        remoteAdvancedSearch.setDataSource(dataSource);
      }
      catch (Exception e)
      {
        logger.error("[Exception] GobalReplaceSearchHandler.Execute Handler ", e);
View Full Code Here

      Vector primaryReplaceTableList = globalReplace.getPrimaryReplaceTables();
      globalReplaceForm.set("replaceTableVec",primaryReplaceTableList);

      // intialize the Advance Search EJB
      AdvancedSearch remoteAdvancedSearch = null;
      AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
      try {
        remoteAdvancedSearch = advancedSearchHome.create();
        remoteAdvancedSearch.setDataSource(dataSource);
      } catch (Exception e) {
        logger.error("[Exception] GlobalReplaceSearchHandler.Execute Handler ", e);
      }
View Full Code Here

TOP

Related Classes of com.centraview.advancedsearch.AdvancedSearchHome

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.