125 lines
2.2 KiB
Java
Executable File
125 lines
2.2 KiB
Java
Executable File
package org.gcube.data.analysis.dataminermanagercl.shared.workspace;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
*
|
|
* @author Giancarlo Panichi
|
|
*
|
|
*
|
|
*/
|
|
public class ItemDescription implements Serializable {
|
|
|
|
private static final long serialVersionUID = -6624452446980057923L;
|
|
|
|
private String id;
|
|
private String name;
|
|
private String owner;
|
|
private String path;
|
|
private String type;
|
|
private String publicLink;
|
|
private String mimeType;
|
|
private String lenght;
|
|
|
|
public ItemDescription() {
|
|
super();
|
|
}
|
|
|
|
public ItemDescription(String id, String name, String owner, String path, String type) {
|
|
super();
|
|
this.id = id;
|
|
this.name = name;
|
|
this.owner = owner;
|
|
this.path = path;
|
|
this.type = type;
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getOwner() {
|
|
return owner;
|
|
}
|
|
|
|
public void setOwner(String owner) {
|
|
this.owner = owner;
|
|
}
|
|
|
|
public String getPath() {
|
|
return path;
|
|
}
|
|
|
|
public void setPath(String path) {
|
|
this.path = path;
|
|
}
|
|
|
|
public String getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public String getPublicLink() {
|
|
return publicLink;
|
|
}
|
|
|
|
public void setPublicLink(String publicLink) {
|
|
this.publicLink = publicLink;
|
|
}
|
|
|
|
public String getMimeType() {
|
|
return mimeType;
|
|
}
|
|
|
|
public void setMimeType(String mimeType) {
|
|
this.mimeType = mimeType;
|
|
}
|
|
|
|
public String getLenght() {
|
|
return lenght;
|
|
}
|
|
|
|
public void setLenght(String lenght) {
|
|
this.lenght = lenght;
|
|
}
|
|
|
|
/**
|
|
* Compare basic information with another ItemDescription not null
|
|
*
|
|
* @param itemDescription
|
|
* item description
|
|
* @return boolean true if comparison match
|
|
*
|
|
*/
|
|
public boolean compareInfo(ItemDescription itemDescription) {
|
|
if (itemDescription != null && id.compareTo(itemDescription.getId()) == 0) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "ItemDescription [id=" + id + ", name=" + name + ", owner=" + owner + ", path=" + path + ", type=" + type
|
|
+ ", publicLink=" + publicLink + ", mimeType=" + mimeType + ", lenght=" + lenght + "]";
|
|
}
|
|
|
|
}
|