HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2017-06-21 0c5e4774b829afe91c181dbbdd5390f021c1259e
property names in lowercase
3 files modified
20 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/Domain.java 12 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java 4 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/remote/DomainRemote.java 4 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/Domain.java
@@ -64,7 +64,7 @@
    @AnnFieldIO(validation="([a-z0-9\\-]+\\,)*[a-z0-9\\-]+|\\*", rw=ReadWriteAccess.READWRITE)
    @Column(name = "valid_subdomain_names", columnDefinition = "character varying(512)")
    private String validSubdomainNames;
    private String validsubdomainnames;
    
    public Domain() {
    }
@@ -183,16 +183,16 @@
        this.domainoptions = domainOptions;
    }
    public String getValidSubdomainNames() {
        return validSubdomainNames;
    public String getValidsubdomainnames() {
        return validsubdomainnames;
    }
    public void setValidSubdomainNames(String validSubdomainNames) {
        this.validSubdomainNames = validSubdomainNames;
    public void setValidsubdomainnames(String validSubdomainNames) {
        this.validsubdomainnames = validSubdomainNames;
    }
    public String getServeraliases() {
        String[] subs = validSubdomainNames.split(",");
        String[] subs = validsubdomainnames.split(",");
        StringBuffer aliases = new StringBuffer();
        for (String sub : subs) {
            aliases.append(' ');
hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
@@ -181,8 +181,8 @@
            }
            dom.setDomainoptions(domainOptions);
        }
        if (dom.getValidSubdomainNames() == null) {
            dom.setValidSubdomainNames("www");
        if (dom.getValidsubdomainnames() == null) {
            dom.setValidsubdomainnames("www");
        }
        if (dom.isPacDomain()) {
            em.persist(new EMailAddress("owner", "", dom, dom.getUser().getPac().getCustomer().getName().substring(6) + "@hostsharing.net"));
hsarback/src/de/hsadmin/remote/DomainRemote.java
@@ -47,7 +47,7 @@
                domainOptionsList.add(opt.getName());
            }
        }
        final String validsubdomains = dom.getValidSubdomainNames();
        final String validsubdomains = dom.getValidsubdomainnames();
        resultMap.put("validsubdomains", validsubdomains);
    }
@@ -77,7 +77,7 @@
        }
        final Object validsubdomains = setParams.get("validsubdomains");
        if (validsubdomains != null && validsubdomains instanceof String) {
            dom.setValidSubdomainNames((String) validsubdomains);
            dom.setValidsubdomainnames((String) validsubdomains);
        }
    }