170 lines
2.8 KiB
Java
170 lines
2.8 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.widgets.mpformbuilder.shared.upload;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* The Class WorkspaceUploadFile.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Aug 3, 2015
|
|
*/
|
|
public class WorkspaceUploadFile implements Serializable{
|
|
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = 4693939404459889859L;
|
|
private String parentId;
|
|
private String fileName;
|
|
private String itemId;
|
|
private String versionName;
|
|
|
|
/**
|
|
* Instantiates a new workspace upload file.
|
|
*/
|
|
public WorkspaceUploadFile() {
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Instantiates a new workspace upload file.
|
|
*
|
|
* @param parentId the parent id
|
|
* @param itemId the item id
|
|
* @param fileName the file name
|
|
* @param versionName the version
|
|
*/
|
|
public WorkspaceUploadFile(String parentId, String itemId, String fileName, String versionName) {
|
|
super();
|
|
this.parentId = parentId;
|
|
this.itemId = itemId;
|
|
this.fileName = fileName;
|
|
this.versionName = versionName;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Gets the version name.
|
|
*
|
|
* @return the version name
|
|
*/
|
|
public String getVersionName() {
|
|
|
|
return versionName;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the version name.
|
|
*
|
|
* @param versionName the new version name
|
|
*/
|
|
public void setVersionName(String versionName) {
|
|
|
|
this.versionName = versionName;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Sets the item id.
|
|
*
|
|
* @param itemId the itemId to set
|
|
*/
|
|
public void setItemId(String itemId) {
|
|
this.itemId = itemId;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the parent id.
|
|
*
|
|
* @return the parentId
|
|
*/
|
|
public String getParentId() {
|
|
return parentId;
|
|
}
|
|
|
|
/**
|
|
* Gets the file name.
|
|
*
|
|
* @return the fileName
|
|
*/
|
|
public String getFileName() {
|
|
return fileName;
|
|
}
|
|
|
|
/**
|
|
* Sets the parent id.
|
|
*
|
|
* @param parentId the parentId to set
|
|
*/
|
|
public void setParentId(String parentId) {
|
|
this.parentId = parentId;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Gets the item id.
|
|
*
|
|
* @return the itemId
|
|
*/
|
|
public String getItemId() {
|
|
return itemId;
|
|
}
|
|
|
|
/**
|
|
* Sets the file name.
|
|
*
|
|
* @param fileName the fileName to set
|
|
*/
|
|
public void setFileName(String fileName) {
|
|
this.fileName = fileName;
|
|
}
|
|
|
|
/*
|
|
* (non-Javadoc)
|
|
*
|
|
* @see java.lang.Object#hashCode()
|
|
*/
|
|
@Override
|
|
public int hashCode() {
|
|
int hash = 31;
|
|
hash = hash * 13 + (parentId == null ? 0 : parentId.hashCode());
|
|
hash = hash * 17 + (fileName == null ? 0 : fileName.hashCode());
|
|
hash = hash * 19 + (itemId == null ? 0 : itemId.hashCode());
|
|
return hash;
|
|
}
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
* @see java.lang.Object#toString()
|
|
*/
|
|
@Override
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("WorkspaceUploadFile [parentId=");
|
|
builder.append(parentId);
|
|
builder.append(", fileName=");
|
|
builder.append(fileName);
|
|
builder.append(", itemId=");
|
|
builder.append(itemId);
|
|
builder.append(", versionName=");
|
|
builder.append(versionName);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
|
|
|
|
}
|