org.sakaiproject.sitestats.tool.wicket.providers
Class ReportsDataProvider

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
      extended by org.sakaiproject.sitestats.tool.wicket.providers.SortableSearchableDataProvider
          extended by org.sakaiproject.sitestats.tool.wicket.providers.ReportsDataProvider
All Implemented Interfaces:
Serializable, org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator, org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider, org.apache.wicket.IClusterable, org.apache.wicket.markup.repeater.data.IDataProvider, org.apache.wicket.model.IDetachable

public class ReportsDataProvider
extends SortableSearchableDataProvider

See Also:
Serialized Form

Field Summary
static String COL_ACTION
           
static String COL_DATE
           
static String COL_DURATION
           
static String COL_EVENT
           
static String COL_RESOURCE
           
static String COL_SITE
           
static String COL_TOOL
           
static String COL_TOTAL
           
static String COL_UNIQUEVISITS
           
static String COL_USERID
           
static String COL_USERNAME
           
static String COL_VISITS
           
 
Constructor Summary
ReportsDataProvider(PrefsData prefsData, ReportDef reportDef)
           
ReportsDataProvider(PrefsData prefsData, ReportDef reportDef, boolean log)
           
 
Method Summary
 Report getReport()
           
 Comparator<Stat> getReportDataComparator(String fieldName, boolean sortAscending, StatsManager SST_sm, EventRegistryService SST_ers, org.sakaiproject.user.api.UserDirectoryService M_uds)
           
 ReportDef getReportDef()
           
 Iterator iterator(int first, int count)
           
 org.apache.wicket.model.IModel model(Object object)
           
 void setReportDef(ReportDef reportDef)
           
 int size()
           
 void sortReport()
           
 
Methods inherited from class org.sakaiproject.sitestats.tool.wicket.providers.SortableSearchableDataProvider
clearSearchKeyword, getSearchKeyword, setSearchKeyword
 
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
detach, getSort, getSortState, setSort, setSort, setSortState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COL_SITE

public static final String COL_SITE
See Also:
Constant Field Values

COL_USERID

public static final String COL_USERID
See Also:
Constant Field Values

COL_USERNAME

public static final String COL_USERNAME
See Also:
Constant Field Values

COL_EVENT

public static final String COL_EVENT
See Also:
Constant Field Values

COL_TOOL

public static final String COL_TOOL
See Also:
Constant Field Values

COL_RESOURCE

public static final String COL_RESOURCE
See Also:
Constant Field Values

COL_ACTION

public static final String COL_ACTION
See Also:
Constant Field Values

COL_DATE

public static final String COL_DATE
See Also:
Constant Field Values

COL_TOTAL

public static final String COL_TOTAL
See Also:
Constant Field Values

COL_VISITS

public static final String COL_VISITS
See Also:
Constant Field Values

COL_UNIQUEVISITS

public static final String COL_UNIQUEVISITS
See Also:
Constant Field Values

COL_DURATION

public static final String COL_DURATION
See Also:
Constant Field Values
Constructor Detail

ReportsDataProvider

public ReportsDataProvider(PrefsData prefsData,
                           ReportDef reportDef)

ReportsDataProvider

public ReportsDataProvider(PrefsData prefsData,
                           ReportDef reportDef,
                           boolean log)
Method Detail

setReportDef

public void setReportDef(ReportDef reportDef)

getReportDef

public ReportDef getReportDef()

iterator

public Iterator iterator(int first,
                         int count)
Specified by:
iterator in interface org.apache.wicket.markup.repeater.data.IDataProvider
Overrides:
iterator in class SortableSearchableDataProvider

getReport

public Report getReport()

model

public org.apache.wicket.model.IModel model(Object object)
Specified by:
model in interface org.apache.wicket.markup.repeater.data.IDataProvider
Overrides:
model in class SortableSearchableDataProvider

size

public int size()
Specified by:
size in interface org.apache.wicket.markup.repeater.data.IDataProvider
Overrides:
size in class SortableSearchableDataProvider

sortReport

public void sortReport()

getReportDataComparator

public final Comparator<Stat> getReportDataComparator(String fieldName,
                                                      boolean sortAscending,
                                                      StatsManager SST_sm,
                                                      EventRegistryService SST_ers,
                                                      org.sakaiproject.user.api.UserDirectoryService M_uds)


Copyright © 2006-2012 Universidade Fernando Pessoa. All Rights Reserved.