diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/ApiPath.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/ApiPath.java
new file mode 100644
index 000000000..f314433a5
--- /dev/null
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/ApiPath.java
@@ -0,0 +1,6 @@
+package de.uni_jena.thunibib.his.api.v1.cs.sys.values;
+
+public interface ApiPath {
+ String getPath();
+}
+
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/LanguageValue.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/LanguageValue.java
index 47874d6b1..7f97befaa 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/LanguageValue.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/LanguageValue.java
@@ -5,7 +5,7 @@
/**
* Path: /api/v1/cs/sys/values/languageValue
* */
-public class LanguageValue {
+public class LanguageValue implements ApiPath {
@JsonProperty("id")
int id;
@JsonProperty("lockVersion")
@@ -59,4 +59,9 @@ public String getIso6391() {
public String toString() {
return id + ":" + uniqueName;
}
+
+ @Override
+ public String getPath() {
+ return "cs/sys/values/languageValue";
+ }
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/PublicationCreatorTypeValue.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/PublicationCreatorTypeValue.java
index 284610139..f89a182bf 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/PublicationCreatorTypeValue.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/PublicationCreatorTypeValue.java
@@ -4,4 +4,8 @@
* Path: /api/v1/cs/sys/values/publicationCreatorTypeValue
* */
public class PublicationCreatorTypeValue extends SysValue {
+ @Override
+ public String getPath() {
+ return "cs/sys/values/publicationCreatorTypeValue";
+ }
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/PublicationTypeValue.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/PublicationTypeValue.java
index 0f95c6b4a..e6237c6c7 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/PublicationTypeValue.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/PublicationTypeValue.java
@@ -4,6 +4,8 @@
* Path: /api/v1/cs/sys/values/publicationTypeValue
* */
public class PublicationTypeValue extends SysValue {
- public PublicationTypeValue() {
+ @Override
+ public String getPath() {
+ return "cs/sys/values/publicationTypeValue";
}
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/QualificationThesisValue.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/QualificationThesisValue.java
index 5bac6890d..d581f0a92 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/QualificationThesisValue.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/QualificationThesisValue.java
@@ -4,4 +4,8 @@
* Path: api/v1/cs/sys/values/qualificationThesisValue
* */
public class QualificationThesisValue extends SysValue{
+ @Override
+ public String getPath() {
+ return "cs/sys/values/qualificationThesisValue";
+ }
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/ResearchAreaKdsfValue.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/ResearchAreaKdsfValue.java
index 2aeead7e6..87f240da9 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/ResearchAreaKdsfValue.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/ResearchAreaKdsfValue.java
@@ -1,7 +1,11 @@
package de.uni_jena.thunibib.his.api.v1.cs.sys.values;
+
/**
* Path: /api/v1/cs/sys/values/researchAreaKdsfValue
* */
-public class ResearchAreaKdsfValue extends SysValue{
-
+public class ResearchAreaKdsfValue extends SysValue {
+ @Override
+ public String getPath() {
+ return "cs/sys/values/researchAreaKdsfValue";
+ }
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/SubjectAreaValue.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/SubjectAreaValue.java
index eb0d75de3..e653f6cc1 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/SubjectAreaValue.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/SubjectAreaValue.java
@@ -6,4 +6,8 @@
* Path: api/v1/cs/sys/values/subjectAreaValue
* */
public class SubjectAreaValue extends SysValue {
+ @Override
+ public String getPath() {
+ return "cs/sys/values/subjectAreaValue";
+ }
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/SysValue.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/SysValue.java
index 10f040d6d..7a0de86c1 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/SysValue.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/SysValue.java
@@ -3,7 +3,7 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-abstract public class SysValue {
+abstract public class SysValue implements ApiPath {
@JsonProperty("id")
private int id;
@JsonProperty("lockVersion")
@@ -76,6 +76,12 @@ public int getHisKeyId() {
return -1;
}
+ @Override
+ public String getPath() {
+ return null;
+ }
+
+ @Override
public int getId() {
return -1;
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/VisibilityValue.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/VisibilityValue.java
index d4888f6fd..7794caa3f 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/VisibilityValue.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/VisibilityValue.java
@@ -4,4 +4,9 @@
* Path: /api/v1/cs/sys/values/visibilityValue
* */
public class VisibilityValue extends SysValue {
+
+ @Override
+ public String getPath() {
+ return "cs/sys/values/visibilityValue";
+ }
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/publication/DocumentType.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/publication/DocumentType.java
index 7e24061e4..f4a636a1b 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/publication/DocumentType.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/publication/DocumentType.java
@@ -6,4 +6,8 @@
* Path: fs/res/publication/documentTypes/<book | article>
* */
public class DocumentType extends SysValue {
+ @Override
+ public String getPath() {
+ return "fs/res/publication/documentTypes/book";
+ }
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/publication/GlobalIdentifierType.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/publication/GlobalIdentifierType.java
index da92f0a7c..0f0be746f 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/publication/GlobalIdentifierType.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/publication/GlobalIdentifierType.java
@@ -6,4 +6,9 @@
* Path: fs/res/publication/globalIdentifierType
* */
public class GlobalIdentifierType extends SysValue {
+
+ @Override
+ public String getPath() {
+ return "fs/res/publication/globalIdentifierType";
+ }
}
diff --git a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/state/PublicationState.java b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/state/PublicationState.java
index 51eb0a386..0ffb300fc 100644
--- a/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/state/PublicationState.java
+++ b/common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/state/PublicationState.java
@@ -6,6 +6,8 @@
* Path: /api/v1/fs/res/state/publication
* */
public class PublicationState extends SysValue {
- public PublicationState() {
+ @Override
+ public String getPath() {
+ return "fs/res/state/publication";
}
}
diff --git a/pom.xml b/pom.xml
index 59c570a9b..19f42deef 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,28 +29,6 @@
-
- com.github.ekryd.sortpom
- sortpom-maven-plugin
-
-
- verify-sort-pom
-
- sort
-
- validate
-
- false
- false
- true
- true
- ${sortpom.sortDeps}
- ${sortpom.sortFile}
- true
-
-
-
-
org.apache.maven.plugins
maven-jar-plugin