From 203d8960661b53b1be0843c28d185ab287fdd4fd Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Mon, 26 Jun 2017 18:12:50 +0200 Subject: [PATCH] show domain-subdomains only on domain.update --- .../main/java/de/hsadmin/web/GenericEditorFactory.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/src/main/java/de/hsadmin/web/GenericEditorFactory.java b/web/src/main/java/de/hsadmin/web/GenericEditorFactory.java index 4d76118..3a73271 100644 --- a/web/src/main/java/de/hsadmin/web/GenericEditorFactory.java +++ b/web/src/main/java/de/hsadmin/web/GenericEditorFactory.java @@ -34,6 +34,9 @@ public class GenericEditorFactory implements IEditorFactory, Serializable { if ("domainoptions".equals(inputName)) { return getDomainOptionsEditor(action, propertyInfo, session, whereContext); } + if ("validsubdomainnames".equals(inputName)) { + return getValidsubdomainnamesEditor(action, propertyInfo, session, whereContext); + } } if ("emailaddress".equals(module) || "emailalias".equals(module)) { if ("target".equals(inputName)) { @@ -54,6 +57,12 @@ public class GenericEditorFactory implements IEditorFactory, Serializable { } + private IHSEditor getValidsubdomainnamesEditor(final String action, final PropertyInfo propertyInfo, final HSAdminSession session, + final Map whereContext) { + return PanelToolbar.ACTION_EDIT.equals(action) ? getEditor(action, propertyInfo) : new NullEditor(); + } + + private IHSEditor getDomainOptionsEditor(final String action, final PropertyInfo propertyInfo, final HSAdminSession session, final Map whereContext) { return PanelToolbar.ACTION_EDIT.equals(action) ? new DomainOptionsEditor(propertyInfo, session, whereContext) : new NullEditor(); }