1 7 8 package org.alfresco.repo.webservice.accesscontrol; 9 10 public class ACL implements java.io.Serializable { 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 35 public org.alfresco.repo.webservice.types.Reference getReference() { 36 return reference; 37 } 38 39 40 45 public void setReference(org.alfresco.repo.webservice.types.Reference reference) { 46 this.reference = reference; 47 } 48 49 50 55 public boolean isInheritPermissions() { 56 return inheritPermissions; 57 } 58 59 60 65 public void setInheritPermissions(boolean inheritPermissions) { 66 this.inheritPermissions = inheritPermissions; 67 } 68 69 70 75 public org.alfresco.repo.webservice.accesscontrol.ACE[] getAces() { 76 return aces; 77 } 78 79 80 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 __equalsCalc = null; 98 public synchronized boolean equals(java.lang.Object 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 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 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 ("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 ("http://www.alfresco.org/ws/service/accesscontrol/1.0", "reference")); 155 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/service/accesscontrol/1.0", "inheritPermissions")); 161 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/service/accesscontrol/1.0", "aces")); 167 elemField.setXmlType(new javax.xml.namespace.QName ("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 177 public static org.apache.axis.description.TypeDesc getTypeDesc() { 178 return typeDesc; 179 } 180 181 184 public static org.apache.axis.encoding.Serializer getSerializer( 185 java.lang.String mechType, 186 java.lang.Class _javaType, 187 javax.xml.namespace.QName _xmlType) { 188 return 189 new org.apache.axis.encoding.ser.BeanSerializer( 190 _javaType, _xmlType, typeDesc); 191 } 192 193 196 public static org.apache.axis.encoding.Deserializer getDeserializer( 197 java.lang.String mechType, 198 java.lang.Class _javaType, 199 javax.xml.namespace.QName _xmlType) { 200 return 201 new org.apache.axis.encoding.ser.BeanDeserializer( 202 _javaType, _xmlType, typeDesc); 203 } 204 205 } 206 | Popular Tags |