51 lines
1.4 KiB
Java
51 lines
1.4 KiB
Java
package org.gcube.portlets.user.shareupdates.client.view;
|
|
|
|
public class AttachedFile {
|
|
|
|
private String fileName;
|
|
private String fileAbsolutePathOnServer;
|
|
private AttachmentPreviewer atPrev;
|
|
private boolean correctlyUploaded;
|
|
|
|
/**
|
|
*
|
|
* @param fileName name of the file
|
|
* @param fileAbsolutePathOnServer path on the server
|
|
* @param atPrev object that shows such attachment
|
|
* @param uploaded has been it correctly uploaded on the server?
|
|
*/
|
|
public AttachedFile(String fileName, String fileAbsolutePathOnServer,
|
|
AttachmentPreviewer atPrev, boolean uploaded) {
|
|
super();
|
|
this.fileName = fileName;
|
|
this.fileAbsolutePathOnServer = fileAbsolutePathOnServer;
|
|
this.atPrev = atPrev;
|
|
this.correctlyUploaded = uploaded;
|
|
}
|
|
public String getFileName() {
|
|
return fileName;
|
|
}
|
|
public void setFileName(String fileName) {
|
|
this.fileName = fileName;
|
|
}
|
|
public String getFileAbsolutePathOnServer() {
|
|
return fileAbsolutePathOnServer;
|
|
}
|
|
public void setFileAbsolutePathOnServer(String fileAbsolutePathOnServer) {
|
|
this.fileAbsolutePathOnServer = fileAbsolutePathOnServer;
|
|
}
|
|
public AttachmentPreviewer getAtPrev() {
|
|
return atPrev;
|
|
}
|
|
public void setAtPrev(AttachmentPreviewer atPrev) {
|
|
this.atPrev = atPrev;
|
|
}
|
|
public boolean isCorrectlyUploaded() {
|
|
return correctlyUploaded;
|
|
}
|
|
public void setCorrectlyUploaded(boolean correctlyUploaded) {
|
|
this.correctlyUploaded = correctlyUploaded;
|
|
}
|
|
|
|
}
|