Examples of Report


Examples of org.wicketstuff.pageserializer.common.analyze.reportbuilder.Report

    reportOutput.write(tree, new IReportRenderer() {

      @Override
      public String render(ISerializedObjectTree tree) {

        Report report = new Report("TreeSizeReport\n");
        process(tree, report, 0, tree.size() + tree.childSize());
        String result = report
            .export(emptyFirst, id, percent, sum, local,
                child, label).separateColumnNamesWith('-')
            .tableBorderWith('=').asString();

        return result;
View Full Code Here

Examples of pierre.reports.Report

   */
 

  public Report execute( QueryFeature queryFeature, DeploymentForm deploymentForm, User user )
  {
    Report report = null;
    Tuple[] tuples= null;
 
    if( authenticateUser( user ) )
    {
      try
      {
        String queryFeatureName = queryFeature.getName();
       
        if ( queryFeatureName.equals("Query by Experimenter")) {
       
          QueryByExperimenter experimenterQuery = new QueryByExperimenter(databaseOperations, statementExecutor, queryFeature, getTimeStamp(), user.getID());
          tuples = experimenterQuery.getTuples();

        }
       
        if (queryFeatureName.equals("Query by Start Date")) {
          QueryByDate dateQuery = new QueryByDate(databaseOperations, statementExecutor, queryFeature, getTimeStamp(), user.getID());
          tuples = dateQuery.getTuples();

        }
       
        if (queryFeatureName.equals("Query by Keyword")) {
          QueryByKeyword keywordQuery = new QueryByKeyword(databaseOperations, statementExecutor, queryFeature, getTimeStamp(), user.getID());
          tuples = keywordQuery.getTuples();
        }
       
        if (queryFeatureName.equals("Query by Plasmid")){
          QueryByPlasmid plasmidQuery = new QueryByPlasmid(databaseOperations, statementExecutor, queryFeature, getTimeStamp(), user.getID());
          tuples = plasmidQuery.getTuples();
        }
        if (queryFeatureName.equals("Query by Multiple Plasmids")){
         
        }
        if (queryFeatureName.equals("Query by Compound")) {
         
        }
        if (queryFeatureName.equals("Query by Plasmid and Compound")) {
         
        }
       
        if( tuples.length == 0 )
        {
          return new NoResultsFoundReport( deploymentForm );
        }
       
        report = new ExtendedTupleReport( deploymentForm, queryFeature.getName(), queryFeature.getName(), tuples );
        ( (ExtendedTupleReport)report ).setTimeStamp( getTimeStamp() );
        ( (ExtendedTupleReport)report ).setUserID( user.getID() );
      }
      catch( Exception e )
      {
        e.printStackTrace();
        report = new ErrorReport( deploymentForm );
        ( (ErrorReport)report ).addError( e );
      }
    }
    else
    {
      report = new ErrorReport( deploymentForm );
    }
   
      report.setIdentifier( generateReportIdentifier() );
    caterReportForDeploymentForm( report, deploymentForm );
    return report;
  }
View Full Code Here

Examples of powermock.examples.bypassencapsulation.nontest.Report

  @Injectable
  private Cache cache;

  public void deleteReport(final String reportName) {
    Report report = getReportFromTargetName(reportName);
    cache.invalidateCache(report);
    // Imagine that we delete the report from some persistence storage.
  }
View Full Code Here

Examples of reportgen.gui.genepanel.Report

            } else {

                SubReportChooseDlg dlg = new SubReportChooseDlg(parent, lst);
                dlg.setVisible(true);
                if(dlg.isOK()) {
                    Report selected = dlg.getSelectedReport();
                    ItemSelectorEditable<QueryExecuterSub> subreports = reportQuery.getSubReports();
                    QueryExecuterSub srq = new QueryExecuterSub(
                            selected.getID(), selected.getQuery(), selected.getTitle(),
                            selected.getDescription(), "", "", 1, RowCount.SINGLE);
                    subreports.add(srq);
                    subreportTable.setModel(new SubReportTableModel(subreportTable, subreports));
                    subreportTable.getColumnModel().getColumn(SubReportTableModel.COL_SELCOLUMN)
                            .setCellEditor(new SubReportColumnTableEditor(subreports));
                    subreportTable.getColumnModel().getColumn(SubReportTableModel.COL_SELECTROWS)
View Full Code Here

Examples of reportgen.prototype.Report

        if (d.reportType == 0) {
            throw new ClipsServerException("Отчет не привязан ни к какой группе");
        }

        // check report
        Report report = null;
        try {
            report = ReportFactory.fromString(entity.getId(), d.query, this);
        } catch (ReportException ex) {
            throw new ClipsServerException("Попытка сохранения некорректного отчета", ex);
        }

        HashSet<String> newCols = new HashSet<String>();
        ResultColumnList newColsSelector = report.getColumns();
        for(int i=0; i<newColsSelector.size(); i++) {
            newCols.add(newColsSelector.get(i).getTitle());
        }

        //check super reports
View Full Code Here

Examples of reports.bean.Report

    } catch (ParseException e) {
      logger.error("Can't parse date string \"" + endDateString + "\"");
    }
    String performer = request.getParameter("performer");
    String activity = request.getParameter("activity");
    Report report = new Report(0, startDate, endDate, performer, activity);
    dao.insertReport(report);
    RequestDispatcher rd = getServletContext().getRequestDispatcher(
        "/insert.jsp");
    rd.forward(request, response);
  }
View Full Code Here

Examples of systole.domain.report.Report

    @Override
    public Report getReportById(Integer id) throws ExceptionDAO {
        try {
            this.logger.logDebug("getting report by id, id: " + id);
            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            Report instance = (Report) currentSession.get(Report.class, id);
            this.logger.logDebug("get successfully");
            return instance;
        } catch (HibernateException e) {
            this.logger.logError("error on get report, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudo obtener el Reporte", e.fillInStackTrace());
View Full Code Here

Examples of testsuite.tester.Report

    private static URL currentBaseUrl;

    public static class OnAllServers {
        public static Test suite() throws Exception {
            final Report report = new Report(new File(System.getProperty("testsuite.results", "results.html")));
            TestSuite result = new TestSuite() {
                public void run(TestResult result) {
                    result.addListener(report);
                    report.startSuite();
                    super.run(result);
                    result.removeListener(report);
                    report.endSuite();
                }
            };
            File configFile = new File(System.getProperty("testsuite.config", "tests.xml"));
            ConfigReader config = new ConfigReader(configFile);
            for ( Iterator servers = config.getServers().iterator(); servers.hasNext(); ) {
                final Server server = (Server)servers.next();
                final TestSuite serverSuite = new TestSuite((server.getName() + " " + server.getVersion()).replaceAll("\\.", "_")) {
                    public void run(TestResult result) {
                        currentBaseUrl = server.getBaseURL();
                        report.startServer(server);
                        super.run(result);
                        report.endServer();
                    }
                };
                addTests(serverSuite);
                result.addTest(serverSuite);
            }
View Full Code Here

Examples of uk.co.purebuy.commerce.businessobjects.importexport.playtrade.call.GetReportStatusCallResult.Report

  {
    m_standardcallresult.parseRawXmlResult(TESTXMLDATA);
    assertNotNull("The reports array should not be null",m_standardcallresult.getReports());
    assertEquals("Expected 3 reports from the array",3, m_standardcallresult.getReports().length);
   
    Report firstreport = m_standardcallresult.getReports()[0];
    assertEquals("The reportid is incorrect", "158", firstreport.m_reportid);
    assertEquals("The report start time is incorrect", "12/07/2006 15:18:25", firstreport.m_reportstarttime);
    assertEquals("The report end time is incorrect", "12/07/2006 15:18:31", firstreport.m_reportendtime);
   
    Report secondreport = m_standardcallresult.getReports()[1];
    assertEquals("The reportid is incorrect", "120", secondreport.m_reportid);
    assertEquals("The report start time is incorrect", "12/07/2006 08:47:54", secondreport.m_reportstarttime);
    assertEquals("The report end time is incorrect", "12/07/2006 08:48:03", secondreport.m_reportendtime);
   
  }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.report.interfaces.Report

        request.setProfileIds(profileIds);

        FileWriter fileWriter = null;
        try {
            targetFile = File.createTempFile("report~", ".xml", config.getTempDir());
            Report report = reportManager.generateReport(request, null, backgroundProgressObserver);
            fileWriter = new FileWriter(targetFile);
            reportXmlWriter.writeReport(report, fileWriter);
        } catch (IOException e) {
            log.error(e);
            throw new RuntimeException(e);
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.