HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2018-04-04 b0172a377a989471129fbf79a8d3d1b0d5817f9d
ugly fix for domainoptions-update by hsscript
1 files modified
13 ■■■■■ changed files
hsarback/src/de/hsadmin/remote/DomainRemote.java 13 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/remote/DomainRemote.java
@@ -1,8 +1,10 @@
package de.hsadmin.remote;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -75,6 +77,17 @@
            }
            dom.setDomainoptions(domainOptionsSet);
        }
        if (domOptsObj != null && domOptsObj instanceof Map<?, ?>) {
            final Set<DomainOption> domainOptionsSet = new HashSet<DomainOption>();
            final Collection<?> domOptions = ((Map<?, ?>) domOptsObj).values();
            final Iterator<?> iterator = domOptions.iterator();
            while (iterator.hasNext()) {
                final DomainOption domainOption = new DomainOption();
                domainOption.setName((String)iterator.next());
                domainOptionsSet.add(domainOption);
            }
            dom.setDomainoptions(domainOptionsSet);
        }
        final Object validsubdomains = setParams.get("validsubdomainnames");
        if (validsubdomains != null && validsubdomains instanceof String) {
            dom.setValidsubdomainnames((String) validsubdomains);