ugly fix for domainoptions-update by hsscript
This commit is contained in:
parent
b28d34f01b
commit
b0172a377a
@ -1,8 +1,10 @@
|
|||||||
package de.hsadmin.remote;
|
package de.hsadmin.remote;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@ -75,6 +77,17 @@ public class DomainRemote extends AbstractRemote {
|
|||||||
}
|
}
|
||||||
dom.setDomainoptions(domainOptionsSet);
|
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");
|
final Object validsubdomains = setParams.get("validsubdomainnames");
|
||||||
if (validsubdomains != null && validsubdomains instanceof String) {
|
if (validsubdomains != null && validsubdomains instanceof String) {
|
||||||
dom.setValidsubdomainnames((String) validsubdomains);
|
dom.setValidsubdomainnames((String) validsubdomains);
|
||||||
|
Loading…
Reference in New Issue
Block a user