-
Notifications
You must be signed in to change notification settings - Fork 1
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 #130 from aodn/features/platform-n-organisation-se…
…arch Features/platform n organisation search
- Loading branch information
Showing
1,595 changed files
with
35,686 additions
and
3,144 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
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
21 changes: 0 additions & 21 deletions
21
ardcvocabs/src/main/java/au/org/aodn/ardcvocabs/model/ParameterVocabModel.java
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
ardcvocabs/src/main/java/au/org/aodn/ardcvocabs/model/VocabApiPaths.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,37 @@ | ||
package au.org.aodn.ardcvocabs.model; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum VocabApiPaths { | ||
PARAMETER_VOCAB( | ||
"/aodn-parameter-category-vocabulary/version-2-1/concept.json", | ||
"/aodn-parameter-category-vocabulary/version-2-1/resource.json?uri=%s", | ||
"/aodn-discovery-parameter-vocabulary/version-1-6/concept.json", | ||
"/aodn-discovery-parameter-vocabulary/version-1-6/resource.json?uri=%s" | ||
), | ||
PLATFORM_VOCAB( | ||
"/aodn-platform-category-vocabulary/version-1-2/concept.json", | ||
"/aodn-platform-category-vocabulary/version-1-2/resource.json?uri=%s", | ||
"/aodn-platform-vocabulary/version-6-1/concept.json", | ||
"/aodn-platform-vocabulary/version-6-1/resource.json?uri=%s" | ||
), | ||
ORGANISATION_VOCAB( | ||
"/aodn-organisation-category-vocabulary/version-2-5/concept.json", | ||
"/aodn-organisation-category-vocabulary/version-2-5/resource.json?uri=%s", | ||
"/aodn-organisation-vocabulary/version-2-5/concept.json", | ||
"/aodn-organisation-vocabulary/version-2-5/resource.json?uri=%s" | ||
); | ||
|
||
private final String vocabCategoryApiPath; | ||
private final String vocabCategoryDetailsApiPath; | ||
private final String vocabApiPath; | ||
private final String vocabDetailsApiPath; | ||
|
||
VocabApiPaths(String vocabCategoryApiPath, String vocabCategoryDetailsApiPath, String vocabApiPath, String vocabDetailsApiPath) { | ||
this.vocabCategoryApiPath = vocabCategoryApiPath; | ||
this.vocabCategoryDetailsApiPath = vocabCategoryDetailsApiPath; | ||
this.vocabApiPath = vocabApiPath; | ||
this.vocabDetailsApiPath = vocabDetailsApiPath; | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
ardcvocabs/src/main/java/au/org/aodn/ardcvocabs/model/VocabModel.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 au.org.aodn.ardcvocabs.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.*; | ||
|
||
import java.util.List; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class VocabModel { | ||
protected String label; | ||
protected String definition; | ||
protected String about; | ||
protected List<VocabModel> broader; | ||
protected List<VocabModel> narrower; | ||
} |
10 changes: 10 additions & 0 deletions
10
ardcvocabs/src/main/java/au/org/aodn/ardcvocabs/service/ArdcVocabService.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,10 @@ | ||
package au.org.aodn.ardcvocabs.service; | ||
|
||
import au.org.aodn.ardcvocabs.model.VocabApiPaths; | ||
import au.org.aodn.ardcvocabs.model.VocabModel; | ||
|
||
import java.util.List; | ||
|
||
public interface ArdcVocabService { | ||
List<VocabModel> getVocabTreeFromArdcByType(VocabApiPaths vocabApiPaths); | ||
} |
Oops, something went wrong.