/** * Rule.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.action; public class Rule implements java.io.Serializable { private java.lang.String id; private org.alfresco.repo.webservice.action.RuleType ruleType; private java.lang.String title; private java.lang.String description; private boolean executeAsynchronously; private org.alfresco.repo.webservice.action.Condition[] conditions; private org.alfresco.repo.webservice.action.Action[] actions; private java.lang.String runAsUserName; private org.alfresco.repo.webservice.types.Reference reference; public Rule() { } public Rule( java.lang.String id, org.alfresco.repo.webservice.action.RuleType ruleType, java.lang.String title, java.lang.String description, boolean executeAsynchronously, org.alfresco.repo.webservice.action.Condition[] conditions, org.alfresco.repo.webservice.action.Action[] actions, java.lang.String runAsUserName, org.alfresco.repo.webservice.types.Reference reference) { this.id = id; this.ruleType = ruleType; this.title = title; this.description = description; this.executeAsynchronously = executeAsynchronously; this.conditions = conditions; this.actions = actions; this.runAsUserName = runAsUserName; this.reference = reference; } /** * Gets the id value for this Rule. * * @return id */ public java.lang.String getId() { return id; } /** * Sets the id value for this Rule. * * @param id */ public void setId(java.lang.String id) { this.id = id; } /** * Gets the ruleType value for this Rule. * * @return ruleType */ public org.alfresco.repo.webservice.action.RuleType getRuleType() { return ruleType; } /** * Sets the ruleType value for this Rule. * * @param ruleType */ public void setRuleType(org.alfresco.repo.webservice.action.RuleType ruleType) { this.ruleType = ruleType; } /** * Gets the title value for this Rule. * * @return title */ public java.lang.String getTitle() { return title; } /** * Sets the title value for this Rule. * * @param title */ public void setTitle(java.lang.String title) { this.title = title; } /** * Gets the description value for this Rule. * * @return description */ public java.lang.String getDescription() { return description; } /** * Sets the description value for this Rule. * * @param description */ public void setDescription(java.lang.String description) { this.description = description; } /** * Gets the executeAsynchronously value for this Rule. * * @return executeAsynchronously */ public boolean isExecuteAsynchronously() { return executeAsynchronously; } /** * Sets the executeAsynchronously value for this Rule. * * @param executeAsynchronously */ public void setExecuteAsynchronously(boolean executeAsynchronously) { this.executeAsynchronously = executeAsynchronously; } /** * Gets the conditions value for this Rule. * * @return conditions */ public org.alfresco.repo.webservice.action.Condition[] getConditions() { return conditions; } /** * Sets the conditions value for this Rule. * * @param conditions */ public void setConditions(org.alfresco.repo.webservice.action.Condition[] conditions) { this.conditions = conditions; } public org.alfresco.repo.webservice.action.Condition getConditions(int i) { return this.conditions[i]; } public void setConditions(int i, org.alfresco.repo.webservice.action.Condition _value) { this.conditions[i] = _value; } /** * Gets the actions value for this Rule. * * @return actions */ public org.alfresco.repo.webservice.action.Action[] getActions() { return actions; } /** * Sets the actions value for this Rule. * * @param actions */ public void setActions(org.alfresco.repo.webservice.action.Action[] actions) { this.actions = actions; } public org.alfresco.repo.webservice.action.Action getActions(int i) { return this.actions[i]; } public void setActions(int i, org.alfresco.repo.webservice.action.Action _value) { this.actions[i] = _value; } /** * Gets the runAsUserName value for this Rule. * * @return runAsUserName */ public java.lang.String getRunAsUserName() { return runAsUserName; } /** * Sets the runAsUserName value for this Rule. * * @param runAsUserName */ public void setRunAsUserName(java.lang.String runAsUserName) { this.runAsUserName = runAsUserName; } /** * Gets the reference value for this Rule. * * @return reference */ public org.alfresco.repo.webservice.types.Reference getReference() { return reference; } /** * Sets the reference value for this Rule. * * @param reference */ public void setReference(org.alfresco.repo.webservice.types.Reference reference) { this.reference = reference; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof Rule)) return false; Rule other = (Rule) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.id==null && other.getId()==null) || (this.id!=null && this.id.equals(other.getId()))) && ((this.ruleType==null && other.getRuleType()==null) || (this.ruleType!=null && this.ruleType.equals(other.getRuleType()))) && ((this.title==null && other.getTitle()==null) || (this.title!=null && this.title.equals(other.getTitle()))) && ((this.description==null && other.getDescription()==null) || (this.description!=null && this.description.equals(other.getDescription()))) && this.executeAsynchronously == other.isExecuteAsynchronously() && ((this.conditions==null && other.getConditions()==null) || (this.conditions!=null && java.util.Arrays.equals(this.conditions, other.getConditions()))) && ((this.actions==null && other.getActions()==null) || (this.actions!=null && java.util.Arrays.equals(this.actions, other.getActions()))) && ((this.runAsUserName==null && other.getRunAsUserName()==null) || (this.runAsUserName!=null && this.runAsUserName.equals(other.getRunAsUserName()))) && ((this.reference==null && other.getReference()==null) || (this.reference!=null && this.reference.equals(other.getReference()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getId() != null) { _hashCode += getId().hashCode(); } if (getRuleType() != null) { _hashCode += getRuleType().hashCode(); } if (getTitle() != null) { _hashCode += getTitle().hashCode(); } if (getDescription() != null) { _hashCode += getDescription().hashCode(); } _hashCode += (isExecuteAsynchronously() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getConditions() != null) { for (int i=0; i