org.activemath.webapp.survey
Class SurveyManager
java.lang.Object
org.activemath.webapp.survey.SurveyManager
public class SurveyManager
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Logger log
SurveyManager
public SurveyManager()
setSurveyName
public void setSurveyName(String surveyName)
xmlEscape
public String xmlEscape(String input)
generateDOM
public org.jdom.Document generateDOM(File fileToAppend)
throws Exception
- Throws:
Exception
getLogfile
public File getLogfile(String name,
boolean create)
throws IOException
- Parameters:
name - - name of surveycreate - - create file if it doesn't exist?
- Returns:
-
- Throws:
IOException - - if (!create) and file doesn't exist
getLogfile
public File getLogfile(String name)
throws IOException
- Throws:
IOException
generateNames
public Set<String> generateNames(org.jdom.Document doc)
getAvailableSurveys
public static List<String> getAvailableSurveys()
- Returns:
- An unordered list of strings representing names of available surveys
generateSurveyData
public List<SurveyData> generateSurveyData(org.jdom.Document doc,
Set<String> names)
throws Exception
- Throws:
Exception