Files
alfresco-community-repo/source/generated/org/alfresco/repo/webservice/accesscontrol/GetPermissionsResult.java

156 lines
5.0 KiB
Java

/**
* GetPermissionsResult.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
*/
package org.alfresco.repo.webservice.accesscontrol;
public class GetPermissionsResult implements java.io.Serializable {
private org.alfresco.repo.webservice.types.Reference reference;
private java.lang.String permissions;
public GetPermissionsResult() {
}
public GetPermissionsResult(
org.alfresco.repo.webservice.types.Reference reference,
java.lang.String permissions) {
this.reference = reference;
this.permissions = permissions;
}
/**
* Gets the reference value for this GetPermissionsResult.
*
* @return reference
*/
public org.alfresco.repo.webservice.types.Reference getReference() {
return reference;
}
/**
* Sets the reference value for this GetPermissionsResult.
*
* @param reference
*/
public void setReference(org.alfresco.repo.webservice.types.Reference reference) {
this.reference = reference;
}
/**
* Gets the permissions value for this GetPermissionsResult.
*
* @return permissions
*/
public java.lang.String getPermissions() {
return permissions;
}
/**
* Sets the permissions value for this GetPermissionsResult.
*
* @param permissions
*/
public void setPermissions(java.lang.String permissions) {
this.permissions = permissions;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof GetPermissionsResult)) return false;
GetPermissionsResult other = (GetPermissionsResult) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.reference==null && other.getReference()==null) ||
(this.reference!=null &&
this.reference.equals(other.getReference()))) &&
((this.permissions==null && other.getPermissions()==null) ||
(this.permissions!=null &&
this.permissions.equals(other.getPermissions())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getReference() != null) {
_hashCode += getReference().hashCode();
}
if (getPermissions() != null) {
_hashCode += getPermissions().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(GetPermissionsResult.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/accesscontrol/1.0", "GetPermissionsResult"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("reference");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/accesscontrol/1.0", "reference"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("permissions");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/accesscontrol/1.0", "permissions"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}