122 lines
2.4 KiB
Java
122 lines
2.4 KiB
Java
package org.gcube.portlets.user.td.gwtservice.shared.tr.resources;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.destination.Destination;
|
|
|
|
/**
|
|
*
|
|
* @author giancarlo email: <a
|
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
public class SaveResourceSession implements Serializable {
|
|
|
|
private static final long serialVersionUID = 2282498402676932983L;
|
|
|
|
private String uri;
|
|
private String mimeType;
|
|
private String extension;
|
|
private Destination destination;
|
|
private String itemId;
|
|
private String fileName;
|
|
private String fileDescription;
|
|
|
|
public SaveResourceSession() {
|
|
super();
|
|
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param uri
|
|
* @param mimeType
|
|
* @param extension
|
|
* @param destination
|
|
* @param itemId
|
|
* @param fileName
|
|
* @param fileDescription
|
|
*/
|
|
public SaveResourceSession(String uri, String mimeType, String extension,
|
|
Destination destination, String itemId, String fileName,
|
|
String fileDescription) {
|
|
super();
|
|
this.uri = uri;
|
|
this.mimeType = mimeType;
|
|
this.extension = extension;
|
|
this.destination = destination;
|
|
this.itemId = itemId;
|
|
this.fileName = fileName;
|
|
this.fileDescription = fileDescription;
|
|
}
|
|
|
|
|
|
|
|
public String getUri() {
|
|
return uri;
|
|
}
|
|
|
|
public void setUri(String uri) {
|
|
this.uri = uri;
|
|
}
|
|
|
|
public String getMimeType() {
|
|
return mimeType;
|
|
}
|
|
|
|
public void setMimeType(String mimeType) {
|
|
this.mimeType = mimeType;
|
|
}
|
|
|
|
public String getExtension() {
|
|
return extension;
|
|
}
|
|
|
|
public void setExtension(String extension) {
|
|
this.extension = extension;
|
|
}
|
|
|
|
public Destination getDestination() {
|
|
return destination;
|
|
}
|
|
|
|
public void setDestination(Destination destination) {
|
|
this.destination = destination;
|
|
}
|
|
|
|
public String getItemId() {
|
|
return itemId;
|
|
}
|
|
|
|
public void setItemId(String itemId) {
|
|
this.itemId = itemId;
|
|
}
|
|
|
|
public String getFileName() {
|
|
return fileName;
|
|
}
|
|
|
|
public void setFileName(String fileName) {
|
|
this.fileName = fileName;
|
|
}
|
|
|
|
public String getFileDescription() {
|
|
return fileDescription;
|
|
}
|
|
|
|
public void setFileDescription(String fileDescription) {
|
|
this.fileDescription = fileDescription;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "SaveResourceSession [uri=" + uri + ", mimeType=" + mimeType
|
|
+ ", extension=" + extension + ", destination=" + destination
|
|
+ ", itemId=" + itemId + ", fileName=" + fileName
|
|
+ ", fileDescription=" + fileDescription + "]";
|
|
}
|
|
|
|
|
|
|
|
}
|