Package com.agiletec.plugins.jpstats.aps.util

Examples of com.agiletec.plugins.jpstats.aps.util.TopContentsCDP


    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);
    List categories = data.getCategories();
    assertTrue(categories.size()>0);
  }
View Full Code Here


    StatsDataBean bean = new StatsDataBean();
    start = CalendarConverter.getCalendarDay("05/03/2007", 23, 59, 59, 999);
    end = CalendarConverter.getCalendarDay("30/03/2007", 23, 59, 59, 999);
    bean.setStart(start);
    bean.setEnd(end);
    TopContentsCDP topContentsCDP = new TopContentsCDP(_statsManager, bean);
    Object produceDataset = topContentsCDP.produceDataset(null);
    assertNotNull(produceDataset);
  }
View Full Code Here

  public DatasetProducer getMostVisitedPagestimeData() {
    return new TopPagesCDP(this.getStatsManager(), this.getStatsDataBean());
  }
 
  public DatasetProducer getTopContentsDataset() {
    return new TopContentsCDP(this.getStatsManager(), this.getStatsDataBean());
  }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpstats.aps.util.TopContentsCDP

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.