Class BackupRestoreController

java.lang.Object
org.openforis.collect.web.controller.BackupRestoreController

@Controller @Scope("session") @RequestMapping("api") public class BackupRestoreController extends Object
Author:
S. Ricci
  • 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:
      FileNotFoundException
      IOException
    • downloadBackupExportResult

      @RequestMapping(value="survey/{surveyId}/backup/result", method=GET) public void downloadBackupExportResult(javax.servlet.http.HttpServletResponse response) throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • getCurrentJob

      public JobProxy getCurrentJob()