delete pac

This commit is contained in:
Peter Hormanns 2011-07-28 17:58:53 +00:00
parent 65f11f1ad1
commit deea1a494b

View File

@ -163,14 +163,14 @@ public class PacProcessorFactory implements EntityProcessorFactory {
return hiveValues;
}
private List<Map<String, String>> fillPacValuesList(Hive hive, Pac pac) {
private List<Map<String, String>> fillPacValuesList(Hive hive, Pac pacToSkip) {
List<Map<String, String>> pacValuesList = new ArrayList<Map<String, String>>();
Set<Pac> pacsSet = hive.getPacs();
for (Pac p : pacsSet) {
HashMap<String, String> pacValues = new HashMap<String, String>();
pacValues.put("PAC", p.getName());
pacValues.put("PAC_IP", p.getCurINetAddr().getInetAddr());
if (pac == null || pac.getId() != p.getId()) {
if (pacToSkip == null || !pacToSkip.getName().equals(p.getName())) {
pacValuesList.add(pacValues);
}
}