| | |
| | | dom.setDomainoptions(domainOptions); |
| | | } |
| | | if (dom.getValidsubdomainnames() == null) { |
| | | dom.setValidsubdomainnames("www"); |
| | | dom.setValidsubdomainnames("*"); |
| | | } |
| | | final AbstractEntity newDomain = super.add(dom); |
| | | final GenericModuleImpl helperModule = new GenericModuleImpl(getTransaction()); |
| | |
| | | } |
| | | } |
| | | for (DomainOption opt : domainOptions) { |
| | | if ("letsencrypt".equals(opt.getName()) && updatedDom.getServeraliases().contains("*")) { |
| | | throw new HSAdminException("invalid domain option: " + opt.getName() + " for wildcard subdomain"); |
| | | } |
| | | if ("backupmxforexternalmx".equals(opt.getName())) { |
| | | final Query query = em.createQuery( |
| | | "SELECT e FROM " + EMailAddress.class.getAnnotation(javax.persistence.Entity.class).name() |