show domain-subdomains only on domain.update

This commit is contained in:
Peter Hormanns 2017-06-26 18:12:50 +02:00
parent b974a2521a
commit 203d896066

View File

@ -34,6 +34,9 @@ public class GenericEditorFactory implements IEditorFactory, Serializable {
if ("domainoptions".equals(inputName)) { if ("domainoptions".equals(inputName)) {
return getDomainOptionsEditor(action, propertyInfo, session, whereContext); return getDomainOptionsEditor(action, propertyInfo, session, whereContext);
} }
if ("validsubdomainnames".equals(inputName)) {
return getValidsubdomainnamesEditor(action, propertyInfo, session, whereContext);
}
} }
if ("emailaddress".equals(module) || "emailalias".equals(module)) { if ("emailaddress".equals(module) || "emailalias".equals(module)) {
if ("target".equals(inputName)) { 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<String, String> 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<String, String> whereContext) { private IHSEditor getDomainOptionsEditor(final String action, final PropertyInfo propertyInfo, final HSAdminSession session, final Map<String, String> whereContext) {
return PanelToolbar.ACTION_EDIT.equals(action) ? new DomainOptionsEditor(propertyInfo, session, whereContext) : new NullEditor(); return PanelToolbar.ACTION_EDIT.equals(action) ? new DomainOptionsEditor(propertyInfo, session, whereContext) : new NullEditor();
} }