cmu.jspsurveymanager.controllers
Class SurveyController

java.lang.Object
  extended by cmu.jspsurveymanager.controllers.SurveyController

public class SurveyController
extends java.lang.Object


Constructor Summary
SurveyController()
           
 
Method Summary
 void doChangeStatus(Controller.SessionParameters state)
           
 void doConfirmDeleteSurveyPage(Controller.SessionParameters state)
           
 void doDeleteSurvey(Controller.SessionParameters state)
           
 void doNewSurvey(Controller.SessionParameters state)
           
 void doNewSurveyPage(Controller.SessionParameters state)
           
 void doSurveyAdminsPage(Controller.SessionParameters state)
           
 void doSurveyDownload(Controller.SessionParameters state)
           
 void doSurveyDownloadPage(Controller.SessionParameters state)
           
 void doSurveyEditorPage(Controller.SessionParameters state)
           
 void doSurveyEditorWebStartPage(Controller.SessionParameters state, boolean v2Mac)
           
 void doSurveyPage(Controller.SessionParameters state)
           
 void doSurveyPropertiesPage(Controller.SessionParameters state)
           
 void doSurveyUpdatePermissions(Controller.SessionParameters state)
           
 void doSurveyUpload(Controller.SessionParameters state)
           
 void doSurveyUploadPage(Controller.SessionParameters state)
           
 void doUpgradeSurveyAction(Controller.SessionParameters state)
           
 void doUpgradeSurveyPage(Controller.SessionParameters state)
           
 java.lang.String unzipSurvey(java.io.File unzipSurveyTo, javax.servlet.ServletConfig config)
           
 java.lang.String unzipSurvey(java.io.File unzipSurveyTo, javax.servlet.ServletConfig config, boolean dontOverwriteSomeFiles)
          Unzip the survey template into a given webapp folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurveyController

public SurveyController()
Method Detail

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