aboutsummaryrefslogtreecommitdiff
path: root/id.server/src/at/gv/egovernment/moa/id
diff options
context:
space:
mode:
Diffstat (limited to 'id.server/src/at/gv/egovernment/moa/id')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/auth/data/IdentityLink.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/data/IdentityLink.java b/id.server/src/at/gv/egovernment/moa/id/auth/data/IdentityLink.java
index 46a63ef34..27cefaa77 100644
--- a/id.server/src/at/gv/egovernment/moa/id/auth/data/IdentityLink.java
+++ b/id.server/src/at/gv/egovernment/moa/id/auth/data/IdentityLink.java
@@ -34,6 +34,11 @@ public class IdentityLink {
* family name
*/
private String familyName;
+
+ /**
+ * The name as (givenName + familyName)
+ */
+ private String name;
/**
* date of birth
*/
@@ -92,7 +97,18 @@ public class IdentityLink {
public String getGivenName() {
return givenName;
}
-
+
+ /**
+ * Returns the name.
+ * @return The name.
+ */
+ public String getName() {
+ if (name == null) {
+ name = givenName + " " + familyName;
+ }
+ return name;
+ }
+
/**
* Returns the identificationValue.
* <code>"identificationValue"</code> is the translation of <code>"Stammzahl"</code>.