KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * ACL.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 ACL implements java.io.Serializable JavaDoc {
11     private org.alfresco.repo.webservice.types.Reference reference;
12
13     private boolean inheritPermissions;
14
15     private org.alfresco.repo.webservice.accesscontrol.ACE[] aces;
16
17     public ACL() {
18     }
19
20     public ACL(
21            org.alfresco.repo.webservice.types.Reference reference,
22            boolean inheritPermissions,
23            org.alfresco.repo.webservice.accesscontrol.ACE[] aces) {
24            this.reference = reference;
25            this.inheritPermissions = inheritPermissions;
26            this.aces = aces;
27     }
28
29
30     /**
31      * Gets the reference value for this ACL.
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 ACL.
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 inheritPermissions value for this ACL.
52      *
53      * @return inheritPermissions
54      */

55     public boolean isInheritPermissions() {
56         return inheritPermissions;
57     }
58
59
60     /**
61      * Sets the inheritPermissions value for this ACL.
62      *
63      * @param inheritPermissions
64      */

65     public void setInheritPermissions(boolean inheritPermissions) {
66         this.inheritPermissions = inheritPermissions;
67     }
68
69
70     /**
71      * Gets the aces value for this ACL.
72      *
73      * @return aces
74      */

75     public org.alfresco.repo.webservice.accesscontrol.ACE[] getAces() {
76         return aces;
77     }
78
79
80     /**
81      * Sets the aces value for this ACL.
82      *
83      * @param aces
84      */

85     public void setAces(org.alfresco.repo.webservice.accesscontrol.ACE[] aces) {
86         this.aces = aces;
87     }
88
89     public org.alfresco.repo.webservice.accesscontrol.ACE getAces(int i) {
90         return this.aces[i];
91     }
92
93     public void setAces(int i, org.alfresco.repo.webservice.accesscontrol.ACE _value) {
94         this.aces[i] = _value;
95     }
96
97     private java.lang.Object JavaDoc __equalsCalc = null;
98     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
99         if (!(obj instanceof ACL)) return false;
100         ACL other = (ACL) obj;
101         if (obj == null) return false;
102         if (this == obj) return true;
103         if (__equalsCalc != null) {
104             return (__equalsCalc == obj);
105         }
106         __equalsCalc = obj;
107         boolean _equals;
108         _equals = true &&
109             ((this.reference==null && other.getReference()==null) ||
110              (this.reference!=null &&
111               this.reference.equals(other.getReference()))) &&
112             this.inheritPermissions == other.isInheritPermissions() &&
113             ((this.aces==null && other.getAces()==null) ||
114              (this.aces!=null &&
115               java.util.Arrays.equals(this.aces, other.getAces())));
116         __equalsCalc = null;
117         return _equals;
118     }
119
120     private boolean __hashCodeCalc = false;
121     public synchronized int hashCode() {
122         if (__hashCodeCalc) {
123             return 0;
124         }
125         __hashCodeCalc = true;
126         int _hashCode = 1;
127         if (getReference() != null) {
128             _hashCode += getReference().hashCode();
129         }
130         _hashCode += (isInheritPermissions() ? Boolean.TRUE : Boolean.FALSE).hashCode();
131         if (getAces() != null) {
132             for (int i=0;
133                  i<java.lang.reflect.Array.getLength(getAces());
134                  i++) {
135                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getAces(), i);
136                 if (obj != null &&
137                     !obj.getClass().isArray()) {
138                     _hashCode += obj.hashCode();
139                 }
140             }
141         }
142         __hashCodeCalc = false;
143         return _hashCode;
144     }
145
146     // Type metadata
147
private static org.apache.axis.description.TypeDesc typeDesc =
148         new org.apache.axis.description.TypeDesc(ACL.class, true);
149
150     static {
151         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "ACL"));
152         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
153         elemField.setFieldName("reference");
154         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "reference"));
155         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
156         elemField.setNillable(false);
157         typeDesc.addFieldDesc(elemField);
158         elemField = new org.apache.axis.description.ElementDesc();
159         elemField.setFieldName("inheritPermissions");
160         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "inheritPermissions"));
161         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
162         elemField.setNillable(false);
163         typeDesc.addFieldDesc(elemField);
164         elemField = new org.apache.axis.description.ElementDesc();
165         elemField.setFieldName("aces");
166         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "aces"));
167         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/accesscontrol/1.0", "ACE"));
168         elemField.setMinOccurs(0);
169         elemField.setNillable(false);
170         elemField.setMaxOccursUnbounded(true);
171         typeDesc.addFieldDesc(elemField);
172     }
173
174     /**
175      * Return type metadata object
176      */

177     public static org.apache.axis.description.TypeDesc getTypeDesc() {
178         return typeDesc;
179     }
180
181     /**
182      * Get Custom Serializer
183      */

184     public static org.apache.axis.encoding.Serializer getSerializer(
185            java.lang.String JavaDoc mechType,
186            java.lang.Class JavaDoc _javaType,
187            javax.xml.namespace.QName JavaDoc _xmlType) {
188         return
189           new org.apache.axis.encoding.ser.BeanSerializer(
190             _javaType, _xmlType, typeDesc);
191     }
192
193     /**
194      * Get Custom Deserializer
195      */

196     public static org.apache.axis.encoding.Deserializer getDeserializer(
197            java.lang.String JavaDoc mechType,
198            java.lang.Class JavaDoc _javaType,
199            javax.xml.namespace.QName JavaDoc _xmlType) {
200         return
201           new org.apache.axis.encoding.ser.BeanDeserializer(
202             _javaType, _xmlType, typeDesc);
203     }
204
205 }
206
Popular Tags