1
2
3
4
5
6
7
8 package org.ogf.srm22;
9
10 public class SrmPrepareToPutRequest implements java.io.Serializable {
11 private java.lang.String authorizationID;
12
13 private org.ogf.srm22.ArrayOfTPutFileRequest arrayOfFileRequests;
14
15 private java.lang.String userRequestDescription;
16
17 private org.ogf.srm22.TOverwriteMode overwriteOption;
18
19 private org.ogf.srm22.ArrayOfTExtraInfo storageSystemInfo;
20
21 private java.lang.Integer desiredTotalRequestTime;
22
23 private java.lang.Integer desiredPinLifeTime;
24
25 private java.lang.Integer desiredFileLifeTime;
26
27 private org.ogf.srm22.TFileStorageType desiredFileStorageType;
28
29 private java.lang.String targetSpaceToken;
30
31 private org.ogf.srm22.TRetentionPolicyInfo targetFileRetentionPolicyInfo;
32
33 private org.ogf.srm22.TTransferParameters transferParameters;
34
35 public SrmPrepareToPutRequest() {
36 }
37
38 public SrmPrepareToPutRequest(
39 java.lang.String authorizationID,
40 org.ogf.srm22.ArrayOfTPutFileRequest arrayOfFileRequests,
41 java.lang.String userRequestDescription,
42 org.ogf.srm22.TOverwriteMode overwriteOption,
43 org.ogf.srm22.ArrayOfTExtraInfo storageSystemInfo,
44 java.lang.Integer desiredTotalRequestTime,
45 java.lang.Integer desiredPinLifeTime,
46 java.lang.Integer desiredFileLifeTime,
47 org.ogf.srm22.TFileStorageType desiredFileStorageType,
48 java.lang.String targetSpaceToken,
49 org.ogf.srm22.TRetentionPolicyInfo targetFileRetentionPolicyInfo,
50 org.ogf.srm22.TTransferParameters transferParameters) {
51 this.authorizationID = authorizationID;
52 this.arrayOfFileRequests = arrayOfFileRequests;
53 this.userRequestDescription = userRequestDescription;
54 this.overwriteOption = overwriteOption;
55 this.storageSystemInfo = storageSystemInfo;
56 this.desiredTotalRequestTime = desiredTotalRequestTime;
57 this.desiredPinLifeTime = desiredPinLifeTime;
58 this.desiredFileLifeTime = desiredFileLifeTime;
59 this.desiredFileStorageType = desiredFileStorageType;
60 this.targetSpaceToken = targetSpaceToken;
61 this.targetFileRetentionPolicyInfo = targetFileRetentionPolicyInfo;
62 this.transferParameters = transferParameters;
63 }
64
65
66
67
68
69
70
71 public java.lang.String getAuthorizationID() {
72 return authorizationID;
73 }
74
75
76
77
78
79
80
81 public void setAuthorizationID(java.lang.String authorizationID) {
82 this.authorizationID = authorizationID;
83 }
84
85
86
87
88
89
90
91 public org.ogf.srm22.ArrayOfTPutFileRequest getArrayOfFileRequests() {
92 return arrayOfFileRequests;
93 }
94
95
96
97
98
99
100
101 public void setArrayOfFileRequests(org.ogf.srm22.ArrayOfTPutFileRequest arrayOfFileRequests) {
102 this.arrayOfFileRequests = arrayOfFileRequests;
103 }
104
105
106
107
108
109
110
111 public java.lang.String getUserRequestDescription() {
112 return userRequestDescription;
113 }
114
115
116
117
118
119
120
121 public void setUserRequestDescription(java.lang.String userRequestDescription) {
122 this.userRequestDescription = userRequestDescription;
123 }
124
125
126
127
128
129
130
131 public org.ogf.srm22.TOverwriteMode getOverwriteOption() {
132 return overwriteOption;
133 }
134
135
136
137
138
139
140
141 public void setOverwriteOption(org.ogf.srm22.TOverwriteMode overwriteOption) {
142 this.overwriteOption = overwriteOption;
143 }
144
145
146
147
148
149
150
151 public org.ogf.srm22.ArrayOfTExtraInfo getStorageSystemInfo() {
152 return storageSystemInfo;
153 }
154
155
156
157
158
159
160
161 public void setStorageSystemInfo(org.ogf.srm22.ArrayOfTExtraInfo storageSystemInfo) {
162 this.storageSystemInfo = storageSystemInfo;
163 }
164
165
166
167
168
169
170
171 public java.lang.Integer getDesiredTotalRequestTime() {
172 return desiredTotalRequestTime;
173 }
174
175
176
177
178
179
180
181 public void setDesiredTotalRequestTime(java.lang.Integer desiredTotalRequestTime) {
182 this.desiredTotalRequestTime = desiredTotalRequestTime;
183 }
184
185
186
187
188
189
190
191 public java.lang.Integer getDesiredPinLifeTime() {
192 return desiredPinLifeTime;
193 }
194
195
196
197
198
199
200
201 public void setDesiredPinLifeTime(java.lang.Integer desiredPinLifeTime) {
202 this.desiredPinLifeTime = desiredPinLifeTime;
203 }
204
205
206
207
208
209
210
211 public java.lang.Integer getDesiredFileLifeTime() {
212 return desiredFileLifeTime;
213 }
214
215
216
217
218
219
220
221 public void setDesiredFileLifeTime(java.lang.Integer desiredFileLifeTime) {
222 this.desiredFileLifeTime = desiredFileLifeTime;
223 }
224
225
226
227
228
229
230
231 public org.ogf.srm22.TFileStorageType getDesiredFileStorageType() {
232 return desiredFileStorageType;
233 }
234
235
236
237
238
239
240
241 public void setDesiredFileStorageType(org.ogf.srm22.TFileStorageType desiredFileStorageType) {
242 this.desiredFileStorageType = desiredFileStorageType;
243 }
244
245
246
247
248
249
250
251 public java.lang.String getTargetSpaceToken() {
252 return targetSpaceToken;
253 }
254
255
256
257
258
259
260
261 public void setTargetSpaceToken(java.lang.String targetSpaceToken) {
262 this.targetSpaceToken = targetSpaceToken;
263 }
264
265
266
267
268
269
270
271 public org.ogf.srm22.TRetentionPolicyInfo getTargetFileRetentionPolicyInfo() {
272 return targetFileRetentionPolicyInfo;
273 }
274
275
276
277
278
279
280
281 public void setTargetFileRetentionPolicyInfo(org.ogf.srm22.TRetentionPolicyInfo targetFileRetentionPolicyInfo) {
282 this.targetFileRetentionPolicyInfo = targetFileRetentionPolicyInfo;
283 }
284
285
286
287
288
289
290
291 public org.ogf.srm22.TTransferParameters getTransferParameters() {
292 return transferParameters;
293 }
294
295
296
297
298
299
300
301 public void setTransferParameters(org.ogf.srm22.TTransferParameters transferParameters) {
302 this.transferParameters = transferParameters;
303 }
304
305 private java.lang.Object __equalsCalc = null;
306 public synchronized boolean equals(java.lang.Object obj) {
307 if (!(obj instanceof SrmPrepareToPutRequest)) return false;
308 SrmPrepareToPutRequest other = (SrmPrepareToPutRequest) obj;
309 if (obj == null) return false;
310 if (this == obj) return true;
311 if (__equalsCalc != null) {
312 return (__equalsCalc == obj);
313 }
314 __equalsCalc = obj;
315 boolean _equals;
316 _equals = true &&
317 ((this.authorizationID==null && other.getAuthorizationID()==null) ||
318 (this.authorizationID!=null &&
319 this.authorizationID.equals(other.getAuthorizationID()))) &&
320 ((this.arrayOfFileRequests==null && other.getArrayOfFileRequests()==null) ||
321 (this.arrayOfFileRequests!=null &&
322 this.arrayOfFileRequests.equals(other.getArrayOfFileRequests()))) &&
323 ((this.userRequestDescription==null && other.getUserRequestDescription()==null) ||
324 (this.userRequestDescription!=null &&
325 this.userRequestDescription.equals(other.getUserRequestDescription()))) &&
326 ((this.overwriteOption==null && other.getOverwriteOption()==null) ||
327 (this.overwriteOption!=null &&
328 this.overwriteOption.equals(other.getOverwriteOption()))) &&
329 ((this.storageSystemInfo==null && other.getStorageSystemInfo()==null) ||
330 (this.storageSystemInfo!=null &&
331 this.storageSystemInfo.equals(other.getStorageSystemInfo()))) &&
332 ((this.desiredTotalRequestTime==null && other.getDesiredTotalRequestTime()==null) ||
333 (this.desiredTotalRequestTime!=null &&
334 this.desiredTotalRequestTime.equals(other.getDesiredTotalRequestTime()))) &&
335 ((this.desiredPinLifeTime==null && other.getDesiredPinLifeTime()==null) ||
336 (this.desiredPinLifeTime!=null &&
337 this.desiredPinLifeTime.equals(other.getDesiredPinLifeTime()))) &&
338 ((this.desiredFileLifeTime==null && other.getDesiredFileLifeTime()==null) ||
339 (this.desiredFileLifeTime!=null &&
340 this.desiredFileLifeTime.equals(other.getDesiredFileLifeTime()))) &&
341 ((this.desiredFileStorageType==null && other.getDesiredFileStorageType()==null) ||
342 (this.desiredFileStorageType!=null &&
343 this.desiredFileStorageType.equals(other.getDesiredFileStorageType()))) &&
344 ((this.targetSpaceToken==null && other.getTargetSpaceToken()==null) ||
345 (this.targetSpaceToken!=null &&
346 this.targetSpaceToken.equals(other.getTargetSpaceToken()))) &&
347 ((this.targetFileRetentionPolicyInfo==null && other.getTargetFileRetentionPolicyInfo()==null) ||
348 (this.targetFileRetentionPolicyInfo!=null &&
349 this.targetFileRetentionPolicyInfo.equals(other.getTargetFileRetentionPolicyInfo()))) &&
350 ((this.transferParameters==null && other.getTransferParameters()==null) ||
351 (this.transferParameters!=null &&
352 this.transferParameters.equals(other.getTransferParameters())));
353 __equalsCalc = null;
354 return _equals;
355 }
356
357 private boolean __hashCodeCalc = false;
358 public synchronized int hashCode() {
359 if (__hashCodeCalc) {
360 return 0;
361 }
362 __hashCodeCalc = true;
363 int _hashCode = 1;
364 if (getAuthorizationID() != null) {
365 _hashCode += getAuthorizationID().hashCode();
366 }
367 if (getArrayOfFileRequests() != null) {
368 _hashCode += getArrayOfFileRequests().hashCode();
369 }
370 if (getUserRequestDescription() != null) {
371 _hashCode += getUserRequestDescription().hashCode();
372 }
373 if (getOverwriteOption() != null) {
374 _hashCode += getOverwriteOption().hashCode();
375 }
376 if (getStorageSystemInfo() != null) {
377 _hashCode += getStorageSystemInfo().hashCode();
378 }
379 if (getDesiredTotalRequestTime() != null) {
380 _hashCode += getDesiredTotalRequestTime().hashCode();
381 }
382 if (getDesiredPinLifeTime() != null) {
383 _hashCode += getDesiredPinLifeTime().hashCode();
384 }
385 if (getDesiredFileLifeTime() != null) {
386 _hashCode += getDesiredFileLifeTime().hashCode();
387 }
388 if (getDesiredFileStorageType() != null) {
389 _hashCode += getDesiredFileStorageType().hashCode();
390 }
391 if (getTargetSpaceToken() != null) {
392 _hashCode += getTargetSpaceToken().hashCode();
393 }
394 if (getTargetFileRetentionPolicyInfo() != null) {
395 _hashCode += getTargetFileRetentionPolicyInfo().hashCode();
396 }
397 if (getTransferParameters() != null) {
398 _hashCode += getTransferParameters().hashCode();
399 }
400 __hashCodeCalc = false;
401 return _hashCode;
402 }
403
404
405 private static org.apache.axis.description.TypeDesc typeDesc =
406 new org.apache.axis.description.TypeDesc(SrmPrepareToPutRequest.class, true);
407
408 static {
409 typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "srmPrepareToPutRequest"));
410 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
411 elemField.setFieldName("authorizationID");
412 elemField.setXmlName(new javax.xml.namespace.QName("", "authorizationID"));
413 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
414 elemField.setMinOccurs(0);
415 elemField.setNillable(true);
416 typeDesc.addFieldDesc(elemField);
417 elemField = new org.apache.axis.description.ElementDesc();
418 elemField.setFieldName("arrayOfFileRequests");
419 elemField.setXmlName(new javax.xml.namespace.QName("", "arrayOfFileRequests"));
420 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "ArrayOfTPutFileRequest"));
421 elemField.setMinOccurs(0);
422 elemField.setNillable(true);
423 typeDesc.addFieldDesc(elemField);
424 elemField = new org.apache.axis.description.ElementDesc();
425 elemField.setFieldName("userRequestDescription");
426 elemField.setXmlName(new javax.xml.namespace.QName("", "userRequestDescription"));
427 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
428 elemField.setMinOccurs(0);
429 elemField.setNillable(true);
430 typeDesc.addFieldDesc(elemField);
431 elemField = new org.apache.axis.description.ElementDesc();
432 elemField.setFieldName("overwriteOption");
433 elemField.setXmlName(new javax.xml.namespace.QName("", "overwriteOption"));
434 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TOverwriteMode"));
435 elemField.setMinOccurs(0);
436 elemField.setNillable(true);
437 typeDesc.addFieldDesc(elemField);
438 elemField = new org.apache.axis.description.ElementDesc();
439 elemField.setFieldName("storageSystemInfo");
440 elemField.setXmlName(new javax.xml.namespace.QName("", "storageSystemInfo"));
441 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "ArrayOfTExtraInfo"));
442 elemField.setMinOccurs(0);
443 elemField.setNillable(true);
444 typeDesc.addFieldDesc(elemField);
445 elemField = new org.apache.axis.description.ElementDesc();
446 elemField.setFieldName("desiredTotalRequestTime");
447 elemField.setXmlName(new javax.xml.namespace.QName("", "desiredTotalRequestTime"));
448 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
449 elemField.setMinOccurs(0);
450 elemField.setNillable(true);
451 typeDesc.addFieldDesc(elemField);
452 elemField = new org.apache.axis.description.ElementDesc();
453 elemField.setFieldName("desiredPinLifeTime");
454 elemField.setXmlName(new javax.xml.namespace.QName("", "desiredPinLifeTime"));
455 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
456 elemField.setMinOccurs(0);
457 elemField.setNillable(true);
458 typeDesc.addFieldDesc(elemField);
459 elemField = new org.apache.axis.description.ElementDesc();
460 elemField.setFieldName("desiredFileLifeTime");
461 elemField.setXmlName(new javax.xml.namespace.QName("", "desiredFileLifeTime"));
462 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
463 elemField.setMinOccurs(0);
464 elemField.setNillable(true);
465 typeDesc.addFieldDesc(elemField);
466 elemField = new org.apache.axis.description.ElementDesc();
467 elemField.setFieldName("desiredFileStorageType");
468 elemField.setXmlName(new javax.xml.namespace.QName("", "desiredFileStorageType"));
469 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TFileStorageType"));
470 elemField.setMinOccurs(0);
471 elemField.setNillable(true);
472 typeDesc.addFieldDesc(elemField);
473 elemField = new org.apache.axis.description.ElementDesc();
474 elemField.setFieldName("targetSpaceToken");
475 elemField.setXmlName(new javax.xml.namespace.QName("", "targetSpaceToken"));
476 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
477 elemField.setMinOccurs(0);
478 elemField.setNillable(true);
479 typeDesc.addFieldDesc(elemField);
480 elemField = new org.apache.axis.description.ElementDesc();
481 elemField.setFieldName("targetFileRetentionPolicyInfo");
482 elemField.setXmlName(new javax.xml.namespace.QName("", "targetFileRetentionPolicyInfo"));
483 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TRetentionPolicyInfo"));
484 elemField.setMinOccurs(0);
485 elemField.setNillable(true);
486 typeDesc.addFieldDesc(elemField);
487 elemField = new org.apache.axis.description.ElementDesc();
488 elemField.setFieldName("transferParameters");
489 elemField.setXmlName(new javax.xml.namespace.QName("", "transferParameters"));
490 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TTransferParameters"));
491 elemField.setMinOccurs(0);
492 elemField.setNillable(true);
493 typeDesc.addFieldDesc(elemField);
494 }
495
496
497
498
499 public static org.apache.axis.description.TypeDesc getTypeDesc() {
500 return typeDesc;
501 }
502
503
504
505
506 public static org.apache.axis.encoding.Serializer getSerializer(
507 java.lang.String mechType,
508 java.lang.Class _javaType,
509 javax.xml.namespace.QName _xmlType) {
510 return
511 new org.apache.axis.encoding.ser.BeanSerializer(
512 _javaType, _xmlType, typeDesc);
513 }
514
515
516
517
518 public static org.apache.axis.encoding.Deserializer getDeserializer(
519 java.lang.String mechType,
520 java.lang.Class _javaType,
521 javax.xml.namespace.QName _xmlType) {
522 return
523 new org.apache.axis.encoding.ser.BeanDeserializer(
524 _javaType, _xmlType, typeDesc);
525 }
526
527 }