property names in lowercase
This commit is contained in:
parent
b83ca0d33f
commit
0c5e4774b8
@ -64,7 +64,7 @@ public class Domain extends AbstractEntity {
|
|||||||
|
|
||||||
@AnnFieldIO(validation="([a-z0-9\\-]+\\,)*[a-z0-9\\-]+|\\*", rw=ReadWriteAccess.READWRITE)
|
@AnnFieldIO(validation="([a-z0-9\\-]+\\,)*[a-z0-9\\-]+|\\*", rw=ReadWriteAccess.READWRITE)
|
||||||
@Column(name = "valid_subdomain_names", columnDefinition = "character varying(512)")
|
@Column(name = "valid_subdomain_names", columnDefinition = "character varying(512)")
|
||||||
private String validSubdomainNames;
|
private String validsubdomainnames;
|
||||||
|
|
||||||
public Domain() {
|
public Domain() {
|
||||||
}
|
}
|
||||||
@ -183,16 +183,16 @@ public class Domain extends AbstractEntity {
|
|||||||
this.domainoptions = domainOptions;
|
this.domainoptions = domainOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getValidSubdomainNames() {
|
public String getValidsubdomainnames() {
|
||||||
return validSubdomainNames;
|
return validsubdomainnames;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValidSubdomainNames(String validSubdomainNames) {
|
public void setValidsubdomainnames(String validSubdomainNames) {
|
||||||
this.validSubdomainNames = validSubdomainNames;
|
this.validsubdomainnames = validSubdomainNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getServeraliases() {
|
public String getServeraliases() {
|
||||||
String[] subs = validSubdomainNames.split(",");
|
String[] subs = validsubdomainnames.split(",");
|
||||||
StringBuffer aliases = new StringBuffer();
|
StringBuffer aliases = new StringBuffer();
|
||||||
for (String sub : subs) {
|
for (String sub : subs) {
|
||||||
aliases.append(' ');
|
aliases.append(' ');
|
||||||
|
@ -181,8 +181,8 @@ public class DomainModuleImpl extends AbstractModuleImpl {
|
|||||||
}
|
}
|
||||||
dom.setDomainoptions(domainOptions);
|
dom.setDomainoptions(domainOptions);
|
||||||
}
|
}
|
||||||
if (dom.getValidSubdomainNames() == null) {
|
if (dom.getValidsubdomainnames() == null) {
|
||||||
dom.setValidSubdomainNames("www");
|
dom.setValidsubdomainnames("www");
|
||||||
}
|
}
|
||||||
if (dom.isPacDomain()) {
|
if (dom.isPacDomain()) {
|
||||||
em.persist(new EMailAddress("owner", "", dom, dom.getUser().getPac().getCustomer().getName().substring(6) + "@hostsharing.net"));
|
em.persist(new EMailAddress("owner", "", dom, dom.getUser().getPac().getCustomer().getName().substring(6) + "@hostsharing.net"));
|
||||||
|
@ -47,7 +47,7 @@ public class DomainRemote extends AbstractRemote {
|
|||||||
domainOptionsList.add(opt.getName());
|
domainOptionsList.add(opt.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final String validsubdomains = dom.getValidSubdomainNames();
|
final String validsubdomains = dom.getValidsubdomainnames();
|
||||||
resultMap.put("validsubdomains", validsubdomains);
|
resultMap.put("validsubdomains", validsubdomains);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public class DomainRemote extends AbstractRemote {
|
|||||||
}
|
}
|
||||||
final Object validsubdomains = setParams.get("validsubdomains");
|
final Object validsubdomains = setParams.get("validsubdomains");
|
||||||
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