Class SurveyEditVM


public class SurveyEditVM extends SurveyBaseVM
Author:
S. Ricci
  • Field Details

  • Constructor Details

    • SurveyEditVM

      public SurveyEditVM()
  • Method Details

    • redirectToSurveyEditPage

      public static void redirectToSurveyEditPage(int surveyId)
    • dispatchSurveySaveCommand

      public static void dispatchSurveySaveCommand()
    • init

      public void init(Integer surveyId)
    • openLanguageManagerPopUp

      public void openLanguageManagerPopUp()
    • openSchemaLabelsImportExportPopUp

      public void openSchemaLabelsImportExportPopUp()
    • closeSchemaLabelsImportPopUp

      public void closeSchemaLabelsImportPopUp()
    • openSchemaAttributesImportPopUp

      public void openSchemaAttributesImportPopUp()
    • openSRSManagerPopUp

      public void openSRSManagerPopUp()
    • closeSRSManagerPopUp

      public void closeSRSManagerPopUp()
    • openCodeListsManagerPopUp

      public void openCodeListsManagerPopUp(Boolean editingAttribute, CodeList selectedCodeList)
    • closeCodeListsManagerPopUp

      public void closeCodeListsManagerPopUp(org.zkoss.bind.Binder binder, Boolean editingAttribute, CodeList selectedCodeList)
    • dispatchCodeListsPopUpClosedCommand

      public void dispatchCodeListsPopUpClosedCommand(Boolean editingAttribute, CodeList selectedCodeList)
    • openUnitsManagerPopUp

      public void openUnitsManagerPopUp()
    • closeUnitsManagerPopUp

      public void closeUnitsManagerPopUp(org.zkoss.bind.Binder binder)
    • openVersioningManagerPopUp

      public void openVersioningManagerPopUp()
    • closeVersioningManagerPopUp

      public void closeVersioningManagerPopUp()
    • backToSurveysList

      public void backToSurveysList()
    • performBackToSurveysList

      protected void performBackToSurveysList()
    • showMainPage

      protected void showMainPage()
    • resetSessionStatus

      protected void resetSessionStatus()
    • getAvailableLanguages

      public List<String> getAvailableLanguages()
    • languageCodeSelected

      public void languageCodeSelected(String selectedLanguageCode)
    • save

      public boolean save(org.zkoss.bind.Binder binder, Runnable runAfterSave)
      Returns true if there wasn't any error and the survey has been saved immediately without showing any confirm PopUp
    • backgroundSurveySave

      public void backgroundSurveySave() throws SurveyStoreException
      Throws:
      SurveyStoreException
    • checkCanSave

      protected boolean checkCanSave()
    • validate

      public void validate()
    • validateCollectMobile

      public void validateCollectMobile()
    • exportSchemaSummary

      public void exportSchemaSummary()
    • exportCsvDataImportTemplate

      public void exportCsvDataImportTemplate() throws IOException
      Throws:
      IOException
    • exportCeCsvDataImportTemplate

      public void exportCeCsvDataImportTemplate() throws IOException
      Throws:
      IOException
    • exportSurvey

      public void exportSurvey() throws IOException
      Throws:
      IOException
    • exportCEGridTemplate

      public void exportCEGridTemplate() throws IOException
      Throws:
      IOException
    • openPreviewPopUp

      public void openPreviewPopUp(ModelVersion formVersion, EntityDefinition rootEntity)
    • validateShowPreview

      protected boolean validateShowPreview(EntityDefinition rootEntityDefn, ModelVersion version)
    • showDataEntryPreview

      public void showDataEntryPreview() throws SurveyStoreException
      Throws:
      SurveyStoreException
    • showDataCleansingPreview

      public void showDataCleansingPreview() throws SurveyStoreException
      Throws:
      SurveyStoreException
    • showPreview

      public void showPreview(CollectRecord.Step recordStep) throws SurveyStoreException
      Throws:
      SurveyStoreException
    • openPreviewPreferencesPopUp

      protected void openPreviewPreferencesPopUp()
    • closePreviewPreferencesPopUp

      public void closePreviewPreferencesPopUp()
    • surveyChanged

      public void surveyChanged()
      Overrides:
      surveyChanged in class SurveyBaseVM
    • surveyLanguagesChanged

      public void surveyLanguagesChanged()
    • closeSurveyLanguageSelectPopUp

      public void closeSurveyLanguageSelectPopUp()
    • isSurveyChanged

      public boolean isSurveyChanged()
      Overrides:
      isSurveyChanged in class SurveyBaseVM