diff --git a/src/main/java/org/gcube/application/geoportalcommon/shared/GeoNaItemRef.java b/src/main/java/org/gcube/application/geoportalcommon/shared/GeoNaItemRef.java index 4e3679e..6396bdf 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/shared/GeoNaItemRef.java +++ b/src/main/java/org/gcube/application/geoportalcommon/shared/GeoNaItemRef.java @@ -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(); } + + }