summaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/util
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2016-06-02 08:49:31 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2016-06-02 08:49:31 +0200
commit734cb6271511dfffd2f7aa6a8c21e3d7a4200f5d (patch)
tree49be28e0528fcd2f60273ab8d7bb4c7de388faf1 /src/main/java/at/gv/util
parent5a7cafc63b3892ef90c717eb48c1842e88cd4799 (diff)
downloadegovutils-734cb6271511dfffd2f7aa6a8c21e3d7a4200f5d.tar.gz
egovutils-734cb6271511dfffd2f7aa6a8c21e3d7a4200f5d.tar.bz2
egovutils-734cb6271511dfffd2f7aa6a8c21e3d7a4200f5d.zip
add additional search method to UR client
Diffstat (limited to 'src/main/java/at/gv/util')
-rw-r--r--src/main/java/at/gv/util/client/ur_V5/URClient.java33
1 files 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<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> 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<ResultRecord> results = searchByExample(sct, maxResults);
return getNichtNatuerlichePersonen(results);
}
@@ -359,6 +387,7 @@ public class URClient {
body.setSearchCriteria(sct);
+
//request UR service
SearchResponseType srt = null;
try {