org.activemath.webapp.report
Class ReportController

java.lang.Object
  extended by org.infohazard.maverick.ctl.Throwaway2
      extended by org.infohazard.maverick.ctl.ThrowawayBean2
          extended by org.activemath.webapp.base.ControllerBase
              extended by org.activemath.webapp.report.ReportController
All Implemented Interfaces:
Controller

public class ReportController
extends ControllerBase


Field Summary
protected static Logger log
           
 
Fields inherited from class org.activemath.webapp.base.ControllerBase
appContext, defaultContentType, JSON, REDIRECT, REDIRECT_LOGIN, request, response, stopwatch
 
Fields inherited from class org.infohazard.maverick.ctl.Throwaway2
ERROR, SUCCESS
 
Constructor Summary
ReportController()
           
 
Method Summary
protected  String action()
          This is the method you should override to implement application logic.
 String generateCSV()
          Generate a CSV view.
 void setAction(String value)
           
 void setBookId(String value)
           
 void setDatesEnabled(String value)
           
 void setEndTime(long value)
           
 void setGroupId(String value)
           
 void setIncludeTutors(boolean value)
           
 void setItemId(String value)
           
 void setOutputFormat(String value)
           
 void setStartTime(long value)
           
 void setSurveyName(String value)
           
 void setType(String value)
           
 void setUserId(String value)
           
 
Methods inherited from class org.activemath.webapp.base.ControllerBase
addError, addError, enableNoCache, escapeForHtmlSafety, getAccountManager, getAppSession, getCmdName, getCurrentUser, getErrors, getHttpSession, getLanguage, getModel, getOutputFormat, getRequest, getResponse, getSkin, hasErrors, perform, publishControllerEvent, sendError, sendError, sendJson, sendLoginRequired, sendRedirect, sendRedirect, setPasswd, setUser
 
Methods inherited from class org.infohazard.maverick.ctl.ThrowawayBean2
go
 
Methods inherited from class org.infohazard.maverick.ctl.Throwaway2
getCtx, go
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Logger log
Constructor Detail

ReportController

public ReportController()
Method Detail

setAction

public void setAction(String value)

setType

public void setType(String value)

setOutputFormat

public void setOutputFormat(String value)

setUserId

public void setUserId(String value)

setBookId

public void setBookId(String value)

setItemId

public void setItemId(String value)

setGroupId

public void setGroupId(String value)

setSurveyName

public void setSurveyName(String value)

setStartTime

public void setStartTime(long value)

setEndTime

public void setEndTime(long value)

setDatesEnabled

public void setDatesEnabled(String value)

setIncludeTutors

public void setIncludeTutors(boolean value)

action

protected String action()
                 throws Exception
Description copied from class: ControllerBase
This is the method you should override to implement application logic.

Overrides:
action in class ControllerBase
Throws:
Exception

generateCSV

public String generateCSV()
                   throws Exception
Generate a CSV view. Full path for VM file will be derived from request path.

Returns:
SUCCESS view
Throws:
Exception - in case of error