1 7 8 package org.alfresco.repo.webservice.accesscontrol; 9 10 public class ACE implements java.io.Serializable { 11 private java.lang.String authority; 12 13 private java.lang.String permission; 14 15 private org.alfresco.repo.webservice.accesscontrol.AccessStatus accessStatus; 16 17 public ACE() { 18 } 19 20 public ACE( 21 java.lang.String authority, 22 java.lang.String permission, 23 org.alfresco.repo.webservice.accesscontrol.AccessStatus accessStatus) { 24 this.authority = authority; 25 this.permission = permission; 26 this.accessStatus = accessStatus; 27 } 28 29 30 35 public java.lang.String getAuthority() { 36 return authority; 37 } 38 39 40 45 public void setAuthority(java.lang.String authority) { 46 this.authority = authority; 47 } 48 49 50 55 public java.lang.String getPermission() { 56 return permission; 57 } 58 59 60 65 public void setPermission(java.lang.String permission) { 66 this.permission = permission; 67 } 68 69 70 75 public org.alfresco.repo.webservice.accesscontrol.AccessStatus getAccessStatus() { 76 return accessStatus; 77 } 78 79 80 85 public void setAccessStatus(org.alfresco.repo.webservice.accesscontrol.AccessStatus accessStatus) { 86 this.accessStatus = accessStatus; 87 } 88 89 private java.lang.Object __equalsCalc = null; 90 public synchronized boolean equals(java.lang.Object obj) { 91 if (!(obj instanceof ACE)) return false; 92 ACE other = (ACE) 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.authority==null && other.getAuthority()==null) || 102 (this.authority!=null && 103 this.authority.equals(other.getAuthority()))) && 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 (getAuthority() != null) { 122 _hashCode += getAuthority().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 private static org.apache.axis.description.TypeDesc typeDesc = 136 new org.apache.axis.description.TypeDesc(ACE.class, true); 137 138 static { 139 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/accesscontrol/1.0", "ACE")); 140 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 141 elemField.setFieldName("authority"); 142 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/accesscontrol/1.0", "authority")); 143 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 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 ("http://www.alfresco.org/ws/service/accesscontrol/1.0", "permission")); 149 elemField.setXmlType(new javax.xml.namespace.QName ("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 ("http://www.alfresco.org/ws/service/accesscontrol/1.0", "accessStatus")); 155 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/accesscontrol/1.0", "AccessStatus")); 156 elemField.setNillable(false); 157 typeDesc.addFieldDesc(elemField); 158 } 159 160 163 public static org.apache.axis.description.TypeDesc getTypeDesc() { 164 return typeDesc; 165 } 166 167 170 public static org.apache.axis.encoding.Serializer getSerializer( 171 java.lang.String mechType, 172 java.lang.Class _javaType, 173 javax.xml.namespace.QName _xmlType) { 174 return 175 new org.apache.axis.encoding.ser.BeanSerializer( 176 _javaType, _xmlType, typeDesc); 177 } 178 179 182 public static org.apache.axis.encoding.Deserializer getDeserializer( 183 java.lang.String mechType, 184 java.lang.Class _javaType, 185 javax.xml.namespace.QName _xmlType) { 186 return 187 new org.apache.axis.encoding.ser.BeanDeserializer( 188 _javaType, _xmlType, typeDesc); 189 } 190 191 } 192 | Popular Tags |