|
|
|
|
|
||||||||||
| 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.SurveyCreatorController
public class SurveyCreatorController
Creates and persists a Survey from the given Configuration.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller |
|---|
Controller.AlwaysRun |
| Constructor Summary | |
|---|---|
SurveyCreatorController()
|
|
| Method Summary | |
|---|---|
SurveyCreatorControllerResult |
createSurvey(Bundle bundle, ServiceRequest request)
Creates and persists the Survey from the given config specified
by request-parameter as given by
SurveyCreatorControllerConfiguration.getSurveyParameterName(). |
void |
initialize(SurveyCreatorControllerConfiguration conf)
Initialises the SurveyCreatorController with the given
Configuration. |
java.lang.Object |
removeQuestionnaire(Bundle bundle, ServiceRequest request)
Removes the Questionnaire specified by request-parameter
idfrom database. |
java.lang.Object |
removeSurvey(Bundle bundle, ServiceRequest request)
Removes the Survey specified by request-parameter id
from database. |
java.lang.Object |
updateSurvey(Bundle bundle, ServiceRequest request)
Update and persists the Survey from the given config specified by
request-parameter as given by
SurveyCreatorControllerConfiguration.getSurveyParameterName(). |
| 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 SurveyCreatorController()
| Method Detail |
|---|
@Action(value="createSurvey") @Permission(value="createSurvey") public final SurveyCreatorControllerResult createSurvey(Bundle bundle, ServiceRequest request)
Survey from the given config specified
by request-parameter as given by
SurveyCreatorControllerConfiguration.getSurveyParameterName().
default: surveyName
bundle - the Bundlerequest - the ServiceRequest
Object, precisely a
SurveyCreatorControllerResult@Action(value="updateSurvey") @Permission(value="updateSurvey") public final java.lang.Object updateSurvey(Bundle bundle, ServiceRequest request)
Survey from the given config specified by
request-parameter as given by
SurveyCreatorControllerConfiguration.getSurveyParameterName().
default: surveyName
NOTE: This task will fail if the Surveys are not
fully compatible meaning its amount and question-types are fully
identical. This task is only to override settings for
the Survey and its AbstractQuestions.
bundle - the Bundlerequest - the ServiceRequest
Object, precisely a
SurveyCreatorControllerResult@Action(value="removeSurvey") @Permission(value="removeSurvey") public final java.lang.Object removeSurvey(Bundle bundle, ServiceRequest request)
Survey specified by request-parameter id
from database. If request-parameter q = "q" the
questionnaires associated with the Survey will be removed also.
bundle - the Bundlerequest - the ServiceRequest
Object, precisely a
SurveyCreatorControllerResult@Action(value="removeQuestionnaire") @Permission(value="removeQuestionnaire") public final java.lang.Object removeQuestionnaire(Bundle bundle, ServiceRequest request)
Questionnaire specified by request-parameter
idfrom database.
bundle - the Bundlerequest - the ServiceRequest
Object, precisely a
SurveyCreatorControllerResultpublic final void initialize(SurveyCreatorControllerConfiguration conf)
SurveyCreatorController with the given
Configuration.
initialize in interface Configurable<SurveyCreatorControllerConfiguration>conf - the Configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||