1
7
8 package com.liferay.client.soap.portlet.documentlibrary.service.http;
9
10 public class Portlet_DL_DLFileShortcutServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.soap.portlet.documentlibrary.service.http.DLFileShortcutServiceSoap {
11 private java.util.Vector cachedSerClasses = new java.util.Vector();
12 private java.util.Vector cachedSerQNames = new java.util.Vector();
13 private java.util.Vector cachedSerFactories = new java.util.Vector();
14 private java.util.Vector cachedDeserFactories = new java.util.Vector();
15
16 static org.apache.axis.description.OperationDesc [] _operations;
17
18 static {
19 _operations = new org.apache.axis.description.OperationDesc[4];
20 _initOperationDesc1();
21 }
22
23 private static void _initOperationDesc1(){
24 org.apache.axis.description.OperationDesc oper;
25 org.apache.axis.description.ParameterDesc param;
26 oper = new org.apache.axis.description.OperationDesc();
27 oper.setName("addFileShortcut");
28 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "groupId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
29 oper.addParameter(param);
30 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "folderId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
31 oper.addParameter(param);
32 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "toFolderId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
33 oper.addParameter(param);
34 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "toName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
35 oper.addParameter(param);
36 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "serviceContext"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://service.portal.liferay.com", "ServiceContext"), com.liferay.client.soap.portal.service.ServiceContext.class, false, false);
37 oper.addParameter(param);
38 oper.setReturnType(new javax.xml.namespace.QName("http://model.documentlibrary.portlet.liferay.com", "DLFileShortcutSoap"));
39 oper.setReturnClass(com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class);
40 oper.setReturnQName(new javax.xml.namespace.QName("", "addFileShortcutReturn"));
41 oper.setStyle(org.apache.axis.constants.Style.RPC);
42 oper.setUse(org.apache.axis.constants.Use.ENCODED);
43 _operations[0] = oper;
44
45 oper = new org.apache.axis.description.OperationDesc();
46 oper.setName("deleteFileShortcut");
47 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileShortcutId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
48 oper.addParameter(param);
49 oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
50 oper.setStyle(org.apache.axis.constants.Style.RPC);
51 oper.setUse(org.apache.axis.constants.Use.ENCODED);
52 _operations[1] = oper;
53
54 oper = new org.apache.axis.description.OperationDesc();
55 oper.setName("getFileShortcut");
56 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileShortcutId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
57 oper.addParameter(param);
58 oper.setReturnType(new javax.xml.namespace.QName("http://model.documentlibrary.portlet.liferay.com", "DLFileShortcutSoap"));
59 oper.setReturnClass(com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class);
60 oper.setReturnQName(new javax.xml.namespace.QName("", "getFileShortcutReturn"));
61 oper.setStyle(org.apache.axis.constants.Style.RPC);
62 oper.setUse(org.apache.axis.constants.Use.ENCODED);
63 _operations[2] = oper;
64
65 oper = new org.apache.axis.description.OperationDesc();
66 oper.setName("updateFileShortcut");
67 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileShortcutId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
68 oper.addParameter(param);
69 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "folderId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
70 oper.addParameter(param);
71 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "toFolderId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
72 oper.addParameter(param);
73 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "toName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
74 oper.addParameter(param);
75 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "serviceContext"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://service.portal.liferay.com", "ServiceContext"), com.liferay.client.soap.portal.service.ServiceContext.class, false, false);
76 oper.addParameter(param);
77 oper.setReturnType(new javax.xml.namespace.QName("http://model.documentlibrary.portlet.liferay.com", "DLFileShortcutSoap"));
78 oper.setReturnClass(com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class);
79 oper.setReturnQName(new javax.xml.namespace.QName("", "updateFileShortcutReturn"));
80 oper.setStyle(org.apache.axis.constants.Style.RPC);
81 oper.setUse(org.apache.axis.constants.Use.ENCODED);
82 _operations[3] = oper;
83
84 }
85
86 public Portlet_DL_DLFileShortcutServiceSoapBindingStub() throws org.apache.axis.AxisFault {
87 this(null);
88 }
89
90 public Portlet_DL_DLFileShortcutServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
91 this(service);
92 super.cachedEndpoint = endpointURL;
93 }
94
95 public Portlet_DL_DLFileShortcutServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
96 if (service == null) {
97 super.service = new org.apache.axis.client.Service();
98 } else {
99 super.service = service;
100 }
101 ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
102 java.lang.Class cls;
103 javax.xml.namespace.QName qName;
104 javax.xml.namespace.QName qName2;
105 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
106 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
107 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
108 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
109 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
110 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
111 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
112 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
113 java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
114 java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
115 qName = new javax.xml.namespace.QName("http://model.documentlibrary.portlet.liferay.com", "DLFileShortcutSoap");
116 cachedSerQNames.add(qName);
117 cls = com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class;
118 cachedSerClasses.add(cls);
119 cachedSerFactories.add(beansf);
120 cachedDeserFactories.add(beandf);
121
122 qName = new javax.xml.namespace.QName("http://model.portal.liferay.com", "PortletPreferencesIds");
123 cachedSerQNames.add(qName);
124 cls = com.liferay.client.soap.portal.model.PortletPreferencesIds.class;
125 cachedSerClasses.add(cls);
126 cachedSerFactories.add(beansf);
127 cachedDeserFactories.add(beandf);
128
129 qName = new javax.xml.namespace.QName("http://service.portal.liferay.com", "ServiceContext");
130 cachedSerQNames.add(qName);
131 cls = com.liferay.client.soap.portal.service.ServiceContext.class;
132 cachedSerClasses.add(cls);
133 cachedSerFactories.add(beansf);
134 cachedDeserFactories.add(beandf);
135
136 qName = new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "ArrayOf_xsd_long");
137 cachedSerQNames.add(qName);
138 cls = long[].class;
139 cachedSerClasses.add(cls);
140 qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long");
141 qName2 = null;
142 cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
143 cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
144
145 qName = new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "ArrayOf_xsd_string");
146 cachedSerQNames.add(qName);
147 cls = java.lang.String[].class;
148 cachedSerClasses.add(cls);
149 qName = new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string");
150 qName2 = null;
151 cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
152 cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
153
154 }
155
156 protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
157 try {
158 org.apache.axis.client.Call _call = super._createCall();
159 if (super.maintainSessionSet) {
160 _call.setMaintainSession(super.maintainSession);
161 }
162 if (super.cachedUsername != null) {
163 _call.setUsername(super.cachedUsername);
164 }
165 if (super.cachedPassword != null) {
166 _call.setPassword(super.cachedPassword);
167 }
168 if (super.cachedEndpoint != null) {
169 _call.setTargetEndpointAddress(super.cachedEndpoint);
170 }
171 if (super.cachedTimeout != null) {
172 _call.setTimeout(super.cachedTimeout);
173 }
174 if (super.cachedPortName != null) {
175 _call.setPortName(super.cachedPortName);
176 }
177 java.util.Enumeration keys = super.cachedProperties.keys();
178 while (keys.hasMoreElements()) {
179 java.lang.String key = (java.lang.String) keys.nextElement();
180 _call.setProperty(key, super.cachedProperties.get(key));
181 }
182 synchronized (this) {
188 if (firstCall()) {
189 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
191 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
192 for (int i = 0; i < cachedSerFactories.size(); ++i) {
193 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
194 javax.xml.namespace.QName qName =
195 (javax.xml.namespace.QName) cachedSerQNames.get(i);
196 java.lang.Object x = cachedSerFactories.get(i);
197 if (x instanceof Class) {
198 java.lang.Class sf = (java.lang.Class)
199 cachedSerFactories.get(i);
200 java.lang.Class df = (java.lang.Class)
201 cachedDeserFactories.get(i);
202 _call.registerTypeMapping(cls, qName, sf, df, false);
203 }
204 else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
205 org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
206 cachedSerFactories.get(i);
207 org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
208 cachedDeserFactories.get(i);
209 _call.registerTypeMapping(cls, qName, sf, df, false);
210 }
211 }
212 }
213 }
214 return _call;
215 }
216 catch (java.lang.Throwable _t) {
217 throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
218 }
219 }
220
221 public com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap addFileShortcut(long groupId, long folderId, long toFolderId, java.lang.String toName, com.liferay.client.soap.portal.service.ServiceContext serviceContext) throws java.rmi.RemoteException {
222 if (super.cachedEndpoint == null) {
223 throw new org.apache.axis.NoEndPointException();
224 }
225 org.apache.axis.client.Call _call = createCall();
226 _call.setOperation(_operations[0]);
227 _call.setUseSOAPAction(true);
228 _call.setSOAPActionURI("");
229 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
230 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "addFileShortcut"));
231
232 setRequestHeaders(_call);
233 setAttachments(_call);
234 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(groupId), new java.lang.Long(folderId), new java.lang.Long(toFolderId), toName, serviceContext});
235
236 if (_resp instanceof java.rmi.RemoteException) {
237 throw (java.rmi.RemoteException)_resp;
238 }
239 else {
240 extractAttachments(_call);
241 try {
242 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) _resp;
243 } catch (java.lang.Exception _exception) {
244 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class);
245 }
246 }
247 } catch (org.apache.axis.AxisFault axisFaultException) {
248 throw axisFaultException;
249 }
250 }
251
252 public void deleteFileShortcut(long fileShortcutId) throws java.rmi.RemoteException {
253 if (super.cachedEndpoint == null) {
254 throw new org.apache.axis.NoEndPointException();
255 }
256 org.apache.axis.client.Call _call = createCall();
257 _call.setOperation(_operations[1]);
258 _call.setUseSOAPAction(true);
259 _call.setSOAPActionURI("");
260 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
261 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "deleteFileShortcut"));
262
263 setRequestHeaders(_call);
264 setAttachments(_call);
265 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(fileShortcutId)});
266
267 if (_resp instanceof java.rmi.RemoteException) {
268 throw (java.rmi.RemoteException)_resp;
269 }
270 extractAttachments(_call);
271 } catch (org.apache.axis.AxisFault axisFaultException) {
272 throw axisFaultException;
273 }
274 }
275
276 public com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap getFileShortcut(long fileShortcutId) throws java.rmi.RemoteException {
277 if (super.cachedEndpoint == null) {
278 throw new org.apache.axis.NoEndPointException();
279 }
280 org.apache.axis.client.Call _call = createCall();
281 _call.setOperation(_operations[2]);
282 _call.setUseSOAPAction(true);
283 _call.setSOAPActionURI("");
284 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
285 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "getFileShortcut"));
286
287 setRequestHeaders(_call);
288 setAttachments(_call);
289 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(fileShortcutId)});
290
291 if (_resp instanceof java.rmi.RemoteException) {
292 throw (java.rmi.RemoteException)_resp;
293 }
294 else {
295 extractAttachments(_call);
296 try {
297 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) _resp;
298 } catch (java.lang.Exception _exception) {
299 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class);
300 }
301 }
302 } catch (org.apache.axis.AxisFault axisFaultException) {
303 throw axisFaultException;
304 }
305 }
306
307 public com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap updateFileShortcut(long fileShortcutId, long folderId, long toFolderId, java.lang.String toName, com.liferay.client.soap.portal.service.ServiceContext serviceContext) throws java.rmi.RemoteException {
308 if (super.cachedEndpoint == null) {
309 throw new org.apache.axis.NoEndPointException();
310 }
311 org.apache.axis.client.Call _call = createCall();
312 _call.setOperation(_operations[3]);
313 _call.setUseSOAPAction(true);
314 _call.setSOAPActionURI("");
315 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
316 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "updateFileShortcut"));
317
318 setRequestHeaders(_call);
319 setAttachments(_call);
320 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(fileShortcutId), new java.lang.Long(folderId), new java.lang.Long(toFolderId), toName, serviceContext});
321
322 if (_resp instanceof java.rmi.RemoteException) {
323 throw (java.rmi.RemoteException)_resp;
324 }
325 else {
326 extractAttachments(_call);
327 try {
328 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) _resp;
329 } catch (java.lang.Exception _exception) {
330 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class);
331 }
332 }
333 } catch (org.apache.axis.AxisFault axisFaultException) {
334 throw axisFaultException;
335 }
336 }
337
338 }
339