reverted to 1.0.0

This commit is contained in:
Francesco Mangiacrapa 2021-07-30 11:21:14 +02:00
parent c62f38cc27
commit 6a540c57e4
1 changed files with 21 additions and 7 deletions

View File

@ -2,12 +2,13 @@ package org.gcube.application.geoportalcommon.shared;
import java.io.Serializable;
/**
* The Class GeoNaItemRef.
*
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
*
* Dec 1, 2020
* Dec 1, 2020
*/
public class GeoNaItemRef implements Serializable {
@ -16,8 +17,7 @@ public class GeoNaItemRef implements Serializable {
*/
private static final long serialVersionUID = -7021431511279022193L;
// this is the mongoID
private String itemId;
private Long itemId;
private String itemType;
private String itemName;
@ -32,22 +32,32 @@ public class GeoNaItemRef implements Serializable {
}
/**
* Instantiates a new geo na item ref.
* Instantiates a new geo na object.
*
* @param itemId the item id
* @param itemType the item type
*/
public GeoNaItemRef(String itemId, String itemType) {
public GeoNaItemRef(Long itemId, String itemType) {
super();
this.itemId = itemId;
this.itemType = itemType;
}
public String getItemId() {
/**
* Gets the item id.
*
* @return the item id
*/
public Long getItemId() {
return itemId;
}
public void setItemId(String itemId) {
/**
* Sets the item id.
*
* @param itemId the new item id
*/
public void setItemId(Long itemId) {
this.itemId = itemId;
}
@ -86,6 +96,8 @@ public class GeoNaItemRef implements Serializable {
public void setItemName(String itemName) {
this.itemName = itemName;
}
/**
* Gets the restricted link.
@ -145,4 +157,6 @@ public class GeoNaItemRef implements Serializable {
return builder.toString();
}
}