public abstract class QuestionnaireHelperBase extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static String |
UPDATE_WITH_NO_ANSWER_COPY |
| Constructor and Description |
|---|
QuestionnaireHelperBase() |
| Modifier and Type | Method and Description |
|---|---|
List<AnswerHeader> |
getAnswerHeaders() |
List<String> |
getHeaderLabels() |
abstract String |
getModuleCode() |
abstract ModuleQuestionnaireBean |
getModuleQnBean() |
protected QuestionnaireAnswerService |
getQuestionnaireAnswerService() |
String |
getRuleReferenced() |
protected TaskAuthorizationService |
getTaskAuthorizationService() |
protected String |
getUserIdentifier() |
boolean |
isAnswerQuestionnaire() |
void |
populateAnswers()
This method get/setup questionnaire answers when 'questionnaire' page is clicked.
|
void |
preSave()
This method is to do a couple of things, move question answer and re-evaluate 'completed' flag.
|
void |
resetHeaderLabels()
set up the tab labels for each questionnaire
|
void |
setAnswerHeaders(List<AnswerHeader> answerHeaders) |
void |
setAnswerQuestionnaire(boolean answerQuestionnaire) |
void |
setHeaderLabels(List<String> headerLabels) |
void |
setQuestionnaireActiveStatuses()
This method loops through the current list of answer headers, checking if the questionnaire for each is still active and
sets the status for each answer header accordingly.
|
protected void |
setQuestionnaireAnswerService(QuestionnaireAnswerService questionnaireAnswerService) |
void |
updateChildIndicator(int headerIndex)
This method to update whether a child question answer is to be displayed or not.
|
void |
updateQuestionnaireAnswer(int answerHeaderIndex)
This method is for the 'update' button to update questionnaire answer to newer version
either copy old answer to the new version or Not.
|
void |
versionAnswers() |
protected static final String UPDATE_WITH_NO_ANSWER_COPY
public abstract String getModuleCode()
public abstract ModuleQuestionnaireBean getModuleQnBean()
public void resetHeaderLabels()
public void setQuestionnaireActiveStatuses()
public void updateQuestionnaireAnswer(int answerHeaderIndex)
answerHeaderIndex - public void preSave()
public void updateChildIndicator(int headerIndex)
headerIndex - public void populateAnswers()
public void versionAnswers()
public boolean isAnswerQuestionnaire()
public void setAnswerQuestionnaire(boolean answerQuestionnaire)
public List<AnswerHeader> getAnswerHeaders()
public void setAnswerHeaders(List<AnswerHeader> answerHeaders)
protected QuestionnaireAnswerService getQuestionnaireAnswerService()
protected void setQuestionnaireAnswerService(QuestionnaireAnswerService questionnaireAnswerService)
protected TaskAuthorizationService getTaskAuthorizationService()
protected String getUserIdentifier()
public String getRuleReferenced()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.