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 Modifier and Type Class Description static classBackupRestoreController.BackupInfo
-
Constructor Summary
Constructors Constructor Description BackupRestoreController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownloadBackupExportResult(javax.servlet.http.HttpServletResponse response)voiddownloadLatestBackup(int surveyId, javax.servlet.http.HttpServletResponse response)JobProxygetCurrentJob()BackupRestoreController.BackupInfogetLatestBackupInfo(int surveyId)JobProxystartBackup(int surveyId)JobProxystartFullExport(CollectSurvey survey, boolean includeRecordFiles, boolean onlyOwnedRecords, String[] rootEntityKeyValues, boolean full)
-
-
-
Method Detail
-
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
public JobProxy getCurrentJob()
-
-