delete pac
This commit is contained in:
parent
65f11f1ad1
commit
deea1a494b
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user