Class BackupRestoreController
java.lang.Object
org.openforis.collect.web.controller.BackupRestoreController
@Controller
@Scope("session")
@RequestMapping("api")
public class BackupRestoreController
extends Object
- Author:
- S. Ricci
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadBackupExportResult(javax.servlet.http.HttpServletResponse response) voiddownloadLatestBackup(int surveyId, javax.servlet.http.HttpServletResponse response) getLatestBackupInfo(int surveyId) startBackup(int surveyId) startFullExport(CollectSurvey survey, boolean includeRecordFiles, boolean onlyOwnedRecords, String[] rootEntityKeyValues, boolean full)
-
Constructor Details
-
BackupRestoreController
public BackupRestoreController()
-
-
Method Details
-
getLatestBackupInfo
@RequestMapping(value="survey/{surveyId}/backup/latest/info", method=GET) @ResponseBody public BackupRestoreController.BackupInfo getLatestBackupInfo(@PathVariable("surveyId") int surveyId) -
startBackup
@RequestMapping(value="survey/{surveyId}/backup/start", method=POST) @Transactional @ResponseBody public JobProxy startBackup(@PathVariable("surveyId") int surveyId) -
startFullExport
@Transactional public JobProxy startFullExport(CollectSurvey survey, boolean includeRecordFiles, boolean onlyOwnedRecords, String[] rootEntityKeyValues, boolean full) -
downloadLatestBackup
@RequestMapping(value="survey/{surveyId}/backup/latest.collect-backup", method=GET) public void downloadLatestBackup(@PathVariable("surveyId") int surveyId, javax.servlet.http.HttpServletResponse response) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-
downloadBackupExportResult
@RequestMapping(value="survey/{surveyId}/backup/result", method=GET) public void downloadBackupExportResult(javax.servlet.http.HttpServletResponse response) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-
getCurrentJob
-