Model update
This commit is contained in:
parent
cdbe3bae12
commit
a06a92ab72
|
@ -2,6 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||||
|
|
||||||
# Changelog for org.gcube.application.geoportal-common
|
# Changelog for org.gcube.application.geoportal-common
|
||||||
|
|
||||||
|
# [v1.0.3-SNAPSHOT] - 2020-12-4
|
||||||
|
Project model update
|
||||||
|
|
||||||
|
|
||||||
# [v1.0.2-SNAPSHOT] - 2020-12-4
|
# [v1.0.2-SNAPSHOT] - 2020-12-4
|
||||||
Model update
|
Model update
|
||||||
|
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.gcube.application</groupId>
|
<groupId>org.gcube.application</groupId>
|
||||||
<artifactId>geoportal-common</artifactId>
|
<artifactId>geoportal-common</artifactId>
|
||||||
<version>1.0.2-SNAPSHOT</version>
|
<version>1.0.3-SNAPSHOT</version>
|
||||||
<name>Geoportal Common</name>
|
<name>Geoportal Common</name>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -31,17 +31,13 @@ public class Project {
|
||||||
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static enum Status{
|
|
||||||
VALID,INVALID,PUBLISHED
|
|
||||||
}
|
|
||||||
|
|
||||||
private String _id;
|
private String _id;
|
||||||
private String profile_id;
|
private String profile_id;
|
||||||
private PublicationDetails publication;
|
|
||||||
private Status status;
|
private Status status;
|
||||||
private BasicJSONObject document;
|
private Object document;
|
||||||
private Centroid centroid;
|
private Centroid centroid;
|
||||||
|
private PublicationDetails publication;
|
||||||
|
|
||||||
|
private String json;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
package org.gcube.application.geoportal.common.model.project;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class Status {
|
||||||
|
|
||||||
|
|
||||||
|
private StatusPhase phase;
|
||||||
|
private List<String> messages;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
package org.gcube.application.geoportal.common.model.project;
|
||||||
|
|
||||||
|
public enum StatusPhase {
|
||||||
|
|
||||||
|
DRAFT,
|
||||||
|
UNDER_VALIDATION,
|
||||||
|
INVALID,
|
||||||
|
VALID,
|
||||||
|
UNDER_PUBLICATION,
|
||||||
|
PUBLICATION_ERROR,
|
||||||
|
PUBLISHED
|
||||||
|
|
||||||
|
}
|
Reference in New Issue