From 5dae0e33532654f306420b456544f28d69214678 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Tue, 18 Jun 2019 19:30:34 +0200 Subject: [PATCH] fix list of pac-domains --- hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java | 5 ++++- hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java index 939ac7e..d6e97df 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java @@ -123,7 +123,10 @@ public class DomainProcessorFactory implements EntityProcessorFactory { final List pacsList = pacsQuery.getResultList(); for (final Object obj : pacsList) { if (obj instanceof Pac) { - domsNames.add(((Pac) obj).getName() + ".hostsharing.net"); + final Pac p = (Pac) obj; + if ("PAC/WEB".equals(p.getBasepac().getName())) { + domsNames.add(p.getName() + ".hostsharing.net"); + } } } final Map namedZonesTemplateVars = new HashMap(); diff --git a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java index 95f00a3..ba69558 100644 --- a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java @@ -169,7 +169,10 @@ public class PacProcessorFactory implements EntityProcessorFactory { final List pacsList = pacsQuery.getResultList(); for (final Object obj : pacsList) { if (obj instanceof Pac) { - domsNames.add(((Pac) obj).getName() + ".hostsharing.net"); + final Pac p = (Pac) obj; + if ("PAC/WEB".equals(p.getBasepac().getName())) { + domsNames.add(p.getName() + ".hostsharing.net"); + } } } final Map namedZonesTemplateVars = new HashMap();