1   /**
2    * Portal_LayoutSetPrototypeServiceSoapBindingStub.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.portal.service.http;
9   
10  public class Portal_LayoutSetPrototypeServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.soap.portal.service.http.LayoutSetPrototypeServiceSoap {
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[3];
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("deleteLayoutSetPrototype");
28          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "layoutSetPrototypeId"), 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          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
31          oper.setStyle(org.apache.axis.constants.Style.RPC);
32          oper.setUse(org.apache.axis.constants.Use.ENCODED);
33          _operations[0] = oper;
34  
35          oper = new org.apache.axis.description.OperationDesc();
36          oper.setName("getLayoutSetPrototype");
37          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "layoutSetPrototypeId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
38          oper.addParameter(param);
39          oper.setReturnType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "LayoutSetPrototypeSoap"));
40          oper.setReturnClass(com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap.class);
41          oper.setReturnQName(new javax.xml.namespace.QName("", "getLayoutSetPrototypeReturn"));
42          oper.setStyle(org.apache.axis.constants.Style.RPC);
43          oper.setUse(org.apache.axis.constants.Use.ENCODED);
44          _operations[1] = oper;
45  
46          oper = new org.apache.axis.description.OperationDesc();
47          oper.setName("search");
48          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "companyId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
49          oper.addParameter(param);
50          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "active"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
51          oper.addParameter(param);
52          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "obc"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://util.kernel.portal.liferay.com", "OrderByComparator"), com.liferay.client.soap.portal.kernel.util.OrderByComparator.class, false, false);
53          oper.addParameter(param);
54          oper.setReturnType(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_tns2_LayoutSetPrototypeSoap"));
55          oper.setReturnClass(com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap[].class);
56          oper.setReturnQName(new javax.xml.namespace.QName("", "searchReturn"));
57          oper.setStyle(org.apache.axis.constants.Style.RPC);
58          oper.setUse(org.apache.axis.constants.Use.ENCODED);
59          _operations[2] = oper;
60  
61      }
62  
63      public Portal_LayoutSetPrototypeServiceSoapBindingStub() throws org.apache.axis.AxisFault {
64           this(null);
65      }
66  
67      public Portal_LayoutSetPrototypeServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
68           this(service);
69           super.cachedEndpoint = endpointURL;
70      }
71  
72      public Portal_LayoutSetPrototypeServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
73          if (service == null) {
74              super.service = new org.apache.axis.client.Service();
75          } else {
76              super.service = service;
77          }
78          ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
79              java.lang.Class cls;
80              javax.xml.namespace.QName qName;
81              javax.xml.namespace.QName qName2;
82              java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
83              java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
84              java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
85              java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
86              java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
87              java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
88              java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
89              java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
90              java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
91              java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
92              qName = new javax.xml.namespace.QName("http://model.portal.liferay.com", "LayoutSetPrototypeSoap");
93              cachedSerQNames.add(qName);
94              cls = com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap.class;
95              cachedSerClasses.add(cls);
96              cachedSerFactories.add(beansf);
97              cachedDeserFactories.add(beandf);
98  
99              qName = new javax.xml.namespace.QName("http://util.kernel.portal.liferay.com", "OrderByComparator");
100             cachedSerQNames.add(qName);
101             cls = com.liferay.client.soap.portal.kernel.util.OrderByComparator.class;
102             cachedSerClasses.add(cls);
103             cachedSerFactories.add(beansf);
104             cachedDeserFactories.add(beandf);
105 
106             qName = new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_tns2_LayoutSetPrototypeSoap");
107             cachedSerQNames.add(qName);
108             cls = com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap[].class;
109             cachedSerClasses.add(cls);
110             qName = new javax.xml.namespace.QName("http://model.portal.liferay.com", "LayoutSetPrototypeSoap");
111             qName2 = null;
112             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
113             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
114 
115             qName = new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "ArrayOf_xsd_string");
116             cachedSerQNames.add(qName);
117             cls = java.lang.String[].class;
118             cachedSerClasses.add(cls);
119             qName = new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string");
120             qName2 = null;
121             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
122             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
123 
124     }
125 
126     protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
127         try {
128             org.apache.axis.client.Call _call = super._createCall();
129             if (super.maintainSessionSet) {
130                 _call.setMaintainSession(super.maintainSession);
131             }
132             if (super.cachedUsername != null) {
133                 _call.setUsername(super.cachedUsername);
134             }
135             if (super.cachedPassword != null) {
136                 _call.setPassword(super.cachedPassword);
137             }
138             if (super.cachedEndpoint != null) {
139                 _call.setTargetEndpointAddress(super.cachedEndpoint);
140             }
141             if (super.cachedTimeout != null) {
142                 _call.setTimeout(super.cachedTimeout);
143             }
144             if (super.cachedPortName != null) {
145                 _call.setPortName(super.cachedPortName);
146             }
147             java.util.Enumeration keys = super.cachedProperties.keys();
148             while (keys.hasMoreElements()) {
149                 java.lang.String key = (java.lang.String) keys.nextElement();
150                 _call.setProperty(key, super.cachedProperties.get(key));
151             }
152             // All the type mapping information is registered
153             // when the first call is made.
154             // The type mapping information is actually registered in
155             // the TypeMappingRegistry of the service, which
156             // is the reason why registration is only needed for the first call.
157             synchronized (this) {
158                 if (firstCall()) {
159                     // must set encoding style before registering serializers
160                     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
161                     _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
162                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
163                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
164                         javax.xml.namespace.QName qName =
165                                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
166                         java.lang.Object x = cachedSerFactories.get(i);
167                         if (x instanceof Class) {
168                             java.lang.Class sf = (java.lang.Class)
169                                  cachedSerFactories.get(i);
170                             java.lang.Class df = (java.lang.Class)
171                                  cachedDeserFactories.get(i);
172                             _call.registerTypeMapping(cls, qName, sf, df, false);
173                         }
174                         else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
175                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
176                                  cachedSerFactories.get(i);
177                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
178                                  cachedDeserFactories.get(i);
179                             _call.registerTypeMapping(cls, qName, sf, df, false);
180                         }
181                     }
182                 }
183             }
184             return _call;
185         }
186         catch (java.lang.Throwable _t) {
187             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
188         }
189     }
190 
191     public void deleteLayoutSetPrototype(long layoutSetPrototypeId) throws java.rmi.RemoteException {
192         if (super.cachedEndpoint == null) {
193             throw new org.apache.axis.NoEndPointException();
194         }
195         org.apache.axis.client.Call _call = createCall();
196         _call.setOperation(_operations[0]);
197         _call.setUseSOAPAction(true);
198         _call.setSOAPActionURI("");
199         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
200         _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "deleteLayoutSetPrototype"));
201 
202         setRequestHeaders(_call);
203         setAttachments(_call);
204  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(layoutSetPrototypeId)});
205 
206         if (_resp instanceof java.rmi.RemoteException) {
207             throw (java.rmi.RemoteException)_resp;
208         }
209         extractAttachments(_call);
210   } catch (org.apache.axis.AxisFault axisFaultException) {
211   throw axisFaultException;
212 }
213     }
214 
215     public com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap getLayoutSetPrototype(long layoutSetPrototypeId) 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[1]);
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.portal.liferay.com", "getLayoutSetPrototype"));
225 
226         setRequestHeaders(_call);
227         setAttachments(_call);
228  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(layoutSetPrototypeId)});
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.portal.model.LayoutSetPrototypeSoap) _resp;
237             } catch (java.lang.Exception _exception) {
238                 return (com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap.class);
239             }
240         }
241   } catch (org.apache.axis.AxisFault axisFaultException) {
242   throw axisFaultException;
243 }
244     }
245 
246     public com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap[] search(long companyId, boolean active, com.liferay.client.soap.portal.kernel.util.OrderByComparator obc) 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[2]);
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.portal.liferay.com", "search"));
256 
257         setRequestHeaders(_call);
258         setAttachments(_call);
259  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(companyId), new java.lang.Boolean(active), obc});
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.portal.model.LayoutSetPrototypeSoap[]) _resp;
268             } catch (java.lang.Exception _exception) {
269                 return (com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.LayoutSetPrototypeSoap[].class);
270             }
271         }
272   } catch (org.apache.axis.AxisFault axisFaultException) {
273   throw axisFaultException;
274 }
275     }
276 
277 }
278