public String getURL(final FileObject file) {
   final String siteName = file.updateSite;
   assert (siteName != null && !siteName.equals(""));
   final UpdateSite site = getUpdateSite(siteName, false);
   if (site == null) return null;
   return site.getURL() + file.filename.replace(" ", "%20") + "-" + file.getTimestamp();
 }
Example #2
0
 public UploadableFile(final FilesCollection files, final FileObject file) {
   this(files.prefix(file), file.getFilename() + "-" + file.getTimestamp());
   this.file = file;
 }