org.activemath.webapp.report
Class Report

java.lang.Object
  extended by org.activemath.webapp.report.Report
Direct Known Subclasses:
BucketReport, EventReport, PerformanceReport, ReportActivities, ReportAggregateExercises, ReportAggregateStudents, ReportMistakes, ReportPerStudent, ReportStudentResults, ReportUserFeedback, ShareCalculatorReport, SurveyReport

public abstract class Report
extends Object

Abstract base class for reports. Must be public to work for Velocity (I think).


Field Summary
protected  ContentManager contentManager
           
 
Constructor Summary
Report()
           
 
Method Summary
protected abstract  void generate()
           
 String getBookId()
           
 Collection<String> getBookIds()
           
 long getEndTime()
           
 List<ActivemathEvent> getEventList()
           
 Collection<String> getEventsExcluded()
           
 Collection<String> getEventsIncluded()
           
 Map<String,ExerciseRun> getExerciseRuns()
           
 String getGroupId()
           
 Collection<String> getGroupIds()
           
 String getItemId()
           
 Collection<String> getItemIds()
           
 int getNumEvents()
           
 int getNumExerciseRuns()
           
 int getNumResults()
           
 long getStartTime()
           
 String getUserId()
           
 Collection<String> getUserIds()
           
protected  boolean isSet(String value)
           
 String join2string(Collection c)
           
 String join2string(Object[] a)
           
 void setBookId(String value)
          Set bookId along with list of bookIds.
 void setBookIds(Collection<String> value)
           
 void setEndTime(long value)
           
 void setEventsExcluded(Collection<String> eventsExcluded)
           
 void setEventsIncluded(Collection<String> eventsIncluded)
           
 void setGroupId(String value)
          Set groupId along with list of groupIds.
 void setGroupIds(Collection<String> value)
           
 void setItemId(String value)
           
 void setItemIds(Collection<String> itemIds)
           
 void setStartTime(long value)
           
 void setUserId(String value)
          Set userId along with list of userIds.
 void setUserIds(Collection<String> value)
           
 void setUsersExcluded(Set<String> usersExcluded)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentManager

protected ContentManager contentManager
Constructor Detail

Report

public Report()
Method Detail

generate

protected abstract void generate()
                          throws Exception
Throws:
Exception

isSet

protected boolean isSet(String value)

join2string

public String join2string(Object[] a)
See Also:
Utilities.join2string(java.lang.Object[])

join2string

public String join2string(Collection c)
See Also:
Utilities.join2string(java.util.Collection)

setItemId

public void setItemId(String value)

setStartTime

public void setStartTime(long value)

setEndTime

public void setEndTime(long value)

setGroupIds

public void setGroupIds(Collection<String> value)

setUserIds

public void setUserIds(Collection<String> value)

setBookIds

public void setBookIds(Collection<String> value)

setGroupId

public void setGroupId(String value)
Set groupId along with list of groupIds.


setBookId

public void setBookId(String value)
Set bookId along with list of bookIds.


setUserId

public void setUserId(String value)
Set userId along with list of userIds.


getBookId

public final String getBookId()

getEndTime

public final long getEndTime()

getGroupId

public final String getGroupId()

getItemId

public final String getItemId()

getStartTime

public final long getStartTime()

getUserId

public final String getUserId()

getGroupIds

public Collection<String> getGroupIds()

getUserIds

public Collection<String> getUserIds()

getBookIds

public Collection<String> getBookIds()

getEventList

public List<ActivemathEvent> getEventList()

getExerciseRuns

public Map<String,ExerciseRun> getExerciseRuns()

getItemIds

public Collection<String> getItemIds()

getNumEvents

public int getNumEvents()

getNumExerciseRuns

public int getNumExerciseRuns()

getNumResults

public int getNumResults()

setItemIds

public void setItemIds(Collection<String> itemIds)

getEventsIncluded

public Collection<String> getEventsIncluded()

setEventsIncluded

public void setEventsIncluded(Collection<String> eventsIncluded)

getEventsExcluded

public Collection<String> getEventsExcluded()

setEventsExcluded

public void setEventsExcluded(Collection<String> eventsExcluded)

setUsersExcluded

public void setUsersExcluded(Set<String> usersExcluded)