Fixed provenance facet

This commit is contained in:
Luca Frosini 2023-05-03 10:00:58 +02:00
parent 28e77ae074
commit 3d1ca1a251
2 changed files with 21 additions and 3 deletions

View File

@ -3,8 +3,6 @@
*/ */
package org.gcube.resourcemanagement.model.impl.entities.facets; package org.gcube.resourcemanagement.model.impl.entities.facets;
import java.util.UUID;
import org.gcube.com.fasterxml.jackson.annotation.JsonTypeName; import org.gcube.com.fasterxml.jackson.annotation.JsonTypeName;
import org.gcube.informationsystem.model.impl.entities.FacetImpl; import org.gcube.informationsystem.model.impl.entities.FacetImpl;
import org.gcube.resourcemanagement.model.reference.entities.facets.ProvenanceFacet; import org.gcube.resourcemanagement.model.reference.entities.facets.ProvenanceFacet;
@ -22,7 +20,7 @@ public class ProvenanceFacetImpl extends FacetImpl implements ProvenanceFacet {
private static final long serialVersionUID = 1014553736569877775L; private static final long serialVersionUID = 1014553736569877775L;
protected Relationship relationship; protected Relationship relationship;
protected UUID reference; protected String reference;
protected ValueSchema document; protected ValueSchema document;
/** /**
@ -41,6 +39,21 @@ public class ProvenanceFacetImpl extends FacetImpl implements ProvenanceFacet {
this.relationship = relationship; this.relationship = relationship;
} }
/**
* @return the reference
*/
@Override
public String getReference() {
return reference;
}
/**
* @param reference the reference to set
*/
@Override
public void setReference(String reference) {
this.reference = reference;
}
/** /**
* @return the document * @return the document
*/ */

View File

@ -41,6 +41,11 @@ public interface ProvenanceFacet extends Facet {
public void setRelationship(Relationship relationship); public void setRelationship(Relationship relationship);
@ISProperty(description = "The ID of the referenced resource.")
public String getReference();
public void setReference(String reference);
@ISProperty(description = "Provenance Document, e.g., an XML according to the reference schema.") @ISProperty(description = "Provenance Document, e.g., an XML according to the reference schema.")
public ValueSchema getDocument(); public ValueSchema getDocument();