2020-11-19 15:19:27 +01:00
|
|
|
package org.gcube.portlets.user.geoportaldataviewer.shared.gis;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
2021-09-09 11:38:25 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.products.BaseConcessioneDV;
|
|
|
|
|
|
|
|
|
2020-11-19 15:19:27 +01:00
|
|
|
/**
|
|
|
|
* The Class LayerObject.
|
|
|
|
*
|
2021-09-09 11:38:25 +02:00
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
2020-11-19 15:19:27 +01:00
|
|
|
*
|
2021-09-09 11:38:25 +02:00
|
|
|
* Sep 9, 2021
|
2020-11-19 15:19:27 +01:00
|
|
|
*/
|
|
|
|
public class LayerObject implements Serializable {
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = -2282478701630148774L;
|
|
|
|
/* This is the layer/product type. E.g. Concessione */
|
|
|
|
private String itemType;
|
|
|
|
private LayerItem layerItem;
|
2021-09-09 11:38:25 +02:00
|
|
|
private BaseConcessioneDV sourceConcessione;
|
2020-11-19 15:19:27 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new layer object.
|
|
|
|
*/
|
|
|
|
public LayerObject() {
|
2021-09-07 17:29:56 +02:00
|
|
|
}
|
|
|
|
|
2021-09-09 11:38:25 +02:00
|
|
|
/**
|
|
|
|
* Instantiates a new layer object.
|
|
|
|
*
|
|
|
|
* @param itemType the item type
|
|
|
|
* @param layerItem the layer item
|
|
|
|
* @param sourceConcessione the source concessione
|
|
|
|
*/
|
|
|
|
public LayerObject(String itemType, LayerItem layerItem, BaseConcessioneDV sourceConcessione) {
|
2021-09-07 17:29:56 +02:00
|
|
|
super();
|
|
|
|
this.itemType = itemType;
|
|
|
|
this.layerItem = layerItem;
|
2021-09-09 11:38:25 +02:00
|
|
|
this.sourceConcessione = sourceConcessione;
|
2020-11-19 15:19:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the item type.
|
|
|
|
*
|
|
|
|
* @return the item type
|
|
|
|
*/
|
|
|
|
public String getItemType() {
|
|
|
|
return itemType;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2021-09-09 11:38:25 +02:00
|
|
|
* Gets the layer item.
|
2020-11-19 15:19:27 +01:00
|
|
|
*
|
2021-09-09 11:38:25 +02:00
|
|
|
* @return the layer item
|
2020-11-19 15:19:27 +01:00
|
|
|
*/
|
2021-09-09 11:38:25 +02:00
|
|
|
public LayerItem getLayerItem() {
|
|
|
|
return layerItem;
|
2020-11-19 15:19:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2021-09-09 11:38:25 +02:00
|
|
|
* Gets the source concessione.
|
2020-11-19 15:19:27 +01:00
|
|
|
*
|
2021-09-09 11:38:25 +02:00
|
|
|
* @return the source concessione
|
2020-11-19 15:19:27 +01:00
|
|
|
*/
|
2021-09-09 11:38:25 +02:00
|
|
|
public BaseConcessioneDV getSourceConcessione() {
|
|
|
|
return sourceConcessione;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the item type.
|
|
|
|
*
|
|
|
|
* @param itemType the new item type
|
|
|
|
*/
|
|
|
|
public void setItemType(String itemType) {
|
|
|
|
this.itemType = itemType;
|
2020-11-19 15:19:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the layer item.
|
|
|
|
*
|
|
|
|
* @param layerItem the new layer item
|
|
|
|
*/
|
|
|
|
public void setLayerItem(LayerItem layerItem) {
|
|
|
|
this.layerItem = layerItem;
|
|
|
|
}
|
|
|
|
|
2021-09-09 11:38:25 +02:00
|
|
|
/**
|
|
|
|
* Sets the source concessione.
|
|
|
|
*
|
|
|
|
* @param sourceConcessione the new source concessione
|
|
|
|
*/
|
|
|
|
public void setSourceConcessione(BaseConcessioneDV sourceConcessione) {
|
|
|
|
this.sourceConcessione = sourceConcessione;
|
|
|
|
}
|
|
|
|
|
2020-11-19 15:19:27 +01:00
|
|
|
/**
|
|
|
|
* To string.
|
|
|
|
*
|
|
|
|
* @return the string
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
|
|
builder.append("LayerObject [itemType=");
|
|
|
|
builder.append(itemType);
|
|
|
|
builder.append(", layerItem=");
|
|
|
|
builder.append(layerItem);
|
2021-09-09 11:38:25 +02:00
|
|
|
builder.append(", sourceConcessione=");
|
|
|
|
builder.append(sourceConcessione);
|
2020-11-19 15:19:27 +01:00
|
|
|
builder.append("]");
|
|
|
|
return builder.toString();
|
|
|
|
}
|
|
|
|
|
2021-09-09 11:38:25 +02:00
|
|
|
}
|