2016-10-08 20:46:17 +02:00
|
|
|
package org.gcube.data_catalogue.grsf_publish_ws.json.output;
|
|
|
|
|
2016-10-13 11:46:42 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
2016-10-08 20:46:17 +02:00
|
|
|
/**
|
|
|
|
* A bean used to reply to a product creation method.
|
|
|
|
* @author Costantino Perciante at ISTI-CNR
|
|
|
|
*/
|
|
|
|
public class ResponseCreationBean {
|
|
|
|
|
2016-10-13 11:46:42 +02:00
|
|
|
@JsonProperty("id")
|
2016-10-08 20:46:17 +02:00
|
|
|
private String id;
|
2016-11-04 16:26:19 +01:00
|
|
|
|
|
|
|
@JsonProperty("knowledge_base_id")
|
|
|
|
private String kbUuid; // the original uuid given by the KB
|
2016-10-13 11:46:42 +02:00
|
|
|
|
2016-10-20 10:40:52 +02:00
|
|
|
@JsonProperty("product_url")
|
2017-02-19 15:53:42 +01:00
|
|
|
String itemUrl;
|
2016-10-13 11:46:42 +02:00
|
|
|
|
|
|
|
@JsonProperty("error")
|
2016-10-08 20:46:17 +02:00
|
|
|
private String error; // in case of error
|
|
|
|
|
|
|
|
public ResponseCreationBean() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
2016-10-13 11:46:42 +02:00
|
|
|
/**
|
|
|
|
* @param id
|
2016-11-04 16:26:19 +01:00
|
|
|
* @param kbUuid
|
2016-11-01 22:35:52 +01:00
|
|
|
* @param productUrl
|
2016-10-13 11:46:42 +02:00
|
|
|
* @param error
|
|
|
|
*/
|
2016-11-04 16:26:19 +01:00
|
|
|
public ResponseCreationBean(String id, String kbUuid, String productUrl,
|
|
|
|
String error) {
|
2016-10-08 20:46:17 +02:00
|
|
|
super();
|
|
|
|
this.id = id;
|
2016-11-04 16:26:19 +01:00
|
|
|
this.kbUuid = kbUuid;
|
2017-02-19 15:53:42 +01:00
|
|
|
this.itemUrl = itemUrl;
|
2016-10-08 20:46:17 +02:00
|
|
|
this.error = error;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getError() {
|
|
|
|
return error;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setError(String error) {
|
|
|
|
this.error = error;
|
|
|
|
}
|
|
|
|
|
2016-11-04 16:26:19 +01:00
|
|
|
public String getKbUuid() {
|
|
|
|
return kbUuid;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setKbUuid(String kbUuid) {
|
|
|
|
this.kbUuid = kbUuid;
|
|
|
|
}
|
|
|
|
|
2017-02-19 15:53:42 +01:00
|
|
|
public String getItemUrl() {
|
|
|
|
return itemUrl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setItemUrl(String itemUrl) {
|
|
|
|
this.itemUrl = itemUrl;
|
2016-11-04 16:26:19 +01:00
|
|
|
}
|
|
|
|
|
2016-10-08 20:46:17 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2016-11-04 16:26:19 +01:00
|
|
|
return "ResponseCreationBean [id=" + id + ", kbUuid=" + kbUuid
|
2017-02-19 15:53:42 +01:00
|
|
|
+ ", itemUrl=" + itemUrl + ", error=" + error + "]";
|
2016-10-08 20:46:17 +02:00
|
|
|
}
|
2017-02-19 15:53:42 +01:00
|
|
|
|
2016-10-08 20:46:17 +02:00
|
|
|
}
|