|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.bundle.Controller
org.torweg.pulse.component.survey.SurveyController
public class SurveyController
Executes Surveys (according to their settings).
The following methods produce the output in form of a JAXB-able result:
executeSurveyController(Bundle, ServiceRequest)SurveyProgress was processed:
outputAfterProgressProcessing(SurveyProgress, SurveyControllerResult, Bundle, ServiceRequest, boolean)
SurveyProgress and processing the
actual answering of a question:
SurveyProgress if none could be retrieved from session
and all the validation/checks have passed:
buildActualSurveyProgress(Survey, User, SurveyToken)
answerCurrentQuestion(SurveyProgress, int, ServiceRequest)
Following methods are the sub-routines to perform the required checks
according to the current Survey's settings:
Following methods take care of the session-management of the current
SurveyProgress:
retrieveSurveyProgressFromSession(Long, Bundle, ServiceRequest)
storeSurveyProgressToSession(SurveyProgress, Bundle, ServiceRequest)
removeSurveyProgressFromSession(SurveyProgress, Bundle, ServiceRequest)
Following methods take care of loading and storing the required entities of
the current SurveyProgress:
Following methods perform the extraction of (validated) request-parameters
required for loading/building the current SurveyProgress:
extractSurveyIdFromCommand(Command)extractValidatedQuestionIndexFromCommand(Command, SurveyProgress)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller |
|---|
Controller.AlwaysRun |
| Constructor Summary | |
|---|---|
SurveyController()
|
|
| Method Summary | |
|---|---|
SurveyControllerResult |
executeSurveyController(Bundle bundle, ServiceRequest request)
Processes a survey-request. |
void |
initialize(SurveyControllerConfiguration conf)
Initialises the SurveyController with the given
Configuration. |
| Methods inherited from class org.torweg.pulse.bundle.Controller |
|---|
getAlwaysRun, isAlwaysRun, setAlwaysRun |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SurveyController()
| Method Detail |
|---|
@Action(value="executeSurveyController") @Permission(value="executeSurveyController") public final SurveyControllerResult executeSurveyController(Bundle bundle, ServiceRequest request)
The Survey which is to be processed is to be specified by
surveyId.
bundle - the Bundlerequest - the ServiceRequest
Object, precisely a
SurveyControllerResultpublic final void initialize(SurveyControllerConfiguration conf)
SurveyController with the given
Configuration.
initialize in interface Configurable<SurveyControllerConfiguration>conf - the Configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||