added properties centroidLong, centroidLat;
This commit is contained in:
parent
3deb2ec6e8
commit
dfbd083b4a
|
@ -77,6 +77,10 @@ import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||||
*/
|
*/
|
||||||
public class ConvertToDataValueObjectModel {
|
public class ConvertToDataValueObjectModel {
|
||||||
|
|
||||||
|
private static final String CENTROID_LONG = "centroidLong";
|
||||||
|
|
||||||
|
private static final String CENTROID_LAT = "centroidLat";
|
||||||
|
|
||||||
private static Logger LOG = LoggerFactory.getLogger(ConvertToDataValueObjectModel.class);
|
private static Logger LOG = LoggerFactory.getLogger(ConvertToDataValueObjectModel.class);
|
||||||
|
|
||||||
private static final String NO_TIME = "T00:00";
|
private static final String NO_TIME = "T00:00";
|
||||||
|
@ -596,6 +600,20 @@ public class ConvertToDataValueObjectModel {
|
||||||
ResultDocumentDV.class, null, true);
|
ResultDocumentDV.class, null, true);
|
||||||
rd.setId(project.getId());
|
rd.setId(project.getId());
|
||||||
rd.setProfileID(project.getProfileID());
|
rd.setProfileID(project.getProfileID());
|
||||||
|
|
||||||
|
try {
|
||||||
|
Double centroidLat = project.getTheDocument().get(CENTROID_LAT, Double.class);
|
||||||
|
rd.setCentroidLat(centroidLat);
|
||||||
|
}catch (Exception e) {
|
||||||
|
// TODO: handle exception
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
Double centroidLong = project.getTheDocument().get(CENTROID_LONG, Double.class);
|
||||||
|
rd.setCentroidLong(centroidLong);
|
||||||
|
}catch (Exception e) {
|
||||||
|
// TODO: handle exception
|
||||||
|
}
|
||||||
|
|
||||||
rd.setPublicationInfo(toPublicationInfoDV(project.getInfo()));
|
rd.setPublicationInfo(toPublicationInfoDV(project.getInfo()));
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,9 @@ public class ResultDocumentDV extends DocumentDV implements Serializable {
|
||||||
private PublicationInfoDV publicationInfoDV;
|
private PublicationInfoDV publicationInfoDV;
|
||||||
private List<RelationshipDV> listRelationshipDV;
|
private List<RelationshipDV> listRelationshipDV;
|
||||||
|
|
||||||
|
private Double centroidLong;
|
||||||
|
private Double centroidLat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -61,6 +64,30 @@ public class ResultDocumentDV extends DocumentDV implements Serializable {
|
||||||
this.listRelationshipDV = listRelationshipDV;
|
this.listRelationshipDV = listRelationshipDV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Double getCentroidLong() {
|
||||||
|
return centroidLong;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getCentroidLat() {
|
||||||
|
return centroidLat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPublicationInfoDV(PublicationInfoDV publicationInfoDV) {
|
||||||
|
this.publicationInfoDV = publicationInfoDV;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListRelationshipDV(List<RelationshipDV> listRelationshipDV) {
|
||||||
|
this.listRelationshipDV = listRelationshipDV;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCentroidLong(Double centroidLong) {
|
||||||
|
this.centroidLong = centroidLong;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCentroidLat(Double centroidLat) {
|
||||||
|
this.centroidLat = centroidLat;
|
||||||
|
}
|
||||||
|
|
||||||
public List<RelationshipDV> getListRelationshipDV() {
|
public List<RelationshipDV> getListRelationshipDV() {
|
||||||
return listRelationshipDV;
|
return listRelationshipDV;
|
||||||
}
|
}
|
||||||
|
@ -87,6 +114,10 @@ public class ResultDocumentDV extends DocumentDV implements Serializable {
|
||||||
builder.append(publicationInfoDV);
|
builder.append(publicationInfoDV);
|
||||||
builder.append(", listRelationshipDV=");
|
builder.append(", listRelationshipDV=");
|
||||||
builder.append(listRelationshipDV);
|
builder.append(listRelationshipDV);
|
||||||
|
builder.append(", centroidLong=");
|
||||||
|
builder.append(centroidLong);
|
||||||
|
builder.append(", centroidLat=");
|
||||||
|
builder.append(centroidLat);
|
||||||
builder.append("]");
|
builder.append("]");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue