delete pac
This commit is contained in:
parent
65f11f1ad1
commit
deea1a494b
@ -163,14 +163,14 @@ public class PacProcessorFactory implements EntityProcessorFactory {
|
|||||||
return hiveValues;
|
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>>();
|
List<Map<String, String>> pacValuesList = new ArrayList<Map<String, String>>();
|
||||||
Set<Pac> pacsSet = hive.getPacs();
|
Set<Pac> pacsSet = hive.getPacs();
|
||||||
for (Pac p : pacsSet) {
|
for (Pac p : pacsSet) {
|
||||||
HashMap<String, String> pacValues = new HashMap<String, String>();
|
HashMap<String, String> pacValues = new HashMap<String, String>();
|
||||||
pacValues.put("PAC", p.getName());
|
pacValues.put("PAC", p.getName());
|
||||||
pacValues.put("PAC_IP", p.getCurINetAddr().getInetAddr());
|
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);
|
pacValuesList.add(pacValues);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user