diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-01-10 09:17:22 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-01-10 09:17:22 +0100 |
commit | 2151d0b1dd7b2c5199d394c5ae399a36da7670ef (patch) | |
tree | 7599b089c1d8ac11c72d4add0b7e04c90907f8c1 /src/main/java/at/gv/util/client/ur_V5 | |
parent | 2635ed8953f8428d2634f9fcf9220636a89194e6 (diff) | |
download | egovutils-2151d0b1dd7b2c5199d394c5ae399a36da7670ef.tar.gz egovutils-2151d0b1dd7b2c5199d394c5ae399a36da7670ef.tar.bz2 egovutils-2151d0b1dd7b2c5199d394c5ae399a36da7670ef.zip |
- lib update2.0.2
- switch to version 2.0.2
Diffstat (limited to 'src/main/java/at/gv/util/client/ur_V5')
-rw-r--r-- | src/main/java/at/gv/util/client/ur_V5/URClient.java | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/main/java/at/gv/util/client/ur_V5/URClient.java b/src/main/java/at/gv/util/client/ur_V5/URClient.java index 3855927..6be521e 100644 --- a/src/main/java/at/gv/util/client/ur_V5/URClient.java +++ b/src/main/java/at/gv/util/client/ur_V5/URClient.java @@ -87,31 +87,31 @@ public class URClient { initialize(); } -// public List<NichtNatuerlichePersonTyp> searchByRegisterNumberFullInfo(String number, String type, int maxResults) throws Exception { -// -// SucheUnternehmenNachIdRequest request = new SucheUnternehmenNachIdRequest(); -// -// if (type.equals("ERJ")) -// request.setErj(number); -// else if (type.equals("FBN")) -// request.setFbn(number); -// else if (type.equals("KUR")) -// request.setKur(number); -// else if (type.equals("SEK")) -// request.setSek(number); -// else if (type.equals("ZVR")) -// request.setZvr(number); -// else -// throw new Exception("Wrong RegisterNumber Type"); -// -// request.setMitHistorie(true); -// -// SearchCriteriaType sct = new SearchCriteriaType(); -// sct.setSucheUnternehmenNachIdRequest(request); -// List<ResultRecord> results = searchByExample(sct, -1); -// -// return getNichtNatuerlichePersonen(results); -// } + public List<URSearchResult> searchByRegisterNumberFullInfo(String number, String type, int maxResults) throws Exception { + + SucheUnternehmenNachIdRequest request = new SucheUnternehmenNachIdRequest(); + + if (type.equals("ERJ")) + request.setErj(number); + else if (type.equals("FBN")) + request.setFbn(number); + else if (type.equals("KUR")) + request.setKur(number); + else if (type.equals("SEK")) + request.setSek(number); + else if (type.equals("ZVR")) + request.setZvr(number); + else + throw new Exception("Wrong RegisterNumber Type"); + + request.setMitHistorie(true); + + SearchCriteriaType sct = new SearchCriteriaType(); + sct.setSucheUnternehmenNachIdRequest(request); + List<ResultRecord> results = searchByExample(sct, -1); + + return getURSearchResult(results); + } public List<URSearchResult> searchByBpk(String vzbpk) throws URClientException { SucheUnternehmenNachBpkRequest request = new SucheUnternehmenNachBpkRequest(); |