-
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 #6 from DiSSCo/feature/tombstoning
add tombstoning event
- Loading branch information
Showing
33 changed files
with
654 additions
and
193 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
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
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
4 changes: 2 additions & 2 deletions
4
src/main/java/eu/dissco/core/datacitepublisher/domain/EventType.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package eu.dissco.core.datacitepublisher.domain; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
public enum EventType { | ||
@JsonProperty("create") CREATE, | ||
@JsonPropertyOrder("update") UPDATE; | ||
@JsonProperty("update") UPDATE, | ||
@JsonProperty("tombstone") TOMBSTONE; | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/eu/dissco/core/datacitepublisher/domain/TombstoneEvent.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,9 @@ | ||
package eu.dissco.core.datacitepublisher.domain; | ||
|
||
import eu.dissco.core.datacitepublisher.domain.datacite.DcRelatedIdentifiers; | ||
import java.util.List; | ||
|
||
public record TombstoneEvent(String handle, List<DcRelatedIdentifiers> dcRelatedIdentifiersTombstone) { | ||
|
||
|
||
} |
21 changes: 0 additions & 21 deletions
21
src/main/java/eu/dissco/core/datacitepublisher/domain/datacite/DataCiteConstants.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
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
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
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
10 changes: 6 additions & 4 deletions
10
src/main/java/eu/dissco/core/datacitepublisher/domain/datacite/DcPublisher.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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package eu.dissco.core.datacitepublisher.domain.datacite; | ||
|
||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class DcPublisher { | ||
String name = "Distributed System of Scientific Collections"; | ||
String publisherIdentifier = "https://ror.org/0566bfb96"; | ||
String publisherIdentifierScheme = UriScheme.ROR.getSchemeName(); | ||
String schemeUri = UriScheme.ROR.getUri(); | ||
String name; | ||
String publisherIdentifier; | ||
String publisherIdentifierScheme; | ||
String schemeUri; | ||
|
||
} |
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
7 changes: 6 additions & 1 deletion
7
src/main/java/eu/dissco/core/datacitepublisher/domain/datacite/DcType.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
40 changes: 40 additions & 0 deletions
40
src/main/java/eu/dissco/core/datacitepublisher/domain/datacite/RelationType.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,40 @@ | ||
package eu.dissco.core.datacitepublisher.domain.datacite; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public enum RelationType { | ||
@JsonProperty("IsCitedBy") IS_CITED_BY, | ||
@JsonProperty("Cites") CITES, | ||
@JsonProperty("IsSupplementTo") IS_SUPPLEMENT_TO, | ||
@JsonProperty("IsSupplementedBy") IS_SUPPLEMENTED_BY, | ||
@JsonProperty("IsContinuedBy") IS_CONTINUED_BY, | ||
@JsonProperty("Continues") CONTINUES, | ||
@JsonProperty("IsDescribedBy") IS_DESCRIBED_BY, | ||
@JsonProperty("Describes") DESCRIBES, | ||
@JsonProperty("HasMetadata") HAS_METADATA, | ||
@JsonProperty("IsMetadataFor") IS_METADATA_FOR, | ||
@JsonProperty("HasVersion") HAS_VERSION, | ||
@JsonProperty("IsVersionOf") IS_VERSION_OF, | ||
@JsonProperty("IsNewVersionOf") IS_NEW_VERSION_OF, | ||
@JsonProperty("IsPreviousVersionOf") IS_PREVIOUS_VERSION_OF, | ||
@JsonProperty("IsPartOf") IS_PART_OF, | ||
@JsonProperty("HasPart") HAS_PART, | ||
@JsonProperty("IsPublishedIn") IS_PUBLISHED_IN, | ||
@JsonProperty("IsReferencedBy") IS_REFERENCED_BY, | ||
@JsonProperty("References") REFERENCES, | ||
@JsonProperty("IsDocumentedBy") IS_DOCUMENTED_BY, | ||
@JsonProperty("Documents") DOCUMENTS, | ||
@JsonProperty("IsCompiledBy") IS_COMPILED_BY, | ||
@JsonProperty("Compiles") COMPILES, | ||
@JsonProperty("IsVariantFormOf") IS_VARIANT_FORM_OF, | ||
@JsonProperty("IsOriginalFormOf") IS_ORIGINAL_FORM_OF, | ||
@JsonProperty("IsIdenticalTo") IS_IDENTICAL_TO, | ||
@JsonProperty("IsReviewedBy") IS_REVIEWED_BY, | ||
@JsonProperty("Reviews") REVIEWS, | ||
@JsonProperty("IsDerivedFrom") IS_DERIVED_FROM, | ||
@JsonProperty("IsSourceOf") IS_SOURCE_OF, | ||
@JsonProperty("IsRequiredBy") IS_REQUIRED_BY, | ||
@JsonProperty("Requires") REQUIRES, | ||
@JsonProperty("IsObsoletedBy") IS_OBSOLETED_BY, | ||
@JsonProperty("Obsoletes") OBSOLETES; | ||
} |
10 changes: 10 additions & 0 deletions
10
.../java/eu/dissco/core/datacitepublisher/exceptions/InvalidFdoProfileReceivedException.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 eu.dissco.core.datacitepublisher.exceptions; | ||
|
||
public class InvalidFdoProfileReceivedException extends InvalidRequestException { | ||
|
||
public InvalidFdoProfileReceivedException() { | ||
super(); | ||
} | ||
|
||
|
||
} |
10 changes: 0 additions & 10 deletions
10
.../java/eu/dissco/core/datacitepublisher/exceptions/InvalidFdoProfileRecievedException.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
src/main/java/eu/dissco/core/datacitepublisher/exceptions/InvalidRequestException.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,8 @@ | ||
package eu.dissco.core.datacitepublisher.exceptions; | ||
|
||
public class InvalidRequestException extends Exception { | ||
public InvalidRequestException(){ | ||
super(); | ||
} | ||
|
||
} |
Oops, something went wrong.