property names in lowercase

This commit is contained in:
Peter Hormanns 2017-06-21 20:15:11 +02:00
parent b83ca0d33f
commit 0c5e4774b8
3 changed files with 10 additions and 10 deletions

View File

@ -64,7 +64,7 @@ public class Domain extends AbstractEntity {
@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 @@ public class Domain extends AbstractEntity {
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(' ');

View File

@ -181,8 +181,8 @@ public class DomainModuleImpl extends AbstractModuleImpl {
}
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"));

View File

@ -47,7 +47,7 @@ public class DomainRemote extends AbstractRemote {
domainOptionsList.add(opt.getName());
}
}
final String validsubdomains = dom.getValidSubdomainNames();
final String validsubdomains = dom.getValidsubdomainnames();
resultMap.put("validsubdomains", validsubdomains);
}
@ -77,7 +77,7 @@ public class DomainRemote extends AbstractRemote {
}
final Object validsubdomains = setParams.get("validsubdomains");
if (validsubdomains != null && validsubdomains instanceof String) {
dom.setValidSubdomainNames((String) validsubdomains);
dom.setValidsubdomainnames((String) validsubdomains);
}
}