diff options
author | Thomas <> | 2021-12-12 12:12:35 +0100 |
---|---|---|
committer | Thomas <> | 2021-12-12 12:12:35 +0100 |
commit | 41c43d7b14d67fe7894fa0ad59f73666e67ef054 (patch) | |
tree | 3922256fbdbe9ff26b9aeb36a2fda50dab3218e5 | |
parent | 163a615a5a59c5b1601e9a834ba078596beba0b8 (diff) | |
download | egovutils-41c43d7b14d67fe7894fa0ad59f73666e67ef054.tar.gz egovutils-41c43d7b14d67fe7894fa0ad59f73666e67ef054.tar.bz2 egovutils-41c43d7b14d67fe7894fa0ad59f73666e67ef054.zip |
remove bPK target check in SZR client because SZR supports private sectors too
-rw-r--r-- | src/main/java/at/gv/util/client/szr/SZRClient.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/at/gv/util/client/szr/SZRClient.java b/src/main/java/at/gv/util/client/szr/SZRClient.java index fb0c2e1..32cef41 100644 --- a/src/main/java/at/gv/util/client/szr/SZRClient.java +++ b/src/main/java/at/gv/util/client/szr/SZRClient.java @@ -88,13 +88,13 @@ public class SZRClient { MiscUtil.assertNotNull(target, "target"); String targetPrefix = "urn:publicid:gv.at:cdid+"; String targetString = null; - if (target.length() == 2) { - targetString = targetPrefix + target; - } else if (!target.startsWith(targetPrefix)) { - throw new EgovUtilException("Target must start with " + targetPrefix); - } else { +// if (target.length() == 2) { +// targetString = targetPrefix + target; +// } else if (!target.startsWith(targetPrefix)) { +// throw new EgovUtilException("Target must start with " + targetPrefix); +// } else { targetString = target; - } +// } GetBPK req = new GetBPK(); req.setPersonInfo(personInfo); |