mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
125781 rmunteanu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
77 lines
1.5 KiB
Java
77 lines
1.5 KiB
Java
package org.alfresco.web.bean;
|
|
|
|
import java.io.File;
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* Bean to hold the results of a file upload
|
|
*
|
|
* @author gavinc
|
|
*/
|
|
public final class FileUploadBean implements Serializable
|
|
{
|
|
|
|
private static final long serialVersionUID = 7667383955924957544L;
|
|
|
|
public static final String FILE_UPLOAD_BEAN_NAME = "alfresco.UploadBean";
|
|
|
|
public static String getKey(final String id)
|
|
{
|
|
return ((id == null || id.length() == 0)
|
|
? FILE_UPLOAD_BEAN_NAME
|
|
: FILE_UPLOAD_BEAN_NAME + "-" + id);
|
|
}
|
|
|
|
private File file;
|
|
private String fileName;
|
|
private String filePath;
|
|
|
|
/**
|
|
* @return Returns the file
|
|
*/
|
|
public File getFile()
|
|
{
|
|
return file;
|
|
}
|
|
|
|
/**
|
|
* @param file The file to set
|
|
*/
|
|
public void setFile(File file)
|
|
{
|
|
this.file = file;
|
|
}
|
|
|
|
/**
|
|
* @return Returns the name of the file uploaded
|
|
*/
|
|
public String getFileName()
|
|
{
|
|
return fileName;
|
|
}
|
|
|
|
/**
|
|
* @param fileName The name of the uploaded file
|
|
*/
|
|
public void setFileName(String fileName)
|
|
{
|
|
this.fileName = fileName;
|
|
}
|
|
|
|
/**
|
|
* @return Returns the path of the file uploaded
|
|
*/
|
|
public String getFilePath()
|
|
{
|
|
return filePath;
|
|
}
|
|
|
|
/**
|
|
* @param filePath The file path of the uploaded file
|
|
*/
|
|
public void setFilePath(String filePath)
|
|
{
|
|
this.filePath = filePath;
|
|
}
|
|
}
|