diff options
Diffstat (limited to 'src/main/java/at/gv/util')
-rw-r--r-- | src/main/java/at/gv/util/MiscUtil.java | 4 | ||||
-rw-r--r-- | src/main/java/at/gv/util/client/ur_V5/URClient.java | 50 |
2 files changed, 25 insertions, 29 deletions
diff --git a/src/main/java/at/gv/util/MiscUtil.java b/src/main/java/at/gv/util/MiscUtil.java index 6ddca0d..97da3dc 100644 --- a/src/main/java/at/gv/util/MiscUtil.java +++ b/src/main/java/at/gv/util/MiscUtil.java @@ -21,8 +21,6 @@ import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.lang.reflect.InvocationTargetException; -import java.nio.channels.Channels; -import java.nio.channels.ReadableByteChannel; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; @@ -55,8 +53,6 @@ import org.slf4j.LoggerFactory; import org.w3c.dom.Document; import org.xml.sax.SAXException; -import com.sun.corba.se.spi.ior.Writeable; - import at.gv.util.data.Empty; import at.gv.util.ex.EgovUtilException; 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(); |