diff --git a/src/main/java/info/bukova/isspst/data/SettingsData.java b/src/main/java/info/bukova/isspst/data/SettingsData.java index 89434b41..23125e93 100644 --- a/src/main/java/info/bukova/isspst/data/SettingsData.java +++ b/src/main/java/info/bukova/isspst/data/SettingsData.java @@ -1,5 +1,8 @@ package info.bukova.isspst.data; +import java.util.ArrayList; +import java.util.List; + import info.bukova.isspst.mail.MailMessage; public class SettingsData { @@ -8,11 +11,18 @@ public class SettingsData { private MailMessage newReqTemplate; private MailMessage authReqTemplate; private MailMessage confReqTemplate; + private Address mainAddress; + private List
shippingAddrs; + private String bankName; + private String accountNumber; + private String bankCode; public SettingsData() { newReqTemplate = new MailMessage(); authReqTemplate = new MailMessage(); confReqTemplate = new MailMessage(); + mainAddress = new Address(); + shippingAddrs = new ArrayList
(); } public boolean isEnableRequirements() { @@ -46,5 +56,45 @@ public class SettingsData { public void setConfReqTemplate(MailMessage confReqTemplate) { this.confReqTemplate = confReqTemplate; } + + public Address getMainAddress() { + return mainAddress; + } + + public void setMainAddress(Address mainAddress) { + this.mainAddress = mainAddress; + } + + public List
getShippingAddrs() { + return shippingAddrs; + } + + public void setShippingAddrs(List
shippingAddrs) { + this.shippingAddrs = shippingAddrs; + } + + public String getBankName() { + return bankName; + } + + public void setBankName(String bankName) { + this.bankName = bankName; + } + + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + public String getBankCode() { + return bankCode; + } + + public void setBankCode(String bankCode) { + this.bankCode = bankCode; + } } diff --git a/src/main/java/info/bukova/isspst/services/settings/GlobalSettingServiceImpl.java b/src/main/java/info/bukova/isspst/services/settings/GlobalSettingServiceImpl.java index a06a322f..7a746092 100644 --- a/src/main/java/info/bukova/isspst/services/settings/GlobalSettingServiceImpl.java +++ b/src/main/java/info/bukova/isspst/services/settings/GlobalSettingServiceImpl.java @@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.transaction.annotation.Transactional; +import info.bukova.isspst.data.Address; import info.bukova.isspst.data.GlobalSettings; import info.bukova.isspst.data.SettingsData; import info.bukova.isspst.services.AbstractOwnedService; @@ -100,6 +101,13 @@ public class GlobalSettingServiceImpl extends AbstractOwnedService + + + + + + + + + + + + + + + + + + + + + + + + +