Added the profileName property

This commit is contained in:
Francesco Mangiacrapa 2022-10-17 16:50:48 +02:00
parent c1cc4f391a
commit f722449403
2 changed files with 38 additions and 5 deletions

View File

@ -15,8 +15,9 @@ public class ProjectDV implements Serializable {
private String id;
private String version;
// private PublicationInfo info;
private String profileID;
private String profileVersion;
private String profileID; // the profile == UCD
private String profileVersion; // the profile == UCD
private String profileName;
private List<RelationshipDV> relationships;
private DocumentDV theDocument;
@ -28,6 +29,14 @@ public class ProjectDV implements Serializable {
}
public String getProfileName() {
return profileName;
}
public void setProfileName(String profileName) {
this.profileName = profileName;
}
public String getId() {
return id;
}
@ -103,6 +112,10 @@ public class ProjectDV implements Serializable {
builder.append(profileID);
builder.append(", profileVersion=");
builder.append(profileVersion);
builder.append(", profileName=");
builder.append(profileName);
builder.append(", relationships=");
builder.append(relationships);
builder.append(", theDocument=");
builder.append(theDocument);
builder.append(", mapIdentReferenceDV=");

View File

@ -13,12 +13,12 @@ public class ProjectView implements Serializable {
*/
private static final long serialVersionUID = 6890481787301347388L;
private ProjectDV theProjectDV;
//The DocumentDV (contained in the ProjectDV) is listed in SectionView
// The DocumentDV (contained in the ProjectDV) is listed in SectionView
private List<SectionView> listSections = new ArrayList<SectionView>();
private Long centroidLong;
private Long centroidLat;
public ProjectView() {
}
@ -39,6 +39,22 @@ public class ProjectView implements Serializable {
this.theProjectDV = theProjectDV;
}
public void setCentroidLat(Long centroidLat) {
this.centroidLat = centroidLat;
}
public void setCentroidLong(Long centroidLong) {
this.centroidLong = centroidLong;
}
public Long getCentroidLat() {
return centroidLat;
}
public Long getCentroidLong() {
return centroidLong;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
@ -46,6 +62,10 @@ public class ProjectView implements Serializable {
builder.append(theProjectDV);
builder.append(", listSections=");
builder.append(listSections);
builder.append(", centroidLong=");
builder.append(centroidLong);
builder.append(", centroidLat=");
builder.append(centroidLat);
builder.append("]");
return builder.toString();
}