cmu.jspsurveymanager.controllers
Class SurveyController
java.lang.Object
cmu.jspsurveymanager.controllers.SurveyController
public class SurveyController
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SurveyController
public SurveyController()
doNewSurveyPage
public void doNewSurveyPage(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doNewSurvey
public void doNewSurvey(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doConfirmDeleteSurveyPage
public void doConfirmDeleteSurveyPage(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doDeleteSurvey
public void doDeleteSurvey(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doUpgradeSurveyPage
public void doUpgradeSurveyPage(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doUpgradeSurveyAction
public void doUpgradeSurveyAction(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doChangeStatus
public void doChangeStatus(Controller.SessionParameters state)
doSurveyPage
public void doSurveyPage(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doSurveyPropertiesPage
public void doSurveyPropertiesPage(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doSurveyUploadPage
public void doSurveyUploadPage(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doSurveyUpload
public void doSurveyUpload(Controller.SessionParameters state)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
doSurveyDownloadPage
public void doSurveyDownloadPage(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doSurveyDownload
public void doSurveyDownload(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doSurveyEditorWebStartPage
public void doSurveyEditorWebStartPage(Controller.SessionParameters state,
boolean v2Mac)
throws java.io.IOException
- Throws:
java.io.IOException
doSurveyEditorPage
public void doSurveyEditorPage(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
unzipSurvey
public java.lang.String unzipSurvey(java.io.File unzipSurveyTo,
javax.servlet.ServletConfig config)
- Parameters:
unzipSurveyTo
- templateZip
-
- Returns:
- an error message if an error occurred, returns null if it happened successfully.
unzipSurvey
public java.lang.String unzipSurvey(java.io.File unzipSurveyTo,
javax.servlet.ServletConfig config,
boolean dontOverwriteSomeFiles)
- Unzip the survey template into a given webapp folder. Writes over whatever's in there without any checking or error.
Set dontOverwriteSomeFiles to true when you're "upgrading" a survey to the latest template. It still might write over something, but it'll write over less.
- Parameters:
unzipSurveyTo
- config
-
- Returns:
doSurveyAdminsPage
public void doSurveyAdminsPage(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doSurveyUpdatePermissions
public void doSurveyUpdatePermissions(Controller.SessionParameters state)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException