Package de.laures.cewolf

Examples of de.laures.cewolf.DatasetProducer


  /**
   * @see de.laures.cewolf.DatasetProducer#produceDataset(Map)
   */
  public Object produceDataset (Map params) throws DatasetProduceException {
    //log.debug(params);
    DatasetProducer datasetProducer = (DatasetProducer) params.get("producer");
    //log.debug(datasetProducer);
    Dataset dataset = (Dataset) datasetProducer.produceDataset(params);
    String suffix = (String) params.get("suffix");
    int period, skip;
    try {
      period = Integer.parseInt((String) params.get("period"));
      skip = Integer.parseInt((String) params.get("skip"));
View Full Code Here


  static final long serialVersionUID = 1193241004439087455L;

    private boolean useCache = true;

    public int doEndTag() throws JspException {
        DatasetProducer dataProducer = null;
        try {
            dataProducer = (DatasetProducer) getObject();
            if (dataProducer == null) {
                throw new JspException("Could not find datasetproducer under ID '" + getId() + "'");
            }
View Full Code Here

public class ProducerTag extends AbstractParameterizedObjectTag {

    private boolean useCache = true;

    public int doEndTag() throws JspException {
        DatasetProducer dataProducer = null;
        try {
            dataProducer = (DatasetProducer) getObject();
            if (dataProducer == null) {
                throw new JspException("Could not find datasetproducer under ID '" + getId() + "'");
            }
View Full Code Here

  /**
   * @see de.laures.cewolf.DatasetProducer#produceDataset(Map)
   */
  public Object produceDataset(Map params) throws DatasetProduceException {
    log.debug(params);
    DatasetProducer datasetProducer = (DatasetProducer)params.get("producer");
    log.debug(datasetProducer);
    Dataset dataset = (Dataset)datasetProducer.produceDataset(params);
    String suffix = (String)params.get("suffix");
    int period = ((Integer)params.get("period")).intValue();
    int skip = ((Integer)params.get("skip")).intValue();
    if(dataset instanceof XYDataset){
          return MovingAverage.createMovingAverage((XYDataset)dataset, suffix, period, skip);
View Full Code Here

    String end = "";
    this.setUserOnSession("admin");
    String result = this.executeViewStats(start, end);
    assertEquals(Action.SUCCESS, result);
    StatisticsAction action = (StatisticsAction) this.getAction();
    DatasetProducer accessChart = (DatasetProducer) action.getHitsTimeData();
    DatasetProducer mostVisitedPagesChart = (DatasetProducer) action.getMostVisitedPagestimeData();
   
    assertNotNull(accessChart);
    assertNotNull(mostVisitedPagesChart);
   
    Calendar today = Calendar.getInstance();
View Full Code Here

    String end = "";
    this.setUserOnSession("admin");
    String result = this.executeViewStats(start, end);
    assertEquals(Action.SUCCESS, result);
    StatisticsAction action = (StatisticsAction) this.getAction();
    DatasetProducer accessChart =  (DatasetProducer) action.getHitsTimeData();
    DatasetProducer mostVisitedPagesChart = (DatasetProducer) action.getMostVisitedPagestimeData();
    TopContentsCDP topContents = (TopContentsCDP) action.getTopContentsDataset();//request.getAttribute("TopContents");
    assertNotNull(accessChart);
    assertNotNull(mostVisitedPagesChart);
    assertNotNull(topContents);
    DefaultIntervalCategoryDataset data = (DefaultIntervalCategoryDataset) topContents.produceDataset(null);
View Full Code Here

    String end = "";
    this.setUserOnSession("admin");
    String result = this.executeViewStats(start, end);
    assertEquals(Action.SUCCESS, result);
    StatisticsAction action = (StatisticsAction) this.getAction();
    DatasetProducer accessChart =  (DatasetProducer) action.getHitsTimeData();
    DatasetProducer mostVisitedPagesChart = (DatasetProducer) action.getMostVisitedPagestimeData();
   
    assertNotNull(accessChart);
    assertNotNull(mostVisitedPagesChart);
   
    Date s = action.getStartDate();
View Full Code Here

    this.setUserOnSession("admin");
    String result = this.executeViewStats(start, end);
    assertEquals(Action.INPUT, result);
    StatisticsAction action = (StatisticsAction) this.getAction();
   
    DatasetProducer accessChart = (DatasetProducer) action.getHitsTimeData();
    DatasetProducer mostVisitedPagesChart = (DatasetProducer) action.getMostVisitedPagestimeData();
   
    assertNotNull(accessChart);
    assertNotNull(mostVisitedPagesChart);
    assertEquals(1, action.getFieldErrors().size());
  }
View Full Code Here

TOP

Related Classes of de.laures.cewolf.DatasetProducer

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.