HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-07-28 deea1a494be773629b26d061ccd478e842bbc179
delete pac
1 files modified
4 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java 4 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -163,14 +163,14 @@
        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);
            }
        }