Class UploadPackageJobResource

java.lang.Object
com.xwiki.admintools.uploadPackageJob.UploadPackageJobResource

@Unstable public class UploadPackageJobResource extends Object
Store data for package upload job process.
Since:
1.1
Version:
$Id$
  • Constructor Details

    • UploadPackageJobResource

      public UploadPackageJobResource()
      Default constructor.
  • Method Details

    • getBackupFile

      public File getBackupFile()
      The original file backup created before the uploading process began. Useful when restoring a failed upload process. Will be null if the target file does not replace any files.
      Returns:
      the original file backup.
    • setBackupFile

      public void setBackupFile(File backupFile)
      Parameters:
      backupFile - the original file backup.
    • getTargetFile

      public File getTargetFile()
      Retrieves the file that serves as the target for the update process. If a file already exists at the intended location, this will return the original file. If no file exists at the location, this will return the new file being uploaded.
      Returns:
      the target file for the update process.
    • setTargetFile

      public void setTargetFile(File targetFile)
      Parameters:
      targetFile - the update target file.
    • getNewFilename

      public String getNewFilename()
      Get the new file name.
      Returns:
      the name of the new file.
    • setNewFilename

      public void setNewFilename(String newFilename)
      Parameters:
      newFilename - the name of the new file.