1 7 8 package org.alfresco.repo.webservice.administration; 9 10 public class NewUserDetails implements java.io.Serializable { 11 private java.lang.String userName; 12 13 private java.lang.String password; 14 15 private org.alfresco.repo.webservice.types.NamedValue[] properties; 16 17 public NewUserDetails() { 18 } 19 20 public NewUserDetails( 21 java.lang.String userName, 22 java.lang.String password, 23 org.alfresco.repo.webservice.types.NamedValue[] properties) { 24 this.userName = userName; 25 this.password = password; 26 this.properties = properties; 27 } 28 29 30 35 public java.lang.String getUserName() { 36 return userName; 37 } 38 39 40 45 public void setUserName(java.lang.String userName) { 46 this.userName = userName; 47 } 48 49 50 55 public java.lang.String getPassword() { 56 return password; 57 } 58 59 60 65 public void setPassword(java.lang.String password) { 66 this.password = password; 67 } 68 69 70 75 public org.alfresco.repo.webservice.types.NamedValue[] getProperties() { 76 return properties; 77 } 78 79 80 85 public void setProperties(org.alfresco.repo.webservice.types.NamedValue[] properties) { 86 this.properties = properties; 87 } 88 89 public org.alfresco.repo.webservice.types.NamedValue getProperties(int i) { 90 return this.properties[i]; 91 } 92 93 public void setProperties(int i, org.alfresco.repo.webservice.types.NamedValue _value) { 94 this.properties[i] = _value; 95 } 96 97 private java.lang.Object __equalsCalc = null; 98 public synchronized boolean equals(java.lang.Object obj) { 99 if (!(obj instanceof NewUserDetails)) return false; 100 NewUserDetails other = (NewUserDetails) 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.userName==null && other.getUserName()==null) || 110 (this.userName!=null && 111 this.userName.equals(other.getUserName()))) && 112 ((this.password==null && other.getPassword()==null) || 113 (this.password!=null && 114 this.password.equals(other.getPassword()))) && 115 ((this.properties==null && other.getProperties()==null) || 116 (this.properties!=null && 117 java.util.Arrays.equals(this.properties, other.getProperties()))); 118 __equalsCalc = null; 119 return _equals; 120 } 121 122 private boolean __hashCodeCalc = false; 123 public synchronized int hashCode() { 124 if (__hashCodeCalc) { 125 return 0; 126 } 127 __hashCodeCalc = true; 128 int _hashCode = 1; 129 if (getUserName() != null) { 130 _hashCode += getUserName().hashCode(); 131 } 132 if (getPassword() != null) { 133 _hashCode += getPassword().hashCode(); 134 } 135 if (getProperties() != null) { 136 for (int i=0; 137 i<java.lang.reflect.Array.getLength(getProperties()); 138 i++) { 139 java.lang.Object obj = java.lang.reflect.Array.get(getProperties(), i); 140 if (obj != null && 141 !obj.getClass().isArray()) { 142 _hashCode += obj.hashCode(); 143 } 144 } 145 } 146 __hashCodeCalc = false; 147 return _hashCode; 148 } 149 150 private static org.apache.axis.description.TypeDesc typeDesc = 152 new org.apache.axis.description.TypeDesc(NewUserDetails.class, true); 153 154 static { 155 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/administration/1.0", "NewUserDetails")); 156 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 157 elemField.setFieldName("userName"); 158 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/administration/1.0", "userName")); 159 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 160 elemField.setNillable(false); 161 typeDesc.addFieldDesc(elemField); 162 elemField = new org.apache.axis.description.ElementDesc(); 163 elemField.setFieldName("password"); 164 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/administration/1.0", "password")); 165 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 166 elemField.setNillable(false); 167 typeDesc.addFieldDesc(elemField); 168 elemField = new org.apache.axis.description.ElementDesc(); 169 elemField.setFieldName("properties"); 170 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/administration/1.0", "properties")); 171 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); 172 elemField.setMinOccurs(0); 173 elemField.setNillable(false); 174 elemField.setMaxOccursUnbounded(true); 175 typeDesc.addFieldDesc(elemField); 176 } 177 178 181 public static org.apache.axis.description.TypeDesc getTypeDesc() { 182 return typeDesc; 183 } 184 185 188 public static org.apache.axis.encoding.Serializer getSerializer( 189 java.lang.String mechType, 190 java.lang.Class _javaType, 191 javax.xml.namespace.QName _xmlType) { 192 return 193 new org.apache.axis.encoding.ser.BeanSerializer( 194 _javaType, _xmlType, typeDesc); 195 } 196 197 200 public static org.apache.axis.encoding.Deserializer getDeserializer( 201 java.lang.String mechType, 202 java.lang.Class _javaType, 203 javax.xml.namespace.QName _xmlType) { 204 return 205 new org.apache.axis.encoding.ser.BeanDeserializer( 206 _javaType, _xmlType, typeDesc); 207 } 208 209 } 210 | Popular Tags |