Class UploadPackageJobResource
java.lang.Object
com.xwiki.admintools.uploadPackageJob.UploadPackageJobResource
Store data for package upload job process.
- Since:
- 1.1
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe original file backup created before the uploading process began.Get the new file name.Retrieves the file that serves as the target for the update process.voidsetBackupFile(File backupFile) SeegetBackupFile().voidsetNewFilename(String newFilename) SeegetNewFilename().voidsetTargetFile(File targetFile) SeegetTargetFile().
-
Constructor Details
-
UploadPackageJobResource
public UploadPackageJobResource()Default constructor.
-
-
Method Details
-
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
SeegetBackupFile().- Parameters:
backupFile- the original file backup.
-
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
SeegetTargetFile().- Parameters:
targetFile- the update target file.
-
getNewFilename
Get the new file name.- Returns:
- the name of the new file.
-
setNewFilename
SeegetNewFilename().- Parameters:
newFilename- the name of the new file.
-