package org.cagrid.cds.model;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for IdentityDelegationPolicy complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="IdentityDelegationPolicy">
* <complexContent>
* <extension base="{http://gaards.cagrid.org/cds}DelegationPolicy">
* <sequence>
* <element name="AllowedParties" type="{http://gaards.cagrid.org/cds}AllowedParties"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IdentityDelegationPolicy", propOrder = {
"allowedParties"
})
public class IdentityDelegationPolicy
extends DelegationPolicy
implements Serializable
{
@XmlElement(name = "AllowedParties", required = true)
protected AllowedParties allowedParties;
/**
* Gets the value of the allowedParties property.
*
* @return
* possible object is
* {@link org.cagrid.cds.model.AllowedParties }
*
*/
public AllowedParties getAllowedParties() {
return allowedParties;
}
/**
* Sets the value of the allowedParties property.
*
* @param value
* allowed object is
* {@link org.cagrid.cds.model.AllowedParties }
*
*/
public void setAllowedParties(AllowedParties value) {
this.allowedParties = value;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
IdentityDelegationPolicy that = (IdentityDelegationPolicy) o;
if (allowedParties != null ? !allowedParties.equals(that.allowedParties) : that.allowedParties != null)
return false;
return true;
}
@Override
public int hashCode() {
return allowedParties != null ? allowedParties.hashCode() : 0;
}
}