package ee.tlu.htk.waramu.wssoap; public class WaramuProxy implements ee.tlu.htk.waramu.wssoap.Waramu { private String _endpoint = null; private ee.tlu.htk.waramu.wssoap.Waramu waramu = null; public WaramuProxy() { _initWaramuProxy(); } public WaramuProxy(String endpoint) { _endpoint = endpoint; _initWaramuProxy(); } private void _initWaramuProxy() { try { waramu = (new ee.tlu.htk.waramu.wssoap.WaramuServiceLocator()).getwaramuPort(); if (waramu != null) { if (_endpoint != null) ((javax.xml.rpc.Stub)waramu)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); else _endpoint = (String)((javax.xml.rpc.Stub)waramu)._getProperty("javax.xml.rpc.service.endpoint.address"); } } catch (javax.xml.rpc.ServiceException serviceException) {} } public String getEndpoint() { return _endpoint; } public void setEndpoint(String endpoint) { _endpoint = endpoint; if (waramu != null) ((javax.xml.rpc.Stub)waramu)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); } public ee.tlu.htk.waramu.wssoap.Waramu getWaramu() { if (waramu == null) _initWaramuProxy(); return waramu; } public java.lang.String getResource(java.lang.String appUser, java.lang.String sessId, java.lang.String uid) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.getResource(appUser, sessId, uid); } public java.lang.String list(java.lang.String appUser, java.lang.String sessId) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.list(appUser, sessId); } public java.lang.String search(java.lang.String appUser, java.lang.String sessId, java.lang.String query) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.search(appUser, sessId, query); } public java.lang.String closeSession(java.lang.String sessId) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.closeSession(sessId); } public java.lang.String deleteResource(java.lang.String appUser, java.lang.String sessId, java.lang.String uid) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.deleteResource(appUser, sessId, uid); } public java.lang.String newResource(java.lang.String appUser, java.lang.String sessId, java.lang.Integer typeId, java.lang.String data) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.newResource(appUser, sessId, typeId, data); } public java.lang.String addAttachment(java.lang.String appUser, java.lang.String sessId, java.lang.String resourceId, byte[] attachment, java.lang.String filename) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.addAttachment(appUser, sessId, resourceId, attachment, filename); } public java.lang.String newSession(java.lang.String uid, java.lang.String pwd) throws java.rmi.RemoteException, ee.tlu.htk.waramu.wssoap.Exception{ if (waramu == null) _initWaramuProxy(); return waramu.newSession(uid, pwd); } public byte[] getAttachment(java.lang.String appUser, java.lang.String sessId, java.lang.String resourceId, java.lang.String attachmentId) throws java.rmi.RemoteException, ee.tlu.htk.waramu.wssoap.Exception{ if (waramu == null) _initWaramuProxy(); return waramu.getAttachment(appUser, sessId, resourceId, attachmentId); } public java.lang.String getVocabulary(java.lang.String appUser, java.lang.String sessId, java.lang.Integer typeId, java.lang.String field) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.getVocabulary(appUser, sessId, typeId, field); } public java.lang.String updateResource(java.lang.String appUser, java.lang.String sessId, java.lang.String uid, java.lang.String data) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.updateResource(appUser, sessId, uid, data); } public java.lang.String newPackage(java.lang.String appUser, java.lang.String sessId, byte[] _package, java.lang.String filename) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.newPackage(appUser, sessId, _package, filename); } public java.lang.String listAttachments(java.lang.String appUser, java.lang.String sessId, java.lang.String resourceId) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.listAttachments(appUser, sessId, resourceId); } public java.lang.String removeAttachment(java.lang.String appUser, java.lang.String sessId, java.lang.String resourceId, java.lang.String attachmentId) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.removeAttachment(appUser, sessId, resourceId, attachmentId); } public java.lang.String listTypes(java.lang.String sessId) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.listTypes(sessId); } public java.lang.String describeType(java.lang.String sessId, java.lang.Integer typeId) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.describeType(sessId, typeId); } public java.lang.String listIdentifiers(java.lang.String appUser, java.lang.String sessId, java.lang.String query) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.listIdentifiers(appUser, sessId, query); } public java.lang.String identify(java.lang.String sessId) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.identify(sessId); } public java.lang.String setACL(java.lang.String appUser, java.lang.String sessId, java.lang.String uid, java.lang.String acl) throws java.rmi.RemoteException{ if (waramu == null) _initWaramuProxy(); return waramu.setACL(appUser, sessId, uid, acl); } }