/** * ACL.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 ACL implements java.io.Serializable { private org.alfresco.repo.webservice.types.Reference reference; private boolean inheritPermissions; private org.alfresco.repo.webservice.accesscontrol.ACE[] aces; public ACL() { } public ACL( org.alfresco.repo.webservice.types.Reference reference, boolean inheritPermissions, org.alfresco.repo.webservice.accesscontrol.ACE[] aces) { this.reference = reference; this.inheritPermissions = inheritPermissions; this.aces = aces; } /** * Gets the reference value for this ACL. * * @return reference */ public org.alfresco.repo.webservice.types.Reference getReference() { return reference; } /** * Sets the reference value for this ACL. * * @param reference */ public void setReference(org.alfresco.repo.webservice.types.Reference reference) { this.reference = reference; } /** * Gets the inheritPermissions value for this ACL. * * @return inheritPermissions */ public boolean isInheritPermissions() { return inheritPermissions; } /** * Sets the inheritPermissions value for this ACL. * * @param inheritPermissions */ public void setInheritPermissions(boolean inheritPermissions) { this.inheritPermissions = inheritPermissions; } /** * Gets the aces value for this ACL. * * @return aces */ public org.alfresco.repo.webservice.accesscontrol.ACE[] getAces() { return aces; } /** * Sets the aces value for this ACL. * * @param aces */ public void setAces(org.alfresco.repo.webservice.accesscontrol.ACE[] aces) { this.aces = aces; } public org.alfresco.repo.webservice.accesscontrol.ACE getAces(int i) { return this.aces[i]; } public void setAces(int i, org.alfresco.repo.webservice.accesscontrol.ACE _value) { this.aces[i] = _value; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof ACL)) return false; ACL other = (ACL) 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.inheritPermissions == other.isInheritPermissions() && ((this.aces==null && other.getAces()==null) || (this.aces!=null && java.util.Arrays.equals(this.aces, other.getAces()))); __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(); } _hashCode += (isInheritPermissions() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getAces() != null) { for (int i=0; i