From deea1a494be773629b26d061ccd478e842bbc179 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Thu, 28 Jul 2011 17:58:53 +0000 Subject: [PATCH] delete pac --- hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java index 456f22e..c6dd4fd 100644 --- a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java @@ -163,14 +163,14 @@ public class PacProcessorFactory implements EntityProcessorFactory { return hiveValues; } - private List> fillPacValuesList(Hive hive, Pac pac) { + private List> fillPacValuesList(Hive hive, Pac pacToSkip) { List> pacValuesList = new ArrayList>(); Set pacsSet = hive.getPacs(); for (Pac p : pacsSet) { HashMap pacValues = new HashMap(); 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); } }