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 Summary
Constructors Constructor Description UploadPackageJobResource()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetBackupFile()The original file backup created before the uploading process began.StringgetNewFilename()Get the new file name.FilegetTargetFile()Retrieves the file that serves as the target for the update process.voidsetBackupFile(File backupFile)SeegetBackupFile().voidsetNewFilename(String newFilename)SeegetNewFilename().voidsetTargetFile(File targetFile)SeegetTargetFile().
-
-
-
Method Detail
-
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)
SeegetBackupFile().- 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)
SeegetTargetFile().- 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)
SeegetNewFilename().- Parameters:
newFilename- the name of the new file.
-
-