2020-10-21 16:52:07 +02:00
|
|
|
package org.gcube.portlets.user.geoportaldataentry.shared;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
2022-08-11 12:07:07 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.geoportal.project.LifecycleInformationDV;
|
2021-09-14 13:08:55 +02:00
|
|
|
|
2020-10-21 16:52:07 +02:00
|
|
|
/**
|
|
|
|
* The Class CommitReport.
|
|
|
|
*
|
2021-07-30 11:53:12 +02:00
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
2020-10-21 16:52:07 +02:00
|
|
|
*
|
2021-07-30 11:53:12 +02:00
|
|
|
* Jul 30, 2021
|
2020-10-21 16:52:07 +02:00
|
|
|
*/
|
2020-12-01 18:15:13 +01:00
|
|
|
public class CommitReport implements Serializable {
|
|
|
|
|
2020-10-21 16:52:07 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2022-05-20 12:31:58 +02:00
|
|
|
private static final long serialVersionUID = -3606902201347318287L;
|
|
|
|
public String projectID;
|
|
|
|
private LifecycleInformationDV lifecycleInformation;
|
2022-09-01 12:44:00 +02:00
|
|
|
private String profileID;
|
|
|
|
private String projectAsJSON;
|
2020-10-21 16:52:07 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new commit report.
|
|
|
|
*/
|
|
|
|
public CommitReport() {
|
2020-12-01 18:15:13 +01:00
|
|
|
|
2020-10-21 16:52:07 +02:00
|
|
|
}
|
2020-12-01 18:15:13 +01:00
|
|
|
|
2022-09-01 12:44:00 +02:00
|
|
|
public CommitReport(String projectID, String profileID, String projectAsJSON,
|
|
|
|
LifecycleInformationDV lifecycleInfo) {
|
2022-05-20 12:31:58 +02:00
|
|
|
this.projectID = projectID;
|
2022-09-01 12:44:00 +02:00
|
|
|
this.profileID = profileID;
|
|
|
|
this.projectAsJSON = projectAsJSON;
|
2022-05-20 12:31:58 +02:00
|
|
|
this.lifecycleInformation = lifecycleInfo;
|
2020-12-01 18:15:13 +01:00
|
|
|
}
|
|
|
|
|
2022-05-20 12:31:58 +02:00
|
|
|
public String getProjectID() {
|
|
|
|
return projectID;
|
2020-10-21 16:52:07 +02:00
|
|
|
}
|
|
|
|
|
2022-05-20 12:31:58 +02:00
|
|
|
public LifecycleInformationDV getLifecycleInformation() {
|
|
|
|
return lifecycleInformation;
|
2021-07-30 11:53:12 +02:00
|
|
|
}
|
|
|
|
|
2022-05-20 12:31:58 +02:00
|
|
|
public void setProjectID(String projectID) {
|
2022-09-01 12:44:00 +02:00
|
|
|
this.projectID = projectID;
|
2021-07-30 11:53:12 +02:00
|
|
|
}
|
|
|
|
|
2022-05-20 12:31:58 +02:00
|
|
|
public void setLifecycleInformation(LifecycleInformationDV lifecycleInformation) {
|
|
|
|
this.lifecycleInformation = lifecycleInformation;
|
2020-10-21 16:52:07 +02:00
|
|
|
}
|
|
|
|
|
2022-09-01 12:44:00 +02:00
|
|
|
public String getProfileID() {
|
|
|
|
return profileID;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setProfileID(String profileID) {
|
|
|
|
this.profileID = profileID;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getProjectAsJSON() {
|
|
|
|
return projectAsJSON;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setProjectAsJSON(String projectAsJSON) {
|
|
|
|
this.projectAsJSON = projectAsJSON;
|
|
|
|
}
|
|
|
|
|
2020-10-21 16:52:07 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
2022-05-20 12:31:58 +02:00
|
|
|
builder.append("CommitReport [projectID=");
|
|
|
|
builder.append(projectID);
|
|
|
|
builder.append(", lifecycleInformation=");
|
|
|
|
builder.append(lifecycleInformation);
|
2022-09-01 12:44:00 +02:00
|
|
|
builder.append(", profileID=");
|
|
|
|
builder.append(profileID);
|
|
|
|
builder.append(", projectAsJSON=");
|
|
|
|
builder.append(projectAsJSON);
|
2020-10-21 16:52:07 +02:00
|
|
|
builder.append("]");
|
|
|
|
return builder.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|