From 734cb6271511dfffd2f7aa6a8c21e3d7a4200f5d Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 2 Jun 2016 08:49:31 +0200 Subject: add additional search method to UR client --- .../java/at/gv/util/client/ur_V5/URClient.java | 33 ++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 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 f391c32..3855927 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 @@ -56,6 +56,7 @@ import at.gv.util.xsd.ur_V5.search.BestandszeitraumVollzug; import at.gv.util.xsd.ur_V5.search.FktRegelTypVollzug; import at.gv.util.xsd.ur_V5.search.FunktionVollzug; import at.gv.util.xsd.ur_V5.search.SucheUnternehmenNachBpkRequest; +import at.gv.util.xsd.ur_V5.search.SucheUnternehmenNachIdRequest; import at.gv.util.xsd.ur_V5.search.SucheUnternehmenRequest; import at.gv.util.xsd.ur_V5.search.SucheUnternehmensdaten; import at.gv.util.xsd.ur_V5.simpletypes.EvbStatusTyp; @@ -86,13 +87,39 @@ public class URClient { initialize(); } +// public List 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 results = searchByExample(sct, -1); +// +// return getNichtNatuerlichePersonen(results); +// } + public List searchByBpk(String vzbpk) throws URClientException { SucheUnternehmenNachBpkRequest request = new SucheUnternehmenNachBpkRequest(); request.setVersion(version); request.setBpkWTUREncoded(vzbpk); request.setNurAktive(true); - + SearchCriteriaType sct = new SearchCriteriaType(); sct.setSucheUnternehmenNachBpkRequest(request); @@ -108,6 +135,7 @@ public class URClient { sud.setIdArt(type); request.setUnternehmensdaten(sud); + SearchCriteriaType sct = new SearchCriteriaType(); sct.setSucheUnternehmenRequest(request); @@ -127,7 +155,7 @@ public class URClient { SearchCriteriaType sct = new SearchCriteriaType(); sct.setSucheUnternehmenRequest(request); - + List results = searchByExample(sct, maxResults); return getNichtNatuerlichePersonen(results); } @@ -359,6 +387,7 @@ public class URClient { body.setSearchCriteria(sct); + //request UR service SearchResponseType srt = null; try { -- cgit v1.2.3