geoportal-data-common/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/view/ProjectView.java

78 lines
1.8 KiB
Java

package org.gcube.application.geoportalcommon.shared.geoportal.view;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.gcube.application.geoportalcommon.shared.geoportal.project.ProjectDV;
public class ProjectView implements Serializable {
/**
*
*/
private static final long serialVersionUID = 6890481787301347388L;
private ProjectDV theProjectDV;
// The DocumentDV (contained in the ProjectDV) is listed in SectionView
private List<SectionView> listSections = new ArrayList<SectionView>();
private Double centroidLong;
private Double centroidLat;
public ProjectView() {
}
public void addSectionView(SectionView sectionView) {
listSections.add(sectionView);
}
public ProjectDV getTheProjectDV() {
return theProjectDV;
}
public List<SectionView> getListSections() {
return listSections;
}
public Double getCentroidLong() {
return centroidLong;
}
public Double getCentroidLat() {
return centroidLat;
}
public void setTheProjectDV(ProjectDV theProjectDV) {
this.theProjectDV = theProjectDV;
}
public void setListSections(List<SectionView> listSections) {
this.listSections = listSections;
}
public void setCentroidLong(Double centroidLong) {
this.centroidLong = centroidLong;
}
public void setCentroidLat(Double centroidLat) {
this.centroidLat = centroidLat;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ProjectView [theProjectDV=");
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();
}
}