1   /**
2    * Portlet_DL_DLFileShortcutServiceSoapBindingStub.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
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[5];
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("", "folderId"), 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("", "toFolderId"), 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("", "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);
33          oper.addParameter(param);
34          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "communityPermissions"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "ArrayOf_xsd_string"), java.lang.String[].class, false, false);
35          oper.addParameter(param);
36          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "guestPermissions"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "ArrayOf_xsd_string"), java.lang.String[].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("addFileShortcut");
47          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);
48          oper.addParameter(param);
49          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);
50          oper.addParameter(param);
51          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);
52          oper.addParameter(param);
53          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "addCommunityPermissions"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
54          oper.addParameter(param);
55          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "addGuestPermissions"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
56          oper.addParameter(param);
57          oper.setReturnType(new javax.xml.namespace.QName("http://model.documentlibrary.portlet.liferay.com", "DLFileShortcutSoap"));
58          oper.setReturnClass(com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class);
59          oper.setReturnQName(new javax.xml.namespace.QName("", "addFileShortcutReturn"));
60          oper.setStyle(org.apache.axis.constants.Style.RPC);
61          oper.setUse(org.apache.axis.constants.Use.ENCODED);
62          _operations[1] = oper;
63  
64          oper = new org.apache.axis.description.OperationDesc();
65          oper.setName("deleteFileShortcut");
66          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);
67          oper.addParameter(param);
68          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
69          oper.setStyle(org.apache.axis.constants.Style.RPC);
70          oper.setUse(org.apache.axis.constants.Use.ENCODED);
71          _operations[2] = oper;
72  
73          oper = new org.apache.axis.description.OperationDesc();
74          oper.setName("getFileShortcut");
75          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);
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("", "getFileShortcutReturn"));
80          oper.setStyle(org.apache.axis.constants.Style.RPC);
81          oper.setUse(org.apache.axis.constants.Use.ENCODED);
82          _operations[3] = oper;
83  
84          oper = new org.apache.axis.description.OperationDesc();
85          oper.setName("updateFileShortcut");
86          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);
87          oper.addParameter(param);
88          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);
89          oper.addParameter(param);
90          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);
91          oper.addParameter(param);
92          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);
93          oper.addParameter(param);
94          oper.setReturnType(new javax.xml.namespace.QName("http://model.documentlibrary.portlet.liferay.com", "DLFileShortcutSoap"));
95          oper.setReturnClass(com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class);
96          oper.setReturnQName(new javax.xml.namespace.QName("", "updateFileShortcutReturn"));
97          oper.setStyle(org.apache.axis.constants.Style.RPC);
98          oper.setUse(org.apache.axis.constants.Use.ENCODED);
99          _operations[4] = oper;
100 
101     }
102 
103     public Portlet_DL_DLFileShortcutServiceSoapBindingStub() throws org.apache.axis.AxisFault {
104          this(null);
105     }
106 
107     public Portlet_DL_DLFileShortcutServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
108          this(service);
109          super.cachedEndpoint = endpointURL;
110     }
111 
112     public Portlet_DL_DLFileShortcutServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
113         if (service == null) {
114             super.service = new org.apache.axis.client.Service();
115         } else {
116             super.service = service;
117         }
118         ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
119             java.lang.Class cls;
120             javax.xml.namespace.QName qName;
121             javax.xml.namespace.QName qName2;
122             java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
123             java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
124             java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
125             java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
126             java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
127             java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
128             java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
129             java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
130             java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
131             java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
132             qName = new javax.xml.namespace.QName("http://model.documentlibrary.portlet.liferay.com", "DLFileShortcutSoap");
133             cachedSerQNames.add(qName);
134             cls = com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap.class;
135             cachedSerClasses.add(cls);
136             cachedSerFactories.add(beansf);
137             cachedDeserFactories.add(beandf);
138 
139             qName = new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "ArrayOf_xsd_string");
140             cachedSerQNames.add(qName);
141             cls = java.lang.String[].class;
142             cachedSerClasses.add(cls);
143             qName = new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string");
144             qName2 = null;
145             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
146             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
147 
148     }
149 
150     protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
151         try {
152             org.apache.axis.client.Call _call = super._createCall();
153             if (super.maintainSessionSet) {
154                 _call.setMaintainSession(super.maintainSession);
155             }
156             if (super.cachedUsername != null) {
157                 _call.setUsername(super.cachedUsername);
158             }
159             if (super.cachedPassword != null) {
160                 _call.setPassword(super.cachedPassword);
161             }
162             if (super.cachedEndpoint != null) {
163                 _call.setTargetEndpointAddress(super.cachedEndpoint);
164             }
165             if (super.cachedTimeout != null) {
166                 _call.setTimeout(super.cachedTimeout);
167             }
168             if (super.cachedPortName != null) {
169                 _call.setPortName(super.cachedPortName);
170             }
171             java.util.Enumeration keys = super.cachedProperties.keys();
172             while (keys.hasMoreElements()) {
173                 java.lang.String key = (java.lang.String) keys.nextElement();
174                 _call.setProperty(key, super.cachedProperties.get(key));
175             }
176             // All the type mapping information is registered
177             // when the first call is made.
178             // The type mapping information is actually registered in
179             // the TypeMappingRegistry of the service, which
180             // is the reason why registration is only needed for the first call.
181             synchronized (this) {
182                 if (firstCall()) {
183                     // must set encoding style before registering serializers
184                     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
185                     _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
186                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
187                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
188                         javax.xml.namespace.QName qName =
189                                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
190                         java.lang.Object x = cachedSerFactories.get(i);
191                         if (x instanceof Class) {
192                             java.lang.Class sf = (java.lang.Class)
193                                  cachedSerFactories.get(i);
194                             java.lang.Class df = (java.lang.Class)
195                                  cachedDeserFactories.get(i);
196                             _call.registerTypeMapping(cls, qName, sf, df, false);
197                         }
198                         else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
199                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
200                                  cachedSerFactories.get(i);
201                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
202                                  cachedDeserFactories.get(i);
203                             _call.registerTypeMapping(cls, qName, sf, df, false);
204                         }
205                     }
206                 }
207             }
208             return _call;
209         }
210         catch (java.lang.Throwable _t) {
211             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
212         }
213     }
214 
215     public com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap addFileShortcut(long folderId, long toFolderId, java.lang.String toName, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions) throws java.rmi.RemoteException {
216         if (super.cachedEndpoint == null) {
217             throw new org.apache.axis.NoEndPointException();
218         }
219         org.apache.axis.client.Call _call = createCall();
220         _call.setOperation(_operations[0]);
221         _call.setUseSOAPAction(true);
222         _call.setSOAPActionURI("");
223         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
224         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "addFileShortcut"));
225 
226         setRequestHeaders(_call);
227         setAttachments(_call);
228  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(folderId), new java.lang.Long(toFolderId), toName, communityPermissions, guestPermissions});
229 
230         if (_resp instanceof java.rmi.RemoteException) {
231             throw (java.rmi.RemoteException)_resp;
232         }
233         else {
234             extractAttachments(_call);
235             try {
236                 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) _resp;
237             } catch (java.lang.Exception _exception) {
238                 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);
239             }
240         }
241   } catch (org.apache.axis.AxisFault axisFaultException) {
242   throw axisFaultException;
243 }
244     }
245 
246     public com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap addFileShortcut(long folderId, long toFolderId, java.lang.String toName, boolean addCommunityPermissions, boolean addGuestPermissions) throws java.rmi.RemoteException {
247         if (super.cachedEndpoint == null) {
248             throw new org.apache.axis.NoEndPointException();
249         }
250         org.apache.axis.client.Call _call = createCall();
251         _call.setOperation(_operations[1]);
252         _call.setUseSOAPAction(true);
253         _call.setSOAPActionURI("");
254         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
255         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "addFileShortcut"));
256 
257         setRequestHeaders(_call);
258         setAttachments(_call);
259  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(folderId), new java.lang.Long(toFolderId), toName, new java.lang.Boolean(addCommunityPermissions), new java.lang.Boolean(addGuestPermissions)});
260 
261         if (_resp instanceof java.rmi.RemoteException) {
262             throw (java.rmi.RemoteException)_resp;
263         }
264         else {
265             extractAttachments(_call);
266             try {
267                 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) _resp;
268             } catch (java.lang.Exception _exception) {
269                 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);
270             }
271         }
272   } catch (org.apache.axis.AxisFault axisFaultException) {
273   throw axisFaultException;
274 }
275     }
276 
277     public void deleteFileShortcut(long fileShortcutId) throws java.rmi.RemoteException {
278         if (super.cachedEndpoint == null) {
279             throw new org.apache.axis.NoEndPointException();
280         }
281         org.apache.axis.client.Call _call = createCall();
282         _call.setOperation(_operations[2]);
283         _call.setUseSOAPAction(true);
284         _call.setSOAPActionURI("");
285         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
286         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "deleteFileShortcut"));
287 
288         setRequestHeaders(_call);
289         setAttachments(_call);
290  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(fileShortcutId)});
291 
292         if (_resp instanceof java.rmi.RemoteException) {
293             throw (java.rmi.RemoteException)_resp;
294         }
295         extractAttachments(_call);
296   } catch (org.apache.axis.AxisFault axisFaultException) {
297   throw axisFaultException;
298 }
299     }
300 
301     public com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap getFileShortcut(long fileShortcutId) throws java.rmi.RemoteException {
302         if (super.cachedEndpoint == null) {
303             throw new org.apache.axis.NoEndPointException();
304         }
305         org.apache.axis.client.Call _call = createCall();
306         _call.setOperation(_operations[3]);
307         _call.setUseSOAPAction(true);
308         _call.setSOAPActionURI("");
309         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
310         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "getFileShortcut"));
311 
312         setRequestHeaders(_call);
313         setAttachments(_call);
314  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(fileShortcutId)});
315 
316         if (_resp instanceof java.rmi.RemoteException) {
317             throw (java.rmi.RemoteException)_resp;
318         }
319         else {
320             extractAttachments(_call);
321             try {
322                 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) _resp;
323             } catch (java.lang.Exception _exception) {
324                 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);
325             }
326         }
327   } catch (org.apache.axis.AxisFault axisFaultException) {
328   throw axisFaultException;
329 }
330     }
331 
332     public com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap updateFileShortcut(long fileShortcutId, long folderId, long toFolderId, java.lang.String toName) throws java.rmi.RemoteException {
333         if (super.cachedEndpoint == null) {
334             throw new org.apache.axis.NoEndPointException();
335         }
336         org.apache.axis.client.Call _call = createCall();
337         _call.setOperation(_operations[4]);
338         _call.setUseSOAPAction(true);
339         _call.setSOAPActionURI("");
340         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
341         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.documentlibrary.portlet.liferay.com", "updateFileShortcut"));
342 
343         setRequestHeaders(_call);
344         setAttachments(_call);
345  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});
346 
347         if (_resp instanceof java.rmi.RemoteException) {
348             throw (java.rmi.RemoteException)_resp;
349         }
350         else {
351             extractAttachments(_call);
352             try {
353                 return (com.liferay.client.soap.portlet.documentlibrary.model.DLFileShortcutSoap) _resp;
354             } catch (java.lang.Exception _exception) {
355                 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);
356             }
357         }
358   } catch (org.apache.axis.AxisFault axisFaultException) {
359   throw axisFaultException;
360 }
361     }
362 
363 }
364