-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#550 Map publication state, introduced abstract CommonType
- Loading branch information
Showing
6 changed files
with
200 additions
and
109 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
common/src/main/java/de/uni_jena/thunibib/his/api/v1/CommonType.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,70 @@ | ||
package de.uni_jena.thunibib.his.api.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
abstract public class CommonType { | ||
@JsonProperty("id") | ||
private int id; | ||
@JsonProperty("lockVersion") | ||
private int lockVersion; | ||
@JsonProperty("objGuid") | ||
private String objGuid; | ||
@JsonProperty("shorttext") | ||
private String shortText; | ||
@JsonProperty("defaulttext") | ||
private String defaultText; | ||
@JsonProperty("longtext") | ||
private String longText; | ||
@JsonProperty("text") | ||
private String text; | ||
@JsonProperty("hiskeyId") | ||
private int hisKeyId; | ||
@JsonProperty("sortorder") | ||
private int sortOrder; | ||
@JsonProperty("uniquename") | ||
private String uniqueName; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public int getLockVersion() { | ||
return lockVersion; | ||
} | ||
|
||
public String getObjGuid() { | ||
return objGuid; | ||
} | ||
|
||
public String getShortText() { | ||
return shortText; | ||
} | ||
|
||
public String getDefaultText() { | ||
return defaultText; | ||
} | ||
|
||
public String getLongText() { | ||
return longText; | ||
} | ||
|
||
public String getText() { | ||
return text; | ||
} | ||
|
||
public int getHisKeyId() { | ||
return hisKeyId; | ||
} | ||
|
||
public int getSortOrder() { | ||
return sortOrder; | ||
} | ||
|
||
public String getUniqueName() { | ||
return uniqueName; | ||
} | ||
|
||
public String toString() { | ||
return id + ":" + uniqueName; | ||
} | ||
} |
68 changes: 3 additions & 65 deletions
68
common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/sys/values/PublicationTypeValue.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,73 +1,11 @@ | ||
package de.uni_jena.thunibib.his.api.v1.cs.sys.values; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import de.uni_jena.thunibib.his.api.v1.CommonType; | ||
|
||
/** | ||
* Path: <code>/api/v1/cs/sys/values/publicationTypeValue</code> | ||
* */ | ||
public class PublicationTypeValue { | ||
@JsonProperty("id") | ||
private int id; | ||
@JsonProperty("lockVersion") | ||
private int lockVersion; | ||
@JsonProperty("objGuid") | ||
private String objGuid; | ||
@JsonProperty("shorttext") | ||
private String shortText; | ||
@JsonProperty("defaulttext") | ||
private String defaultText; | ||
@JsonProperty("longtext") | ||
private String longText; | ||
@JsonProperty("text") | ||
private String text; | ||
@JsonProperty("hiskeyId") | ||
private int hisKeyId; | ||
@JsonProperty("sortorder") | ||
private int sortOrder; | ||
@JsonProperty("uniquename") | ||
private String uniqueName; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public int getLockVersion() { | ||
return lockVersion; | ||
} | ||
|
||
public String getObjGuid() { | ||
return objGuid; | ||
} | ||
|
||
public String getShortText() { | ||
return shortText; | ||
} | ||
|
||
public String getDefaultText() { | ||
return defaultText; | ||
} | ||
|
||
public String getLongText() { | ||
return longText; | ||
} | ||
|
||
public String getText() { | ||
return text; | ||
} | ||
|
||
public int getHisKeyId() { | ||
return hisKeyId; | ||
} | ||
|
||
public int getSortOrder() { | ||
return sortOrder; | ||
} | ||
|
||
public String getUniqueName() { | ||
return uniqueName; | ||
} | ||
|
||
public String toString() { | ||
return id + ":" + uniqueName; | ||
public class PublicationTypeValue extends CommonType { | ||
public PublicationTypeValue() { | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
common/src/main/java/de/uni_jena/thunibib/his/api/v1/fs/res/state/PublicationState.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,11 @@ | ||
package de.uni_jena.thunibib.his.api.v1.fs.res.state; | ||
|
||
import de.uni_jena.thunibib.his.api.v1.CommonType; | ||
|
||
/** | ||
* Path: <code>/api/v1/fs/res/state/publication</code> | ||
* */ | ||
public class PublicationState extends CommonType { | ||
public PublicationState() { | ||
} | ||
} |
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