aboutsummaryrefslogtreecommitdiff
path: root/id.server/src/at
diff options
context:
space:
mode:
authorharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2005-09-02 16:05:35 +0000
committerharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2005-09-02 16:05:35 +0000
commit3b76cffce61af9f00b3c61c7337e92931ef03d13 (patch)
tree9f2c6cb91c9df5d11edaab61198999a4e8b73009 /id.server/src/at
parent62f820c249a093ad4ae5ff82392be88563b94fca (diff)
downloadmoa-id-spss-3b76cffce61af9f00b3c61c7337e92931ef03d13.tar.gz
moa-id-spss-3b76cffce61af9f00b3c61c7337e92931ef03d13.tar.bz2
moa-id-spss-3b76cffce61af9f00b3c61c7337e92931ef03d13.zip
Added an "AnyNumber" to IdentificationNumber to be able
to use numbers not yet defined within the person data schema. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@492 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/src/at')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/config/ConfigurationBuilder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/config/ConfigurationBuilder.java b/id.server/src/at/gv/egovernment/moa/id/config/ConfigurationBuilder.java
index c399b72b7..7059aa3fa 100644
--- a/id.server/src/at/gv/egovernment/moa/id/config/ConfigurationBuilder.java
+++ b/id.server/src/at/gv/egovernment/moa/id/config/ConfigurationBuilder.java
@@ -763,7 +763,7 @@ public class ConfigurationBuilder {
* <p>e.g.:<br>
* input element:
* <br>
- * <code>&lt;pr:Firmenbuchnummer shortForm="FN"&gt;000468 i&lt;/pr:Firmenbuchnummer&gt;</code>
+ * <code>&lt;pr:Firmenbuchnummer Identifier="FN"&gt;000468 i&lt;/pr:Firmenbuchnummer&gt;</code>
* <p>
* return value: <code>urn:publicid:gv.at+wbpk+FN468i</code>
*
@@ -776,9 +776,10 @@ public class ConfigurationBuilder {
return null;
}
String identificationNumber = number.getFirstChild().getNodeValue();
+ String identifier = number.getAttribute("Identifier");
// remove all blanks
identificationNumber = StringUtils.removeBlanks(identificationNumber);
- if (number.getLocalName().equals("Firmenbuchnummer")) {
+ if (number.getLocalName().equals("Firmenbuchnummer") || identifier.equalsIgnoreCase("fn")) {
// delete zeros from the beginning of the number
identificationNumber = StringUtils.deleteLeadingZeros(identificationNumber);
// remove hyphens
@@ -786,9 +787,8 @@ public class ConfigurationBuilder {
}
StringBuffer identityLinkDomainIdentifier = new StringBuffer(Constants.URN_PREFIX_WBPK);
identityLinkDomainIdentifier.append("+");
- String shortForm = number.getAttribute("ShortForm");
- if (!identificationNumber.startsWith(shortForm)) {
- identityLinkDomainIdentifier.append(shortForm);
+ if (!identificationNumber.startsWith(identifier)) {
+ identityLinkDomainIdentifier.append(identifier);
}
identityLinkDomainIdentifier.append("+");
identityLinkDomainIdentifier.append(identificationNumber);