-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GeoJSON output updates to specification
- Loading branch information
Showing
4 changed files
with
113 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
.../library/common-index-model/src/main/java/org/fao/geonet/index/model/geojson/Address.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.fao.geonet.index.model.geojson; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
import java.util.List; | ||
|
||
@JsonInclude(Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@Data | ||
@SuperBuilder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Address { | ||
private List<String> deliveryPoint; | ||
private String city; | ||
private String administrativeArea; | ||
private String postalCode; | ||
private String country; | ||
} |
33 changes: 33 additions & 0 deletions
33
.../library/common-index-model/src/main/java/org/fao/geonet/index/model/geojson/Contact.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.fao.geonet.index.model.geojson; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
import java.util.List; | ||
|
||
@JsonInclude(Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@Data | ||
@SuperBuilder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Contact { | ||
private String name; | ||
private String positionName; | ||
private String organization; | ||
private Link logo; | ||
private String phone; | ||
private String email; | ||
private Address address; | ||
private List<Link> links; | ||
// TODO: hoursOfService | ||
private String contactInstructions; | ||
private List<Role> roles; | ||
|
||
|
||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...les/library/common-index-model/src/main/java/org/fao/geonet/index/model/geojson/Role.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.fao.geonet.index.model.geojson; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@JsonInclude(Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@Data | ||
@SuperBuilder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Role { | ||
private String name; | ||
private String authority; | ||
} |