-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from gdi-be/cleanup-terms-handling
Adapt import and export to use terms of use codelist
- Loading branch information
Showing
8 changed files
with
167 additions
and
81 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
31 changes: 0 additions & 31 deletions
31
mde-services/src/main/java/de/terrestris/mde/mde_backend/model/json/Constraint.java
This file was deleted.
Oops, something went wrong.
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
mde-services/src/main/java/de/terrestris/mde/mde_backend/model/json/termsofuse/Json.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 de.terrestris.mde.mde_backend.model.json.termsofuse; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@JsonDeserialize(as = Json.class) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@NoArgsConstructor(force = true) | ||
@AllArgsConstructor | ||
public class Json { | ||
|
||
private String id; | ||
|
||
private String name; | ||
|
||
private String url; | ||
|
||
private String quelle; | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
...ervices/src/main/java/de/terrestris/mde/mde_backend/model/json/termsofuse/TermsOfUse.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,34 @@ | ||
package de.terrestris.mde.mde_backend.model.json.termsofuse; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@JsonDeserialize(as = TermsOfUse.class) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@NoArgsConstructor(force = true) | ||
@AllArgsConstructor | ||
public class TermsOfUse { | ||
|
||
private int id; | ||
|
||
private String shortname; | ||
|
||
private boolean active; | ||
|
||
private String description; | ||
|
||
private List<String> matchStrings; | ||
|
||
private boolean openData; | ||
|
||
private Json json; | ||
|
||
private String note; | ||
|
||
} |
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
Oops, something went wrong.