Method Summary |
|
public boolean | canClose(XProject project) |
public Survey | getCurrentSurvey() |
public String | getCurrentSurveyName() |
public String | getFinishPage() |
public String | getFreeTextTemplate() Gets the name of the file defining the template
for "free text" type of questions. |
public ConnectionObject | getInputConnectionObject() Gets the connectionObject used to retrieve the survey questions from
the specified database. |
public String | getMultipleChoiceTemplate() Gets the name of the file defining the template
for a "multiple choice" type of questions. |
public String | getMutuallyExclusiveTemplate() Gets the name of the file defining the template
for "mutually exclusive" type of questions. |
public int | getNextSurveyId() Gets the id of the next survey int survey list
contained in this survey manager. |
public int | getNumLanguages() |
public int | getNumSurveys() |
public ConnectionObject | getOutputConnectionObject() Gets the connectionObject used to store the user's responses in
the specified database. |
public int | getQuestionsPerPage() Gets the max number of questions that
can be shown on a single page in the
survey application. |
public String | getStartPage() |
public Survey | getSurvey(int index) |
public String | getSurveyFile(String languageName) Gets the survey associated with the specified language. |
public int | getSurveyInputType() Gets whether the survey questions should be read
from the database or the file. |
public int | getSurveyOutputType() Gets whether the user responses should be
stored into the database or the file. |
public boolean | hasSessions() |
public void | initialize(XProject project) |
public void | loadSurvey(File file, int surveyId, String surveyName) Loads the specified survey and sets it as the current one. |
public void | loadSurvey(ConnectionObject co, String surveyName, String languageName) Loads the specified survey and sets it as the current one. |
public void | loadSurvey(String langName) |
public void | loadSurvey(int index, String name, String language, String path) Loads a survey from file such that the file names is _.xml
e.g. |
public void | loadSurveyFromDb(String surveyName, String languageName) |
public void | loadSurveyFromFile(File file) |
public void | reset() Reset the current survey. |
public void | restart() |
public boolean | restartSurvey() |
public void | saveSurvey(int index, String name, String language, String path) |
public void | saveSurvey(File file) |
public void | saveUserResponses(Vector responses) |
protected void | saveUserResponsesDb(Vector responses, java.sql.Date startTime, java.sql.Date endTime) |
protected void | saveUserResponsesFile(Vector responses) |
public void | setCurrentSurvey(Survey survey) |
public void | setFinishPage(String fp) |
public void | setFreeTextTemplate(String freeTextTemplate) Sets the name of the file defining the template
for "free text" type of questions. |
public void | setMultipleChoiceTemplate(String multipleChoiceTemplate) Sets the name of the file defining the template
for "multiple choice" type of questions. |
public void | setMutuallyExclusiveTemplate(String mutuallyExclusiveTemplate) Sets the name of the file defining the template
for "mutually exclusive" type of questions. |
public void | setRestartSurvey(boolean restart) Sets whether to restart automatically the survey application. |
public void | setSurveyName(String sn) |
public void | shutdown() |
public void | write(Writer writer) |