-
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.
- Loading branch information
Showing
7 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
search-commons/src/main/java/no/unit/nva/search/resource/response/Affiliation.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,12 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class Affiliation { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
} |
25 changes: 25 additions & 0 deletions
25
search-commons/src/main/java/no/unit/nva/search/resource/response/Contributor.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,25 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
|
||
class Contributor { | ||
|
||
@JsonProperty("affiliations") | ||
private List<Affiliation> affiliations; | ||
|
||
@JsonProperty("correspondingAuthor") | ||
private boolean correspondingAuthor; | ||
|
||
@JsonProperty("identity") | ||
private Identity identity; | ||
|
||
@JsonProperty("role") | ||
private String role; | ||
|
||
@JsonProperty("sequence") | ||
private int sequence; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
} |
15 changes: 15 additions & 0 deletions
15
search-commons/src/main/java/no/unit/nva/search/resource/response/Identity.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,15 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class Identity { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
} |
23 changes: 23 additions & 0 deletions
23
search-commons/src/main/java/no/unit/nva/search/resource/response/OtherIdentifiers.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,23 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
|
||
public class OtherIdentifiers { | ||
|
||
@JsonProperty("scopus") | ||
private List<String> scopus; | ||
|
||
@JsonProperty("scopus") | ||
private List<String> cristin; | ||
|
||
@JsonProperty("scopus") | ||
private List<String> handle; | ||
|
||
@JsonProperty("scopus") | ||
private List<String> issn; | ||
|
||
@JsonProperty("scopus") | ||
private List<String> isbn; | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
search-commons/src/main/java/no/unit/nva/search/resource/response/PublishingDetails.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,30 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class PublishingDetails { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
|
||
@JsonProperty("series") | ||
private Series series; | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
|
||
@JsonProperty("doi") | ||
private String doi; | ||
|
||
private class Series { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
search-commons/src/main/java/no/unit/nva/search/resource/response/RecordMetadata.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,18 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class RecordMetadata { | ||
|
||
@JsonProperty("status") | ||
private String status; | ||
|
||
@JsonProperty("createdDate") | ||
private String createdDate; | ||
|
||
@JsonProperty("modifiedDate") | ||
private String modifiedDate; | ||
|
||
@JsonProperty("publishedDate") | ||
private String publishedDate; | ||
} |
43 changes: 43 additions & 0 deletions
43
...ch-commons/src/main/java/no/unit/nva/search/resource/response/ResourceSearchResponse.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,43 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
|
||
public class ResourceSearchResponse { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
|
||
@JsonProperty("otherIdentifiers") | ||
private OtherIdentifiers otherIdentifiers; | ||
|
||
@JsonProperty("recordMetadata") | ||
private RecordMetadata recordMetadata; | ||
|
||
@JsonProperty("mainTitle") | ||
private String mainTitle; | ||
|
||
@JsonProperty("abstract") | ||
private String mainLanguageAbstract; | ||
|
||
@JsonProperty("description") | ||
private String description; | ||
|
||
@JsonProperty("alternativeTitles") | ||
private List<String> alternativeTitles; | ||
|
||
@JsonProperty("publicationDate") | ||
private String publicationDate; | ||
|
||
@JsonProperty("contributorsPreview") | ||
private List<Contributor> contributorsPreview; | ||
|
||
@JsonProperty("contributorsCount") | ||
private int contributorsCount; | ||
|
||
@JsonProperty("publishingDetails") | ||
private PublishingDetails publishingDetails; | ||
} |