Simplified Event facet
This commit is contained in:
parent
2092057857
commit
64069ccc54
|
@ -8,7 +8,6 @@ import java.util.Date;
|
|||
import org.gcube.com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import org.gcube.informationsystem.model.impl.entities.FacetImpl;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.facets.EventFacet;
|
||||
import org.gcube.resourcemanagement.model.reference.properties.ValueSchema;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
|
@ -22,7 +21,7 @@ public class EventFacetImpl extends FacetImpl implements EventFacet {
|
|||
private static final long serialVersionUID = -4130548762073254058L;
|
||||
|
||||
protected Date date;
|
||||
protected ValueSchema event;
|
||||
protected String event;
|
||||
|
||||
public Date getDate() {
|
||||
return this.date;
|
||||
|
@ -32,11 +31,11 @@ public class EventFacetImpl extends FacetImpl implements EventFacet {
|
|||
this.date = date;
|
||||
}
|
||||
|
||||
public ValueSchema getEvent() {
|
||||
public String getEvent() {
|
||||
return event;
|
||||
}
|
||||
|
||||
public void setEvent(ValueSchema event) {
|
||||
public void setEvent(String event) {
|
||||
this.event = event;
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ import org.gcube.informationsystem.types.reference.Change;
|
|||
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
||||
import org.gcube.informationsystem.utils.TypeVersion;
|
||||
import org.gcube.resourcemanagement.model.impl.entities.facets.EventFacetImpl;
|
||||
import org.gcube.resourcemanagement.model.reference.properties.ValueSchema;
|
||||
|
||||
/**
|
||||
* EventFacet captures information on a certain event/happening characterising the life cycle of the resource.
|
||||
|
@ -43,9 +42,9 @@ public interface EventFacet extends Facet {
|
|||
|
||||
public void setDate(Date date);
|
||||
|
||||
@ISProperty(description = "The typology of event according to the schema", mandatory=true, nullable=false)
|
||||
public ValueSchema getEvent();
|
||||
@ISProperty(description = "The typology of event", mandatory=true, nullable=false)
|
||||
public String getEvent();
|
||||
|
||||
public void setEvent(ValueSchema event);
|
||||
public void setEvent(String event);
|
||||
|
||||
}
|
|
@ -36,7 +36,7 @@ public interface StateFacet extends Facet {
|
|||
|
||||
public static final String NAME = "StateFacet"; // StateFacet.class.getSimpleName();
|
||||
|
||||
@ISProperty(mandatory=true, nullable=false)
|
||||
@ISProperty(description="The value of the state", mandatory=true, nullable=false)
|
||||
public String getValue();
|
||||
|
||||
public void setValue(String value);
|
||||
|
|
Loading…
Reference in New Issue