@Controller @Scope(value="session") @RequestMapping(value="api") public class BackupRestoreController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BackupRestoreController.BackupInfo |
| Constructor and Description |
|---|
BackupRestoreController() |
| Modifier and Type | Method and Description |
|---|---|
void |
downloadBackupExportResult(javax.servlet.http.HttpServletResponse response) |
void |
downloadLatestBackup(int surveyId,
javax.servlet.http.HttpServletResponse response) |
JobProxy |
getCurrentJob() |
BackupRestoreController.BackupInfo |
getLatestBackupInfo(int surveyId) |
JobProxy |
startBackup(int surveyId) |
JobProxy |
startFullExport(CollectSurvey survey,
boolean includeRecordFiles,
boolean onlyOwnedRecords,
String[] rootEntityKeyValues,
boolean full) |
@RequestMapping(value="survey/{surveyId}/backup/latest/info",
method=GET)
@ResponseBody
public BackupRestoreController.BackupInfo getLatestBackupInfo(@PathVariable(value="surveyId")
int surveyId)
@RequestMapping(value="survey/{surveyId}/backup/start",
method=POST)
@ResponseBody
public JobProxy startBackup(@PathVariable(value="surveyId")
int surveyId)
@Transactional public JobProxy startFullExport(CollectSurvey survey, boolean includeRecordFiles, boolean onlyOwnedRecords, String[] rootEntityKeyValues, boolean full)
@RequestMapping(value="survey/{surveyId}/backup/latest.collect-backup",
method=GET)
public void downloadLatestBackup(@PathVariable(value="surveyId")
int surveyId,
javax.servlet.http.HttpServletResponse response)
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOException@RequestMapping(value="survey/{surveyId}/backup/result",
method=GET)
public void downloadBackupExportResult(javax.servlet.http.HttpServletResponse response)
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionpublic JobProxy getCurrentJob()
Copyright © 2021 Open Foris. All rights reserved.