-
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 Added personId field to PersonIdentifier and updated javadoc
- Loading branch information
Showing
1 changed file
with
29 additions
and
3 deletions.
There are no files selected for viewing
32 changes: 29 additions & 3 deletions
32
common/src/main/java/de/uni_jena/thunibib/his/api/v1/cs/psv/PersonIdentifier.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,23 +1,49 @@ | ||
package de.uni_jena.thunibib.his.api.v1.cs.psv; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import de.uni_jena.thunibib.his.api.v1.cs.sys.values.SysValue; | ||
|
||
/** | ||
* Path: <code>/api/v1/cs/psv/person/identifier | ||
* | ||
* At least one of these rights: RIGHT_CS_PSV_PERSON_VIEW_PERSON_IDENTIFIER | ||
* At least these rights: RIGHT_CS_PSV_PERSON_VIEW_PERSON_IDENTIFIER, RIGHT_CS_PSV_PERSON_VIEW_PERSON_MAINDATA | ||
* | ||
* @author shermann (Silvio Hermann) | ||
* */ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class PersonIdentifier extends SysValue { | ||
|
||
public static String getValueParamaterName() { | ||
@JsonProperty("personId") | ||
private int personId; | ||
|
||
@JsonProperty("identifierValue") | ||
private String identifierValue; | ||
|
||
@JsonProperty("identifierType") | ||
private String identifierType; | ||
|
||
public static String getValueParameterName() { | ||
return "identifierValue"; | ||
} | ||
|
||
public static String getTypeParamaterName() { | ||
public static String getTypeParameterName() { | ||
return "typeUniquename"; | ||
} | ||
|
||
public static String getPath() { | ||
return "cs/psv/person/identifier"; | ||
} | ||
|
||
public int getPersonId() { | ||
return personId; | ||
} | ||
|
||
public String getIdentifierValue() { | ||
return identifierValue; | ||
} | ||
|
||
public String getIdentifierType() { | ||
return identifierType; | ||
} | ||
} |