if (object == null || !(object instanceof SecurityAccess))
{
return false;
}
SecurityAccess obj = (SecurityAccess) object;
if (action != null)
{
if (!action.equals(obj.getAction()))
{
return false;
}
}
else
{
if (obj.getAction() != null)
{
return false;
}
}
Iterator i = allows.iterator();
Iterator i2 = obj.getAllows().iterator();
while (i.hasNext())
{
SecurityAllow c1 = (SecurityAllow) i.next();
SecurityAllow c2 = null;
if (i2.hasNext())
{
c2 = (SecurityAllow) i2.next();
}
else
{
return false;
}
if (!c1.equals(c2))
{
return false;
}
}
if (i2.hasNext())
{
return false;
}
i = ownerAllows.iterator();
i2 = obj.getOwnerAllows().iterator();
while (i.hasNext())
{
BaseSecurityAllowOwner c1 = (BaseSecurityAllowOwner) i.next();
BaseSecurityAllowOwner c2 = null;