// Build isEnabled map (keyed by ping target id and values Boolean.TRUE/Boolean.FALSE)
Map isEnabled = new HashMap();
List autopings = autoPingMgr.getAutoPingsByWebsite(website);
// Add the enabled auto ping configs with TRUE
for (Iterator i = autopings.iterator(); i.hasNext();) {
AutoPingData autoPing = (AutoPingData) i.next();
isEnabled.put(autoPing.getPingTarget().getId(), Boolean.TRUE);
}
// Somewhat awkward, but the two loops save building a separate combined list.
// Add disabled common ones with FALSE
for (Iterator i = commonPingTargets.iterator(); i.hasNext();) {
PingTargetData pingTarget = (PingTargetData) i.next();