org.activemath.webapp.tutor
Class BookGenerationController

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.tutor.BookGenerationController
All Implemented Interfaces:
Controller

public class BookGenerationController
extends ControllerBase

This controller is steering the book creation process


Field Summary
protected static String GENERATION_STATE_KEY
           
protected static Category 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
BookGenerationController()
           
 
Method Summary
protected  String action()
          This is the method you should override to implement application logic.
 String getDefaultCompetency()
           
protected  String sendRedirect(String url)
          Redirect to a redirect view without params.
 void setCompetency(String competency)
           
 void setCreateDummyItems(Boolean createDummyItems)
           
 void setDefaultCompetency(String defaultCompetency)
           
 void setDefaultMastery(Float defaultMastery)
           
 void setDescription(String string)
           
 void setEducationalLevel(String educationalLevel)
           
 void setField(String field)
           
 void setGoals(String[] goals)
           
 void setGrouping(String grouping)
           
 void setLearningDevelopement(Float learningDevelopement)
           
 void setName(String name)
           
 void setScenario(String scenario)
           
 void setStage(String stage)
           
 void setStoreCourse(Boolean storeCourse)
           
 void setStoreCourseAsAPreset(Boolean storeCourseAsAPreset)
           
 void setUseGapDetection(Boolean useGapDetection)
           
 void setUseLM(String useLM)
           
 
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, 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 Category log

GENERATION_STATE_KEY

protected static final String GENERATION_STATE_KEY
See Also:
Constant Field Values
Constructor Detail

BookGenerationController

public BookGenerationController()
Method Detail

setStoreCourse

public void setStoreCourse(Boolean storeCourse)
Parameters:
useLM - the useLM to set

setCreateDummyItems

public void setCreateDummyItems(Boolean createDummyItems)
Parameters:
learningDevelopement - parameter for gap detection whether dummy items shall be returned for every request

setLearningDevelopement

public void setLearningDevelopement(Float learningDevelopement)
Parameters:
learningDevelopement - parameter for gap detection a fixed float value, which is multiplied with default mastery on every request

setStoreCourseAsAPreset

public void setStoreCourseAsAPreset(Boolean storeCourseAsAPreset)
Parameters:
storeCourseAsAPreset - parameter for gap detection whether a new preset should be inserted for gap detection

setDefaultMastery

public void setDefaultMastery(Float defaultMastery)
Parameters:
defaultMastery - parameter for gap detection prototypical default mastery during course generation

setUseGapDetection

public void setUseGapDetection(Boolean useGapDetection)
Parameters:
useGapDetection - parameter for gap detection enabled or not

setUseLM

public void setUseLM(String useLM)
Parameters:
useLM - the useLM to set

setEducationalLevel

public void setEducationalLevel(String educationalLevel)
Parameters:
educationalLevel - the educationalLevel to set

setField

public void setField(String field)
Parameters:
field - the field to set

setStage

public void setStage(String stage)

sendRedirect

protected String sendRedirect(String url)
Description copied from class: ControllerBase
Redirect to a redirect view without params.

Overrides:
sendRedirect in class ControllerBase

setGoals

public void setGoals(String[] goals)

setGrouping

public void setGrouping(String grouping)

setName

public void setName(String name)

setDescription

public void setDescription(String string)

setScenario

public void setScenario(String scenario)

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

setCompetency

public void setCompetency(String competency)

getDefaultCompetency

public String getDefaultCompetency()

setDefaultCompetency

public void setDefaultCompetency(String defaultCompetency)