1
2
3
4
5
6
7
8 package org.ogf.srm22;
9
10 public class SrmSetPermissionRequest implements java.io.Serializable {
11 private java.lang.String authorizationID;
12
13 private org.apache.axis.types.URI SURL;
14
15 private org.ogf.srm22.TPermissionType permissionType;
16
17 private org.ogf.srm22.TPermissionMode ownerPermission;
18
19 private org.ogf.srm22.ArrayOfTUserPermission arrayOfUserPermissions;
20
21 private org.ogf.srm22.ArrayOfTGroupPermission arrayOfGroupPermissions;
22
23 private org.ogf.srm22.TPermissionMode otherPermission;
24
25 private org.ogf.srm22.ArrayOfTExtraInfo storageSystemInfo;
26
27 public SrmSetPermissionRequest() {
28 }
29
30 public SrmSetPermissionRequest(
31 java.lang.String authorizationID,
32 org.apache.axis.types.URI SURL,
33 org.ogf.srm22.TPermissionType permissionType,
34 org.ogf.srm22.TPermissionMode ownerPermission,
35 org.ogf.srm22.ArrayOfTUserPermission arrayOfUserPermissions,
36 org.ogf.srm22.ArrayOfTGroupPermission arrayOfGroupPermissions,
37 org.ogf.srm22.TPermissionMode otherPermission,
38 org.ogf.srm22.ArrayOfTExtraInfo storageSystemInfo) {
39 this.authorizationID = authorizationID;
40 this.SURL = SURL;
41 this.permissionType = permissionType;
42 this.ownerPermission = ownerPermission;
43 this.arrayOfUserPermissions = arrayOfUserPermissions;
44 this.arrayOfGroupPermissions = arrayOfGroupPermissions;
45 this.otherPermission = otherPermission;
46 this.storageSystemInfo = storageSystemInfo;
47 }
48
49
50
51
52
53
54
55 public java.lang.String getAuthorizationID() {
56 return authorizationID;
57 }
58
59
60
61
62
63
64
65 public void setAuthorizationID(java.lang.String authorizationID) {
66 this.authorizationID = authorizationID;
67 }
68
69
70
71
72
73
74
75 public org.apache.axis.types.URI getSURL() {
76 return SURL;
77 }
78
79
80
81
82
83
84
85 public void setSURL(org.apache.axis.types.URI SURL) {
86 this.SURL = SURL;
87 }
88
89
90
91
92
93
94
95 public org.ogf.srm22.TPermissionType getPermissionType() {
96 return permissionType;
97 }
98
99
100
101
102
103
104
105 public void setPermissionType(org.ogf.srm22.TPermissionType permissionType) {
106 this.permissionType = permissionType;
107 }
108
109
110
111
112
113
114
115 public org.ogf.srm22.TPermissionMode getOwnerPermission() {
116 return ownerPermission;
117 }
118
119
120
121
122
123
124
125 public void setOwnerPermission(org.ogf.srm22.TPermissionMode ownerPermission) {
126 this.ownerPermission = ownerPermission;
127 }
128
129
130
131
132
133
134
135 public org.ogf.srm22.ArrayOfTUserPermission getArrayOfUserPermissions() {
136 return arrayOfUserPermissions;
137 }
138
139
140
141
142
143
144
145 public void setArrayOfUserPermissions(org.ogf.srm22.ArrayOfTUserPermission arrayOfUserPermissions) {
146 this.arrayOfUserPermissions = arrayOfUserPermissions;
147 }
148
149
150
151
152
153
154
155 public org.ogf.srm22.ArrayOfTGroupPermission getArrayOfGroupPermissions() {
156 return arrayOfGroupPermissions;
157 }
158
159
160
161
162
163
164
165 public void setArrayOfGroupPermissions(org.ogf.srm22.ArrayOfTGroupPermission arrayOfGroupPermissions) {
166 this.arrayOfGroupPermissions = arrayOfGroupPermissions;
167 }
168
169
170
171
172
173
174
175 public org.ogf.srm22.TPermissionMode getOtherPermission() {
176 return otherPermission;
177 }
178
179
180
181
182
183
184
185 public void setOtherPermission(org.ogf.srm22.TPermissionMode otherPermission) {
186 this.otherPermission = otherPermission;
187 }
188
189
190
191
192
193
194
195 public org.ogf.srm22.ArrayOfTExtraInfo getStorageSystemInfo() {
196 return storageSystemInfo;
197 }
198
199
200
201
202
203
204
205 public void setStorageSystemInfo(org.ogf.srm22.ArrayOfTExtraInfo storageSystemInfo) {
206 this.storageSystemInfo = storageSystemInfo;
207 }
208
209 private java.lang.Object __equalsCalc = null;
210 public synchronized boolean equals(java.lang.Object obj) {
211 if (!(obj instanceof SrmSetPermissionRequest)) return false;
212 SrmSetPermissionRequest other = (SrmSetPermissionRequest) obj;
213 if (obj == null) return false;
214 if (this == obj) return true;
215 if (__equalsCalc != null) {
216 return (__equalsCalc == obj);
217 }
218 __equalsCalc = obj;
219 boolean _equals;
220 _equals = true &&
221 ((this.authorizationID==null && other.getAuthorizationID()==null) ||
222 (this.authorizationID!=null &&
223 this.authorizationID.equals(other.getAuthorizationID()))) &&
224 ((this.SURL==null && other.getSURL()==null) ||
225 (this.SURL!=null &&
226 this.SURL.equals(other.getSURL()))) &&
227 ((this.permissionType==null && other.getPermissionType()==null) ||
228 (this.permissionType!=null &&
229 this.permissionType.equals(other.getPermissionType()))) &&
230 ((this.ownerPermission==null && other.getOwnerPermission()==null) ||
231 (this.ownerPermission!=null &&
232 this.ownerPermission.equals(other.getOwnerPermission()))) &&
233 ((this.arrayOfUserPermissions==null && other.getArrayOfUserPermissions()==null) ||
234 (this.arrayOfUserPermissions!=null &&
235 this.arrayOfUserPermissions.equals(other.getArrayOfUserPermissions()))) &&
236 ((this.arrayOfGroupPermissions==null && other.getArrayOfGroupPermissions()==null) ||
237 (this.arrayOfGroupPermissions!=null &&
238 this.arrayOfGroupPermissions.equals(other.getArrayOfGroupPermissions()))) &&
239 ((this.otherPermission==null && other.getOtherPermission()==null) ||
240 (this.otherPermission!=null &&
241 this.otherPermission.equals(other.getOtherPermission()))) &&
242 ((this.storageSystemInfo==null && other.getStorageSystemInfo()==null) ||
243 (this.storageSystemInfo!=null &&
244 this.storageSystemInfo.equals(other.getStorageSystemInfo())));
245 __equalsCalc = null;
246 return _equals;
247 }
248
249 private boolean __hashCodeCalc = false;
250 public synchronized int hashCode() {
251 if (__hashCodeCalc) {
252 return 0;
253 }
254 __hashCodeCalc = true;
255 int _hashCode = 1;
256 if (getAuthorizationID() != null) {
257 _hashCode += getAuthorizationID().hashCode();
258 }
259 if (getSURL() != null) {
260 _hashCode += getSURL().hashCode();
261 }
262 if (getPermissionType() != null) {
263 _hashCode += getPermissionType().hashCode();
264 }
265 if (getOwnerPermission() != null) {
266 _hashCode += getOwnerPermission().hashCode();
267 }
268 if (getArrayOfUserPermissions() != null) {
269 _hashCode += getArrayOfUserPermissions().hashCode();
270 }
271 if (getArrayOfGroupPermissions() != null) {
272 _hashCode += getArrayOfGroupPermissions().hashCode();
273 }
274 if (getOtherPermission() != null) {
275 _hashCode += getOtherPermission().hashCode();
276 }
277 if (getStorageSystemInfo() != null) {
278 _hashCode += getStorageSystemInfo().hashCode();
279 }
280 __hashCodeCalc = false;
281 return _hashCode;
282 }
283
284
285 private static org.apache.axis.description.TypeDesc typeDesc =
286 new org.apache.axis.description.TypeDesc(SrmSetPermissionRequest.class, true);
287
288 static {
289 typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "srmSetPermissionRequest"));
290 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
291 elemField.setFieldName("authorizationID");
292 elemField.setXmlName(new javax.xml.namespace.QName("", "authorizationID"));
293 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
294 elemField.setMinOccurs(0);
295 elemField.setNillable(true);
296 typeDesc.addFieldDesc(elemField);
297 elemField = new org.apache.axis.description.ElementDesc();
298 elemField.setFieldName("SURL");
299 elemField.setXmlName(new javax.xml.namespace.QName("", "SURL"));
300 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyURI"));
301 elemField.setNillable(false);
302 typeDesc.addFieldDesc(elemField);
303 elemField = new org.apache.axis.description.ElementDesc();
304 elemField.setFieldName("permissionType");
305 elemField.setXmlName(new javax.xml.namespace.QName("", "permissionType"));
306 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TPermissionType"));
307 elemField.setNillable(false);
308 typeDesc.addFieldDesc(elemField);
309 elemField = new org.apache.axis.description.ElementDesc();
310 elemField.setFieldName("ownerPermission");
311 elemField.setXmlName(new javax.xml.namespace.QName("", "ownerPermission"));
312 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TPermissionMode"));
313 elemField.setMinOccurs(0);
314 elemField.setNillable(true);
315 typeDesc.addFieldDesc(elemField);
316 elemField = new org.apache.axis.description.ElementDesc();
317 elemField.setFieldName("arrayOfUserPermissions");
318 elemField.setXmlName(new javax.xml.namespace.QName("", "arrayOfUserPermissions"));
319 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "ArrayOfTUserPermission"));
320 elemField.setMinOccurs(0);
321 elemField.setNillable(true);
322 typeDesc.addFieldDesc(elemField);
323 elemField = new org.apache.axis.description.ElementDesc();
324 elemField.setFieldName("arrayOfGroupPermissions");
325 elemField.setXmlName(new javax.xml.namespace.QName("", "arrayOfGroupPermissions"));
326 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "ArrayOfTGroupPermission"));
327 elemField.setMinOccurs(0);
328 elemField.setNillable(true);
329 typeDesc.addFieldDesc(elemField);
330 elemField = new org.apache.axis.description.ElementDesc();
331 elemField.setFieldName("otherPermission");
332 elemField.setXmlName(new javax.xml.namespace.QName("", "otherPermission"));
333 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TPermissionMode"));
334 elemField.setMinOccurs(0);
335 elemField.setNillable(true);
336 typeDesc.addFieldDesc(elemField);
337 elemField = new org.apache.axis.description.ElementDesc();
338 elemField.setFieldName("storageSystemInfo");
339 elemField.setXmlName(new javax.xml.namespace.QName("", "storageSystemInfo"));
340 elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "ArrayOfTExtraInfo"));
341 elemField.setMinOccurs(0);
342 elemField.setNillable(true);
343 typeDesc.addFieldDesc(elemField);
344 }
345
346
347
348
349 public static org.apache.axis.description.TypeDesc getTypeDesc() {
350 return typeDesc;
351 }
352
353
354
355
356 public static org.apache.axis.encoding.Serializer getSerializer(
357 java.lang.String mechType,
358 java.lang.Class _javaType,
359 javax.xml.namespace.QName _xmlType) {
360 return
361 new org.apache.axis.encoding.ser.BeanSerializer(
362 _javaType, _xmlType, typeDesc);
363 }
364
365
366
367
368 public static org.apache.axis.encoding.Deserializer getDeserializer(
369 java.lang.String mechType,
370 java.lang.Class _javaType,
371 javax.xml.namespace.QName _xmlType) {
372 return
373 new org.apache.axis.encoding.ser.BeanDeserializer(
374 _javaType, _xmlType, typeDesc);
375 }
376
377 }