KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > accesscontrol > HasPermissionsResult


1 /**
2  * HasPermissionsResult.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.accesscontrol;
9
10 public class HasPermissionsResult implements java.io.Serializable JavaDoc {
11     private org.alfresco.repo.webservice.types.Reference reference;
12
13     private java.lang.String JavaDoc permission;
14
15     private org.alfresco.repo.webservice.accesscontrol.AccessStatus accessStatus;
16
17     public HasPermissionsResult() {
18     }
19
20     public HasPermissionsResult(
21            org.alfresco.repo.webservice.types.Reference reference,
22            java.lang.String JavaDoc permission,
23            org.alfresco.repo.webservice.accesscontrol.AccessStatus accessStatus) {
24            this.reference = reference;
25            this.permission = permission;
26            this.accessStatus = accessStatus;
27     }
28
29
30     /**
31      * Gets the reference value for this HasPermissionsResult.
32      *
33      * @return reference
34      */

35     public org.alfresco.repo.webservice.types.Reference getReference() {
36         return reference;
37     }
38
39
40     /**
41      * Sets the reference value for this HasPermissionsResult.
42      *
43      * @param reference
44      */

45     public void setReference(org.alfresco.repo.webservice.types.Reference reference) {
46         this.reference = reference;
47     }
48
49
50     /**
51      * Gets the permission value for this HasPermissionsResult.
52      *
53      * @return permission
54      */

55     public java.lang.String JavaDoc getPermission() {
56         return permission;
57     }
58
59
60     /**
61      * Sets the permission value for this HasPermissionsResult.
62      *
63      * @param permission
64      */

65     public void setPermission(java.lang.String JavaDoc permission) {
66         this.permission = permission;
67     }
68
69
70     /**
71      * Gets the accessStatus value for this HasPermissionsResult.
72      *
73      * @return accessStatus
74      */

75     public org.alfresco.repo.webservice.accesscontrol.AccessStatus getAccessStatus() {
76         return accessStatus;
77     }
78
79
80     /**
81      * Sets the accessStatus value for this HasPermissionsResult.
82      *
83      * @param accessStatus
84      */

85     public void setAccessStatus(org.alfresco.repo.webservice.accesscontrol.AccessStatus accessStatus) {
86         this.accessStatus = accessStatus;
87     }
88
89     private java.lang.Object JavaDoc __equalsCalc = null;
90     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
91         if (!(obj instanceof HasPermissionsResult)) return false;
92         HasPermissionsResult other = (HasPermissionsResult) obj;
93         if (obj == null) return false;
94         if (this == obj) return true;
95         if (__equalsCalc != null) {
96             return (__equalsCalc == obj);
97         }
98         __equalsCalc = obj;
99         boolean _equals;
100         _equals = true &&
101             ((this.reference==null && other.getReference()==null) ||
102              (this.reference!=null &&
103               this.reference.equals(other.getReference()))) &&
104             ((this.permission==null && other.getPermission()==null) ||
105              (this.permission!=null &&
106               this.permission.equals(other.getPermission()))) &&
107             ((this.accessStatus==null && other.getAccessStatus()==null) ||
108              (this.accessStatus!=null &&
109               this.accessStatus.equals(other.getAccessStatus())));
110         __equalsCalc = null;
111         return _equals;
112     }
113
114     private boolean __hashCodeCalc = false;
115     public synchronized int hashCode() {
116         if (__hashCodeCalc) {
117             return 0;
118         }
119         __hashCodeCalc = true;
120         int _hashCode = 1;
121         if (getReference() != null) {
122             _hashCode += getReference().hashCode();
123         }
124         if (getPermission() != null) {
125             _hashCode += getPermission().hashCode();
126         }
127         if (getAccessStatus() != null) {
128             _hashCode += getAccessStatus().hashCode();
129         }
130         __hashCodeCalc = false;
131         return _hashCode;
132     }
133
134     // Type metadata
135
private static org.apache.axis.description.TypeDesc typeDesc =
136         new org.apache.axis.description.TypeDesc(HasPermissionsResult.class, true);
137
138     static {
139         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "HasPermissionsResult"));
140         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
141         elemField.setFieldName("reference");
142         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "reference"));
143         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
144         elemField.setNillable(false);
145         typeDesc.addFieldDesc(elemField);
146         elemField = new org.apache.axis.description.ElementDesc();
147         elemField.setFieldName("permission");
148         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "permission"));
149         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
150         elemField.setNillable(false);
151         typeDesc.addFieldDesc(elemField);
152         elemField = new org.apache.axis.description.ElementDesc();
153         elemField.setFieldName("accessStatus");
154         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "accessStatus"));
155         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "AccessStatus"));
156         elemField.setNillable(false);
157         typeDesc.addFieldDesc(elemField);
158     }
159
160     /**
161      * Return type metadata object
162      */

163     public static org.apache.axis.description.TypeDesc getTypeDesc() {
164         return typeDesc;
165     }
166
167     /**
168      * Get Custom Serializer
169      */

170     public static org.apache.axis.encoding.Serializer getSerializer(
171            java.lang.String JavaDoc mechType,
172            java.lang.Class JavaDoc _javaType,
173            javax.xml.namespace.QName JavaDoc _xmlType) {
174         return
175           new org.apache.axis.encoding.ser.BeanSerializer(
176             _javaType, _xmlType, typeDesc);
177     }
178
179     /**
180      * Get Custom Deserializer
181      */

182     public static org.apache.axis.encoding.Deserializer getDeserializer(
183            java.lang.String JavaDoc mechType,
184            java.lang.Class JavaDoc _javaType,
185            javax.xml.namespace.QName JavaDoc _xmlType) {
186         return
187           new org.apache.axis.encoding.ser.BeanDeserializer(
188             _javaType, _xmlType, typeDesc);
189     }
190
191 }
192
Popular Tags