KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > authoring > AuthoringServiceSoapBindingStub


1 /**
2  * AuthoringServiceSoapBindingStub.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.example.webservice.authoring;
9
10 public class AuthoringServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.alfresco.example.webservice.authoring.AuthoringServiceSoapPort {
11     private java.util.Vector JavaDoc cachedSerClasses = new java.util.Vector JavaDoc();
12     private java.util.Vector JavaDoc cachedSerQNames = new java.util.Vector JavaDoc();
13     private java.util.Vector JavaDoc cachedSerFactories = new java.util.Vector JavaDoc();
14     private java.util.Vector JavaDoc cachedDeserFactories = new java.util.Vector JavaDoc();
15
16     static org.apache.axis.description.OperationDesc [] _operations;
17
18     static {
19         _operations = new org.apache.axis.description.OperationDesc[11];
20         _initOperationDesc1();
21         _initOperationDesc2();
22     }
23
24     private static void _initOperationDesc1(){
25         org.apache.axis.description.OperationDesc oper;
26         org.apache.axis.description.ParameterDesc param;
27         oper = new org.apache.axis.description.OperationDesc();
28         oper.setName("checkout");
29         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
30         oper.addParameter(param);
31         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "destination"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ParentReference"), org.alfresco.example.webservice.types.ParentReference.class, false, false);
32         oper.addParameter(param);
33         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "CheckoutResult"));
34         oper.setReturnClass(org.alfresco.example.webservice.authoring.CheckoutResult.class);
35         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "checkoutReturn"));
36         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
37         oper.setUse(org.apache.axis.constants.Use.LITERAL);
38         oper.addFault(new org.apache.axis.description.FaultDesc(
39                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
40                       "org.alfresco.example.webservice.authoring.AuthoringFault",
41                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
42                       true
43                      ));
44         _operations[0] = oper;
45
46         oper = new org.apache.axis.description.OperationDesc();
47         oper.setName("checkin");
48         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
49         oper.addParameter(param);
50         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "comments"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"), org.alfresco.example.webservice.types.NamedValue[].class, false, false);
51         oper.addParameter(param);
52         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "keepCheckedOut"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
53         oper.addParameter(param);
54         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "CheckinResult"));
55         oper.setReturnClass(org.alfresco.example.webservice.authoring.CheckinResult.class);
56         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "checkinReturn"));
57         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
58         oper.setUse(org.apache.axis.constants.Use.LITERAL);
59         oper.addFault(new org.apache.axis.description.FaultDesc(
60                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
61                       "org.alfresco.example.webservice.authoring.AuthoringFault",
62                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
63                       true
64                      ));
65         _operations[1] = oper;
66
67         oper = new org.apache.axis.description.OperationDesc();
68         oper.setName("checkinExternal");
69         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
70         oper.addParameter(param);
71         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "comments"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"), org.alfresco.example.webservice.types.NamedValue[].class, false, false);
72         oper.addParameter(param);
73         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "keepCheckedOut"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
74         oper.addParameter(param);
75         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "format"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat"), org.alfresco.example.webservice.types.ContentFormat.class, false, false);
76         oper.addParameter(param);
77         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "content"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class, false, false);
78         oper.addParameter(param);
79         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
80         oper.setReturnClass(org.alfresco.example.webservice.types.Reference.class);
81         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "checkinExternalReturn"));
82         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
83         oper.setUse(org.apache.axis.constants.Use.LITERAL);
84         oper.addFault(new org.apache.axis.description.FaultDesc(
85                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
86                       "org.alfresco.example.webservice.authoring.AuthoringFault",
87                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
88                       true
89                      ));
90         _operations[2] = oper;
91
92         oper = new org.apache.axis.description.OperationDesc();
93         oper.setName("cancelCheckout");
94         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
95         oper.addParameter(param);
96         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "CancelCheckoutResult"));
97         oper.setReturnClass(org.alfresco.example.webservice.authoring.CancelCheckoutResult.class);
98         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "cancelCheckoutReturn"));
99         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
100         oper.setUse(org.apache.axis.constants.Use.LITERAL);
101         oper.addFault(new org.apache.axis.description.FaultDesc(
102                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
103                       "org.alfresco.example.webservice.authoring.AuthoringFault",
104                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
105                       true
106                      ));
107         _operations[3] = oper;
108
109         oper = new org.apache.axis.description.OperationDesc();
110         oper.setName("lock");
111         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
112         oper.addParameter(param);
113         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "lockChildren"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
114         oper.addParameter(param);
115         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "lockType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "LockTypeEnum"), org.alfresco.example.webservice.authoring.LockTypeEnum.class, false, false);
116         oper.addParameter(param);
117         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
118         oper.setReturnClass(org.alfresco.example.webservice.types.Reference[].class);
119         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "lockReturn"));
120         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
121         oper.setUse(org.apache.axis.constants.Use.LITERAL);
122         oper.addFault(new org.apache.axis.description.FaultDesc(
123                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
124                       "org.alfresco.example.webservice.authoring.AuthoringFault",
125                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
126                       true
127                      ));
128         _operations[4] = oper;
129
130         oper = new org.apache.axis.description.OperationDesc();
131         oper.setName("unlock");
132         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
133         oper.addParameter(param);
134         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "unlockChildren"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
135         oper.addParameter(param);
136         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
137         oper.setReturnClass(org.alfresco.example.webservice.types.Reference[].class);
138         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "unlockReturn"));
139         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
140         oper.setUse(org.apache.axis.constants.Use.LITERAL);
141         oper.addFault(new org.apache.axis.description.FaultDesc(
142                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
143                       "org.alfresco.example.webservice.authoring.AuthoringFault",
144                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
145                       true
146                      ));
147         _operations[5] = oper;
148
149         oper = new org.apache.axis.description.OperationDesc();
150         oper.setName("getLockStatus");
151         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
152         oper.addParameter(param);
153         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "LockStatus"));
154         oper.setReturnClass(org.alfresco.example.webservice.authoring.LockStatus[].class);
155         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "getLockStatusReturn"));
156         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
157         oper.setUse(org.apache.axis.constants.Use.LITERAL);
158         oper.addFault(new org.apache.axis.description.FaultDesc(
159                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
160                       "org.alfresco.example.webservice.authoring.AuthoringFault",
161                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
162                       true
163                      ));
164         _operations[6] = oper;
165
166         oper = new org.apache.axis.description.OperationDesc();
167         oper.setName("createVersion");
168         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
169         oper.addParameter(param);
170         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "comments"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"), org.alfresco.example.webservice.types.NamedValue[].class, false, false);
171         oper.addParameter(param);
172         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "versionChildren"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
173         oper.addParameter(param);
174         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "VersionResult"));
175         oper.setReturnClass(org.alfresco.example.webservice.authoring.VersionResult.class);
176         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "createVersionReturn"));
177         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
178         oper.setUse(org.apache.axis.constants.Use.LITERAL);
179         oper.addFault(new org.apache.axis.description.FaultDesc(
180                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
181                       "org.alfresco.example.webservice.authoring.AuthoringFault",
182                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
183                       true
184                      ));
185         _operations[7] = oper;
186
187         oper = new org.apache.axis.description.OperationDesc();
188         oper.setName("getVersionHistory");
189         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "node"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"), org.alfresco.example.webservice.types.Reference.class, false, false);
190         oper.addParameter(param);
191         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "VersionHistory"));
192         oper.setReturnClass(org.alfresco.example.webservice.types.VersionHistory.class);
193         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "getVersionHistoryReturn"));
194         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
195         oper.setUse(org.apache.axis.constants.Use.LITERAL);
196         oper.addFault(new org.apache.axis.description.FaultDesc(
197                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
198                       "org.alfresco.example.webservice.authoring.AuthoringFault",
199                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
200                       true
201                      ));
202         _operations[8] = oper;
203
204         oper = new org.apache.axis.description.OperationDesc();
205         oper.setName("revertVersion");
206         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "node"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"), org.alfresco.example.webservice.types.Reference.class, false, false);
207         oper.addParameter(param);
208         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "versionLabel"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String JavaDoc.class, false, false);
209         oper.addParameter(param);
210         oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
211         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
212         oper.setUse(org.apache.axis.constants.Use.LITERAL);
213         oper.addFault(new org.apache.axis.description.FaultDesc(
214                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
215                       "org.alfresco.example.webservice.authoring.AuthoringFault",
216                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
217                       true
218                      ));
219         _operations[9] = oper;
220
221     }
222
223     private static void _initOperationDesc2(){
224         org.apache.axis.description.OperationDesc oper;
225         org.apache.axis.description.ParameterDesc param;
226         oper = new org.apache.axis.description.OperationDesc();
227         oper.setName("deleteAllVersions");
228         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "node"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"), org.alfresco.example.webservice.types.Reference.class, false, false);
229         oper.addParameter(param);
230         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "VersionHistory"));
231         oper.setReturnClass(org.alfresco.example.webservice.types.VersionHistory.class);
232         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "deleteAllVersionsReturn"));
233         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
234         oper.setUse(org.apache.axis.constants.Use.LITERAL);
235         oper.addFault(new org.apache.axis.description.FaultDesc(
236                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
237                       "org.alfresco.example.webservice.authoring.AuthoringFault",
238                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault"),
239                       true
240                      ));
241         _operations[10] = oper;
242
243     }
244
245     public AuthoringServiceSoapBindingStub() throws org.apache.axis.AxisFault {
246          this(null);
247     }
248
249     public AuthoringServiceSoapBindingStub(java.net.URL JavaDoc endpointURL, javax.xml.rpc.Service JavaDoc service) throws org.apache.axis.AxisFault {
250          this(service);
251          super.cachedEndpoint = endpointURL;
252     }
253
254     public AuthoringServiceSoapBindingStub(javax.xml.rpc.Service JavaDoc service) throws org.apache.axis.AxisFault {
255         if (service == null) {
256             super.service = new org.apache.axis.client.Service();
257         } else {
258             super.service = service;
259         }
260         ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
261             java.lang.Class JavaDoc cls;
262             javax.xml.namespace.QName JavaDoc qName;
263             javax.xml.namespace.QName JavaDoc qName2;
264             java.lang.Class JavaDoc beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
265             java.lang.Class JavaDoc beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
266             java.lang.Class JavaDoc enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
267             java.lang.Class JavaDoc enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
268             java.lang.Class JavaDoc arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
269             java.lang.Class JavaDoc arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
270             java.lang.Class JavaDoc simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
271             java.lang.Class JavaDoc simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
272             java.lang.Class JavaDoc simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
273             java.lang.Class JavaDoc simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
274             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ContentFormat>encoding");
275             cachedSerQNames.add(qName);
276             cls = java.lang.String JavaDoc.class;
277             cachedSerClasses.add(cls);
278             cachedSerFactories.add(simplesf);
279             cachedDeserFactories.add(simpledf);
280
281             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ContentFormat>mimetype");
282             cachedSerQNames.add(qName);
283             cls = java.lang.String JavaDoc.class;
284             cachedSerClasses.add(cls);
285             cachedSerFactories.add(simplesf);
286             cachedDeserFactories.add(simpledf);
287
288             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node");
289             cachedSerQNames.add(qName);
290             cls = org.alfresco.example.webservice.types.ResultSetRowNode.class;
291             cachedSerClasses.add(cls);
292             cachedSerFactories.add(beansf);
293             cachedDeserFactories.add(beandf);
294
295             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">Store>address");
296             cachedSerQNames.add(qName);
297             cls = java.lang.String JavaDoc.class;
298             cachedSerClasses.add(cls);
299             cachedSerFactories.add(simplesf);
300             cachedDeserFactories.add(simpledf);
301
302             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition");
303             cachedSerQNames.add(qName);
304             cls = org.alfresco.example.webservice.types.AssociationDefinition.class;
305             cachedSerClasses.add(cls);
306             cachedSerFactories.add(beansf);
307             cachedDeserFactories.add(beandf);
308
309             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Cardinality");
310             cachedSerQNames.add(qName);
311             cls = org.alfresco.example.webservice.types.Cardinality.class;
312             cachedSerClasses.add(cls);
313             cachedSerFactories.add(enumsf);
314             cachedDeserFactories.add(enumdf);
315
316             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Category");
317             cachedSerQNames.add(qName);
318             cls = org.alfresco.example.webservice.types.Category.class;
319             cachedSerClasses.add(cls);
320             cachedSerFactories.add(beansf);
321             cachedDeserFactories.add(beandf);
322
323             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition");
324             cachedSerQNames.add(qName);
325             cls = org.alfresco.example.webservice.types.ClassDefinition.class;
326             cachedSerClasses.add(cls);
327             cachedSerFactories.add(beansf);
328             cachedDeserFactories.add(beandf);
329
330             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Classification");
331             cachedSerQNames.add(qName);
332             cls = org.alfresco.example.webservice.types.Classification.class;
333             cachedSerClasses.add(cls);
334             cachedSerFactories.add(beansf);
335             cachedDeserFactories.add(beandf);
336
337             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Content");
338             cachedSerQNames.add(qName);
339             cls = org.alfresco.example.webservice.types.Content.class;
340             cachedSerClasses.add(cls);
341             cachedSerFactories.add(beansf);
342             cachedDeserFactories.add(beandf);
343
344             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat");
345             cachedSerQNames.add(qName);
346             cls = org.alfresco.example.webservice.types.ContentFormat.class;
347             cachedSerClasses.add(cls);
348             cachedSerFactories.add(beansf);
349             cachedDeserFactories.add(beandf);
350
351             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name");
352             cachedSerQNames.add(qName);
353             cls = java.lang.String JavaDoc.class;
354             cachedSerClasses.add(cls);
355             cachedSerFactories.add(simplesf);
356             cachedDeserFactories.add(simpledf);
357
358             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue");
359             cachedSerQNames.add(qName);
360             cls = org.alfresco.example.webservice.types.NamedValue.class;
361             cachedSerClasses.add(cls);
362             cachedSerFactories.add(beansf);
363             cachedDeserFactories.add(beandf);
364
365             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Node");
366             cachedSerQNames.add(qName);
367             cls = org.alfresco.example.webservice.types.Node.class;
368             cachedSerClasses.add(cls);
369             cachedSerFactories.add(beansf);
370             cachedDeserFactories.add(beandf);
371
372             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NodeDefinition");
373             cachedSerQNames.add(qName);
374             cls = org.alfresco.example.webservice.types.NodeDefinition.class;
375             cachedSerClasses.add(cls);
376             cachedSerFactories.add(beansf);
377             cachedDeserFactories.add(beandf);
378
379             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ParentReference");
380             cachedSerQNames.add(qName);
381             cls = org.alfresco.example.webservice.types.ParentReference.class;
382             cachedSerClasses.add(cls);
383             cachedSerFactories.add(beansf);
384             cachedDeserFactories.add(beandf);
385
386             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Path");
387             cachedSerQNames.add(qName);
388             cls = java.lang.String JavaDoc.class;
389             cachedSerClasses.add(cls);
390             cachedSerFactories.add(simplesf);
391             cachedDeserFactories.add(simpledf);
392
393             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate");
394             cachedSerQNames.add(qName);
395             cls = org.alfresco.example.webservice.types.Predicate.class;
396             cachedSerClasses.add(cls);
397             cachedSerFactories.add(beansf);
398             cachedDeserFactories.add(beandf);
399
400             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "PropertyDefinition");
401             cachedSerQNames.add(qName);
402             cls = org.alfresco.example.webservice.types.PropertyDefinition.class;
403             cachedSerClasses.add(cls);
404             cachedSerFactories.add(beansf);
405             cachedDeserFactories.add(beandf);
406
407             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Query");
408             cachedSerQNames.add(qName);
409             cls = org.alfresco.example.webservice.types.Query.class;
410             cachedSerClasses.add(cls);
411             cachedSerFactories.add(beansf);
412             cachedDeserFactories.add(beandf);
413
414             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "QueryLanguageEnum");
415             cachedSerQNames.add(qName);
416             cls = org.alfresco.example.webservice.types.QueryLanguageEnum.class;
417             cachedSerClasses.add(cls);
418             cachedSerFactories.add(enumsf);
419             cachedDeserFactories.add(enumdf);
420
421             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference");
422             cachedSerQNames.add(qName);
423             cls = org.alfresco.example.webservice.types.Reference.class;
424             cachedSerClasses.add(cls);
425             cachedSerFactories.add(beansf);
426             cachedDeserFactories.add(beandf);
427
428             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSet");
429             cachedSerQNames.add(qName);
430             cls = org.alfresco.example.webservice.types.ResultSet.class;
431             cachedSerClasses.add(cls);
432             cachedSerFactories.add(beansf);
433             cachedDeserFactories.add(beandf);
434
435             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSetMetaData");
436             cachedSerQNames.add(qName);
437             cls = org.alfresco.example.webservice.types.ResultSetMetaData.class;
438             cachedSerClasses.add(cls);
439             cachedSerFactories.add(beansf);
440             cachedDeserFactories.add(beandf);
441
442             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSetRow");
443             cachedSerQNames.add(qName);
444             cls = org.alfresco.example.webservice.types.ResultSetRow.class;
445             cachedSerClasses.add(cls);
446             cachedSerFactories.add(beansf);
447             cachedDeserFactories.add(beandf);
448
449             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition");
450             cachedSerQNames.add(qName);
451             cls = org.alfresco.example.webservice.types.RoleDefinition.class;
452             cachedSerClasses.add(cls);
453             cachedSerFactories.add(beansf);
454             cachedDeserFactories.add(beandf);
455
456             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Store");
457             cachedSerQNames.add(qName);
458             cls = org.alfresco.example.webservice.types.Store.class;
459             cachedSerClasses.add(cls);
460             cachedSerFactories.add(beansf);
461             cachedDeserFactories.add(beandf);
462
463             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "StoreEnum");
464             cachedSerQNames.add(qName);
465             cls = org.alfresco.example.webservice.types.StoreEnum.class;
466             cachedSerClasses.add(cls);
467             cachedSerFactories.add(enumsf);
468             cachedDeserFactories.add(enumdf);
469
470             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "UUID");
471             cachedSerQNames.add(qName);
472             cls = java.lang.String JavaDoc.class;
473             cachedSerClasses.add(cls);
474             cachedSerFactories.add(simplesf);
475             cachedDeserFactories.add(simpledf);
476
477             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ValueDefinition");
478             cachedSerQNames.add(qName);
479             cls = org.alfresco.example.webservice.types.ValueDefinition.class;
480             cachedSerClasses.add(cls);
481             cachedSerFactories.add(beansf);
482             cachedDeserFactories.add(beandf);
483
484             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Version");
485             cachedSerQNames.add(qName);
486             cls = org.alfresco.example.webservice.types.Version.class;
487             cachedSerClasses.add(cls);
488             cachedSerFactories.add(beansf);
489             cachedDeserFactories.add(beandf);
490
491             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "VersionHistory");
492             cachedSerQNames.add(qName);
493             cls = org.alfresco.example.webservice.types.VersionHistory.class;
494             cachedSerClasses.add(cls);
495             cachedSerFactories.add(beansf);
496             cachedDeserFactories.add(beandf);
497
498             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "AuthoringFault");
499             cachedSerQNames.add(qName);
500             cls = org.alfresco.example.webservice.authoring.AuthoringFault.class;
501             cachedSerClasses.add(cls);
502             cachedSerFactories.add(beansf);
503             cachedDeserFactories.add(beandf);
504
505             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "CancelCheckoutResult");
506             cachedSerQNames.add(qName);
507             cls = org.alfresco.example.webservice.authoring.CancelCheckoutResult.class;
508             cachedSerClasses.add(cls);
509             cachedSerFactories.add(beansf);
510             cachedDeserFactories.add(beandf);
511
512             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "CheckinResult");
513             cachedSerQNames.add(qName);
514             cls = org.alfresco.example.webservice.authoring.CheckinResult.class;
515             cachedSerClasses.add(cls);
516             cachedSerFactories.add(beansf);
517             cachedDeserFactories.add(beandf);
518
519             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "CheckoutResult");
520             cachedSerQNames.add(qName);
521             cls = org.alfresco.example.webservice.authoring.CheckoutResult.class;
522             cachedSerClasses.add(cls);
523             cachedSerFactories.add(beansf);
524             cachedDeserFactories.add(beandf);
525
526             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "LockStatus");
527             cachedSerQNames.add(qName);
528             cls = org.alfresco.example.webservice.authoring.LockStatus.class;
529             cachedSerClasses.add(cls);
530             cachedSerFactories.add(beansf);
531             cachedDeserFactories.add(beandf);
532
533             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "LockTypeEnum");
534             cachedSerQNames.add(qName);
535             cls = org.alfresco.example.webservice.authoring.LockTypeEnum.class;
536             cachedSerClasses.add(cls);
537             cachedSerFactories.add(enumsf);
538             cachedDeserFactories.add(enumdf);
539
540             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "VersionResult");
541             cachedSerQNames.add(qName);
542             cls = org.alfresco.example.webservice.authoring.VersionResult.class;
543             cachedSerClasses.add(cls);
544             cachedSerFactories.add(beansf);
545             cachedDeserFactories.add(beandf);
546
547     }
548
549     protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException JavaDoc {
550         try {
551             org.apache.axis.client.Call _call = super._createCall();
552             if (super.maintainSessionSet) {
553                 _call.setMaintainSession(super.maintainSession);
554             }
555             if (super.cachedUsername != null) {
556                 _call.setUsername(super.cachedUsername);
557             }
558             if (super.cachedPassword != null) {
559                 _call.setPassword(super.cachedPassword);
560             }
561             if (super.cachedEndpoint != null) {
562                 _call.setTargetEndpointAddress(super.cachedEndpoint);
563             }
564             if (super.cachedTimeout != null) {
565                 _call.setTimeout(super.cachedTimeout);
566             }
567             if (super.cachedPortName != null) {
568                 _call.setPortName(super.cachedPortName);
569             }
570             java.util.Enumeration JavaDoc keys = super.cachedProperties.keys();
571             while (keys.hasMoreElements()) {
572                 java.lang.String JavaDoc key = (java.lang.String JavaDoc) keys.nextElement();
573                 _call.setProperty(key, super.cachedProperties.get(key));
574             }
575             // All the type mapping information is registered
576
// when the first call is made.
577
// The type mapping information is actually registered in
578
// the TypeMappingRegistry of the service, which
579
// is the reason why registration is only needed for the first call.
580
synchronized (this) {
581                 if (firstCall()) {
582                     // must set encoding style before registering serializers
583
_call.setEncodingStyle(null);
584                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
585                         java.lang.Class JavaDoc cls = (java.lang.Class JavaDoc) cachedSerClasses.get(i);
586                         javax.xml.namespace.QName JavaDoc qName =
587                                 (javax.xml.namespace.QName JavaDoc) cachedSerQNames.get(i);
588                         java.lang.Object JavaDoc x = cachedSerFactories.get(i);
589                         if (x instanceof Class JavaDoc) {
590                             java.lang.Class JavaDoc sf = (java.lang.Class JavaDoc)
591                                  cachedSerFactories.get(i);
592                             java.lang.Class JavaDoc df = (java.lang.Class JavaDoc)
593                                  cachedDeserFactories.get(i);
594                             _call.registerTypeMapping(cls, qName, sf, df, false);
595                         }
596                         else if (x instanceof javax.xml.rpc.encoding.SerializerFactory JavaDoc) {
597                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
598                                  cachedSerFactories.get(i);
599                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
600                                  cachedDeserFactories.get(i);
601                             _call.registerTypeMapping(cls, qName, sf, df, false);
602                         }
603                     }
604                 }
605             }
606             return _call;
607         }
608         catch (java.lang.Throwable JavaDoc _t) {
609             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
610         }
611     }
612
613
614     /**
615      * Checkout a content resource for editing.
616      */

617     public org.alfresco.example.webservice.authoring.CheckoutResult checkout(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.ParentReference destination) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
618         if (super.cachedEndpoint == null) {
619             throw new org.apache.axis.NoEndPointException();
620         }
621         org.apache.axis.client.Call _call = createCall();
622         _call.setOperation(_operations[0]);
623         _call.setUseSOAPAction(true);
624         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/checkout");
625         _call.setEncodingStyle(null);
626         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
627         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
628         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
629         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "checkout"));
630
631         setRequestHeaders(_call);
632         setAttachments(_call);
633  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items, destination});
634
635         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
636             throw (java.rmi.RemoteException JavaDoc)_resp;
637         }
638         else {
639             extractAttachments(_call);
640             try {
641                 return (org.alfresco.example.webservice.authoring.CheckoutResult) _resp;
642             } catch (java.lang.Exception JavaDoc _exception) {
643                 return (org.alfresco.example.webservice.authoring.CheckoutResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.CheckoutResult.class);
644             }
645         }
646   } catch (org.apache.axis.AxisFault axisFaultException) {
647     if (axisFaultException.detail != null) {
648         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
649               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
650          }
651         if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
652               throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
653          }
654    }
655   throw axisFaultException;
656 }
657     }
658
659
660     /**
661      * Checkin a content resource.
662      */

663     public org.alfresco.example.webservice.authoring.CheckinResult checkin(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.NamedValue[] comments, boolean keepCheckedOut) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
664         if (super.cachedEndpoint == null) {
665             throw new org.apache.axis.NoEndPointException();
666         }
667         org.apache.axis.client.Call _call = createCall();
668         _call.setOperation(_operations[1]);
669         _call.setUseSOAPAction(true);
670         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/checkin");
671         _call.setEncodingStyle(null);
672         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
673         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
674         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
675         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "checkin"));
676
677         setRequestHeaders(_call);
678         setAttachments(_call);
679  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items, comments, new java.lang.Boolean JavaDoc(keepCheckedOut)});
680
681         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
682             throw (java.rmi.RemoteException JavaDoc)_resp;
683         }
684         else {
685             extractAttachments(_call);
686             try {
687                 return (org.alfresco.example.webservice.authoring.CheckinResult) _resp;
688             } catch (java.lang.Exception JavaDoc _exception) {
689                 return (org.alfresco.example.webservice.authoring.CheckinResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.CheckinResult.class);
690             }
691         }
692   } catch (org.apache.axis.AxisFault axisFaultException) {
693     if (axisFaultException.detail != null) {
694         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
695               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
696          }
697         if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
698               throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
699          }
700    }
701   throw axisFaultException;
702 }
703     }
704
705
706     /**
707      * Checkin an external content resource thus replacing the existing
708      * working content.
709      */

710     public org.alfresco.example.webservice.types.Reference checkinExternal(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.NamedValue[] comments, boolean keepCheckedOut, org.alfresco.example.webservice.types.ContentFormat format, byte[] content) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
711         if (super.cachedEndpoint == null) {
712             throw new org.apache.axis.NoEndPointException();
713         }
714         org.apache.axis.client.Call _call = createCall();
715         _call.setOperation(_operations[2]);
716         _call.setUseSOAPAction(true);
717         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/checkinExternal");
718         _call.setEncodingStyle(null);
719         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
720         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
721         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
722         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "checkinExternal"));
723
724         setRequestHeaders(_call);
725         setAttachments(_call);
726  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items, comments, new java.lang.Boolean JavaDoc(keepCheckedOut), format, content});
727
728         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
729             throw (java.rmi.RemoteException JavaDoc)_resp;
730         }
731         else {
732             extractAttachments(_call);
733             try {
734                 return (org.alfresco.example.webservice.types.Reference) _resp;
735             } catch (java.lang.Exception JavaDoc _exception) {
736                 return (org.alfresco.example.webservice.types.Reference) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Reference.class);
737             }
738         }
739   } catch (org.apache.axis.AxisFault axisFaultException) {
740     if (axisFaultException.detail != null) {
741         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
742               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
743          }
744         if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
745               throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
746          }
747    }
748   throw axisFaultException;
749 }
750     }
751
752
753     /**
754      * Cancels the checkout.
755      */

756     public org.alfresco.example.webservice.authoring.CancelCheckoutResult cancelCheckout(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
757         if (super.cachedEndpoint == null) {
758             throw new org.apache.axis.NoEndPointException();
759         }
760         org.apache.axis.client.Call _call = createCall();
761         _call.setOperation(_operations[3]);
762         _call.setUseSOAPAction(true);
763         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/cancelCheckout");
764         _call.setEncodingStyle(null);
765         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
766         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
767         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
768         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "cancelCheckout"));
769
770         setRequestHeaders(_call);
771         setAttachments(_call);
772  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items});
773
774         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
775             throw (java.rmi.RemoteException JavaDoc)_resp;
776         }
777         else {
778             extractAttachments(_call);
779             try {
780                 return (org.alfresco.example.webservice.authoring.CancelCheckoutResult) _resp;
781             } catch (java.lang.Exception JavaDoc _exception) {
782                 return (org.alfresco.example.webservice.authoring.CancelCheckoutResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.CancelCheckoutResult.class);
783             }
784         }
785   } catch (org.apache.axis.AxisFault axisFaultException) {
786     if (axisFaultException.detail != null) {
787         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
788               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
789          }
790         if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
791               throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
792          }
793    }
794   throw axisFaultException;
795 }
796     }
797
798
799     /**
800      * Locks a content resource.
801      */

802     public org.alfresco.example.webservice.types.Reference[] lock(org.alfresco.example.webservice.types.Predicate items, boolean lockChildren, org.alfresco.example.webservice.authoring.LockTypeEnum lockType) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
803         if (super.cachedEndpoint == null) {
804             throw new org.apache.axis.NoEndPointException();
805         }
806         org.apache.axis.client.Call _call = createCall();
807         _call.setOperation(_operations[4]);
808         _call.setUseSOAPAction(true);
809         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/lock");
810         _call.setEncodingStyle(null);
811         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
812         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
813         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
814         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "lock"));
815
816         setRequestHeaders(_call);
817         setAttachments(_call);
818  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items, new java.lang.Boolean JavaDoc(lockChildren), lockType});
819
820         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
821             throw (java.rmi.RemoteException JavaDoc)_resp;
822         }
823         else {
824             extractAttachments(_call);
825             try {
826                 return (org.alfresco.example.webservice.types.Reference[]) _resp;
827             } catch (java.lang.Exception JavaDoc _exception) {
828                 return (org.alfresco.example.webservice.types.Reference[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Reference[].class);
829             }
830         }
831   } catch (org.apache.axis.AxisFault axisFaultException) {
832     if (axisFaultException.detail != null) {
833         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
834               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
835          }
836         if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
837               throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
838          }
839    }
840   throw axisFaultException;
841 }
842     }
843
844
845     /**
846      * Unlocks a content resource.
847      */

848     public org.alfresco.example.webservice.types.Reference[] unlock(org.alfresco.example.webservice.types.Predicate items, boolean unlockChildren) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
849         if (super.cachedEndpoint == null) {
850             throw new org.apache.axis.NoEndPointException();
851         }
852         org.apache.axis.client.Call _call = createCall();
853         _call.setOperation(_operations[5]);
854         _call.setUseSOAPAction(true);
855         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/unlock");
856         _call.setEncodingStyle(null);
857         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
858         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
859         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
860         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "unlock"));
861
862         setRequestHeaders(_call);
863         setAttachments(_call);
864  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items, new java.lang.Boolean JavaDoc(unlockChildren)});
865
866         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
867             throw (java.rmi.RemoteException JavaDoc)_resp;
868         }
869         else {
870             extractAttachments(_call);
871             try {
872                 return (org.alfresco.example.webservice.types.Reference[]) _resp;
873             } catch (java.lang.Exception JavaDoc _exception) {
874                 return (org.alfresco.example.webservice.types.Reference[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Reference[].class);
875             }
876         }
877   } catch (org.apache.axis.AxisFault axisFaultException) {
878     if (axisFaultException.detail != null) {
879         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
880               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
881          }
882         if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
883               throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
884          }
885    }
886   throw axisFaultException;
887 }
888     }
889
890
891     /**
892      * Gets the lock status of the specified nodes.
893      */

894     public org.alfresco.example.webservice.authoring.LockStatus[] getLockStatus(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
895         if (super.cachedEndpoint == null) {
896             throw new org.apache.axis.NoEndPointException();
897         }
898         org.apache.axis.client.Call _call = createCall();
899         _call.setOperation(_operations[6]);
900         _call.setUseSOAPAction(true);
901         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/getLockStatus");
902         _call.setEncodingStyle(null);
903         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
904         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
905         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
906         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "getLockStatus"));
907
908         setRequestHeaders(_call);
909         setAttachments(_call);
910  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items});
911
912         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
913             throw (java.rmi.RemoteException JavaDoc)_resp;
914         }
915         else {
916             extractAttachments(_call);
917             try {
918                 return (org.alfresco.example.webservice.authoring.LockStatus[]) _resp;
919             } catch (java.lang.Exception JavaDoc _exception) {
920                 return (org.alfresco.example.webservice.authoring.LockStatus[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.LockStatus[].class);
921             }
922         }
923   } catch (org.apache.axis.AxisFault axisFaultException) {
924     if (axisFaultException.detail != null) {
925         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
926               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
927          }
928         if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
929               throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
930          }
931    }
932   throw axisFaultException;
933 }
934     }
935
936
937     /**
938      * Create a snapshot of the specified node(s) in the version store.
939      */

940     public org.alfresco.example.webservice.authoring.VersionResult createVersion(org.alfresco.example.webservice.types.Predicate items, org.alfresco.example.webservice.types.NamedValue[] comments, boolean versionChildren) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
941         if (super.cachedEndpoint == null) {
942             throw new org.apache.axis.NoEndPointException();
943         }
944         org.apache.axis.client.Call _call = createCall();
945         _call.setOperation(_operations[7]);
946         _call.setUseSOAPAction(true);
947         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/createVersion");
948         _call.setEncodingStyle(null);
949         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
950         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
951         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
952         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "createVersion"));
953
954         setRequestHeaders(_call);
955         setAttachments(_call);
956  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items, comments, new java.lang.Boolean JavaDoc(versionChildren)});
957
958         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
959             throw (java.rmi.RemoteException JavaDoc)_resp;
960         }
961         else {
962             extractAttachments(_call);
963             try {
964                 return (org.alfresco.example.webservice.authoring.VersionResult) _resp;
965             } catch (java.lang.Exception JavaDoc _exception) {
966                 return (org.alfresco.example.webservice.authoring.VersionResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authoring.VersionResult.class);
967             }
968         }
969   } catch (org.apache.axis.AxisFault axisFaultException) {
970     if (axisFaultException.detail != null) {
971         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
972               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
973          }
974         if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
975               throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
976          }
977    }
978   throw axisFaultException;
979 }
980     }
981
982
983     /**
984      * Gets the version history for the specfied node.
985      */

986     public org.alfresco.example.webservice.types.VersionHistory getVersionHistory(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
987         if (super.cachedEndpoint == null) {
988             throw new org.apache.axis.NoEndPointException();
989         }
990         org.apache.axis.client.Call _call = createCall();
991         _call.setOperation(_operations[8]);
992         _call.setUseSOAPAction(true);
993         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/getVersionHistory");
994         _call.setEncodingStyle(null);
995         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
996         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
997         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
998         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "getVersionHistory"));
999
1000        setRequestHeaders(_call);
1001        setAttachments(_call);
1002 try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {node});
1003
1004        if (_resp instanceof java.rmi.RemoteException JavaDoc) {
1005            throw (java.rmi.RemoteException JavaDoc)_resp;
1006        }
1007        else {
1008            extractAttachments(_call);
1009            try {
1010                return (org.alfresco.example.webservice.types.VersionHistory) _resp;
1011            } catch (java.lang.Exception JavaDoc _exception) {
1012                return (org.alfresco.example.webservice.types.VersionHistory) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.VersionHistory.class);
1013            }
1014        }
1015  } catch (org.apache.axis.AxisFault axisFaultException) {
1016    if (axisFaultException.detail != null) {
1017        if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
1018              throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
1019         }
1020        if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
1021              throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
1022         }
1023   }
1024  throw axisFaultException;
1025}
1026    }
1027
1028
1029    /**
1030     * Revert a node to the snapshot of the specified version.
1031     */

1032    public void revertVersion(org.alfresco.example.webservice.types.Reference node, java.lang.String JavaDoc versionLabel) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
1033        if (super.cachedEndpoint == null) {
1034            throw new org.apache.axis.NoEndPointException();
1035        }
1036        org.apache.axis.client.Call _call = createCall();
1037        _call.setOperation(_operations[9]);
1038        _call.setUseSOAPAction(true);
1039        _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/revertVersion");
1040        _call.setEncodingStyle(null);
1041        _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
1042        _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
1043        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
1044        _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "revertVersion"));
1045
1046        setRequestHeaders(_call);
1047        setAttachments(_call);
1048 try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {node, versionLabel});
1049
1050        if (_resp instanceof java.rmi.RemoteException JavaDoc) {
1051            throw (java.rmi.RemoteException JavaDoc)_resp;
1052        }
1053        extractAttachments(_call);
1054  } catch (org.apache.axis.AxisFault axisFaultException) {
1055    if (axisFaultException.detail != null) {
1056        if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
1057              throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
1058         }
1059        if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
1060              throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
1061         }
1062   }
1063  throw axisFaultException;
1064}
1065    }
1066
1067
1068    /**
1069     * Delete all snapshot versions of the specified node.
1070     */

1071    public org.alfresco.example.webservice.types.VersionHistory deleteAllVersions(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.authoring.AuthoringFault {
1072        if (super.cachedEndpoint == null) {
1073            throw new org.apache.axis.NoEndPointException();
1074        }
1075        org.apache.axis.client.Call _call = createCall();
1076        _call.setOperation(_operations[10]);
1077        _call.setUseSOAPAction(true);
1078        _call.setSOAPActionURI("http://www.alfresco.org/ws/service/authoring/1.0/deleteAllVersions");
1079        _call.setEncodingStyle(null);
1080        _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
1081        _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
1082        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
1083        _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "deleteAllVersions"));
1084
1085        setRequestHeaders(_call);
1086        setAttachments(_call);
1087 try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {node});
1088
1089        if (_resp instanceof java.rmi.RemoteException JavaDoc) {
1090            throw (java.rmi.RemoteException JavaDoc)_resp;
1091        }
1092        else {
1093            extractAttachments(_call);
1094            try {
1095                return (org.alfresco.example.webservice.types.VersionHistory) _resp;
1096            } catch (java.lang.Exception JavaDoc _exception) {
1097                return (org.alfresco.example.webservice.types.VersionHistory) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.VersionHistory.class);
1098            }
1099        }
1100  } catch (org.apache.axis.AxisFault axisFaultException) {
1101    if (axisFaultException.detail != null) {
1102        if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
1103              throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
1104         }
1105        if (axisFaultException.detail instanceof org.alfresco.example.webservice.authoring.AuthoringFault) {
1106              throw (org.alfresco.example.webservice.authoring.AuthoringFault) axisFaultException.detail;
1107         }
1108   }
1109  throw axisFaultException;
1110}
1111    }
1112
1113}
1114
Popular Tags