Class SurveyEditVM
- java.lang.Object
-
- org.openforis.collect.designer.viewmodel.BaseVM
-
- org.openforis.collect.designer.viewmodel.SurveyBaseVM
-
- org.openforis.collect.designer.viewmodel.SurveyEditVM
-
public class SurveyEditVM extends SurveyBaseVM
- Author:
- S. Ricci
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openforis.collect.designer.viewmodel.SurveyBaseVM
SurveyBaseVM.CanLeaveFormCompleteConfirmHandler, SurveyBaseVM.CanLeaveFormConfirmHandler, SurveyBaseVM.SurveyType
-
-
Field Summary
Fields Modifier and Type Field Description static StringBACKGROUD_SAVE_GLOBAL_COMMANDstatic StringSHOW_PREVIEW_POP_UP_GLOBAL_COMMAND-
Fields inherited from class org.openforis.collect.designer.viewmodel.SurveyBaseVM
currentLanguageCode, DATE_FORMAT, fieldLabelKeyPrefixes, NODE_CONVERTED_GLOBAL_COMMAND, SCHEMA_CHANGED_GLOBAL_COMMAND, schemaUpdater, survey, SURVEY_CHANGED_GLOBAL_COMMAND, SURVEY_SAVED_GLOBAL_COMMAND, UNDO_LAST_CHANGES_GLOBAL_COMMAND, VALIDATE_ALL_GLOBAL_COMMAND, VERSIONS_UPDATED_GLOBAL_COMMAND
-
Fields inherited from class org.openforis.collect.designer.viewmodel.BaseVM
COLLECT_EARTH_PROJECT_FILE_CREATOR_LOADER, jobManager, userGroupManager, userManager
-
-
Constructor Summary
Constructors Constructor Description SurveyEditVM()
-
Method Summary
-
Methods inherited from class org.openforis.collect.designer.viewmodel.SurveyBaseVM
checkCanLeaveForm, checkCanLeaveForm, checkCanLeaveForm, codeListsUpdated, createBasicModuleParameters, currentFormValidated, currentLanguageChanged, dispatchCurrentFormValidatedCommand, dispatchCurrentFormValidatedCommand, dispatchCurrentFormValidatedCommand, dispatchCurrentFormValidatedCommand, dispatchNodeConvertedCommand, dispatchSchemaChangedCommand, dispatchSurveyChangedCommand, dispatchTaxonomiesUpdatedCommand, dispatchValidateAllCommand, getCodeLists, getCurrentLanguageCode, getDateFormat, getDefaultLanguageCode, getEditableRecordStepNames, getExpressionValidator, getFormVersionIdsWithEmptyOption, getFormVersions, getFormVersionsWithEmptyOption, getRootEntities, getRootVM, getSurvey, getSurveyId, getTaxonomyNames, getUnitLabel, getUnitLabelFromPrecision, getUnits, getVersionLabel, init, initSurvey, isCollectEarthSurvey, isCurrentEditedSurvey, isCurrentFormBlocking, isCurrentFormValid, isDefaultLanguage, isSingleRootEntityDefined, isSurveyPublished, isSurveyRelatedToPublishedSurvey, isSurveyStored, sortByName, surveySaved, tabSetsUpdated, taxonomiesUpdated, undoLastChanges, undoLastChanges, unitsUpdated, versionsUpdated
-
Methods inherited from class org.openforis.collect.designer.viewmodel.BaseVM
closePopUp, getComponentsPath, getDefaultPublicUserGroupItem, getFormFieldValue, getFormFieldValue, getInitParameter, getLoggedUser, getLoggedUsername, getSession, getSessionStatus, getUserGroupsModel, initUserGroupsModel, joinList, joinValues, notifyChange, openPopUp, openPopUp, prettyDateFormat, setFormFieldValue, setFormFieldValue
-
-
-
-
Field Detail
-
SHOW_PREVIEW_POP_UP_GLOBAL_COMMAND
public static final String SHOW_PREVIEW_POP_UP_GLOBAL_COMMAND
- See Also:
- Constant Field Values
-
BACKGROUD_SAVE_GLOBAL_COMMAND
public static final String BACKGROUD_SAVE_GLOBAL_COMMAND
- See Also:
- Constant Field Values
-
-
Method Detail
-
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()
-
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:
surveyChangedin classSurveyBaseVM
-
surveyLanguagesChanged
public void surveyLanguagesChanged()
-
closeSurveyLanguageSelectPopUp
public void closeSurveyLanguageSelectPopUp()
-
isSurveyChanged
public boolean isSurveyChanged()
- Overrides:
isSurveyChangedin classSurveyBaseVM
-
-