diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-04 13:53:14 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-04 13:53:14 +0200 |
commit | 671d24d8e638b073b3aa5da00526978af2ebd06b (patch) | |
tree | 252998ce7e44d6db1c862c4ed9b7083d6aea5213 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration | |
parent | 03b80912dc888296647412b0276e7610315fef13 (diff) | |
download | pdf-over-671d24d8e638b073b3aa5da00526978af2ebd06b.tar.gz pdf-over-671d24d8e638b073b3aa5da00526978af2ebd06b.tar.bz2 pdf-over-671d24d8e638b073b3aa5da00526978af2ebd06b.zip |
pass Profile instead of String around
(in a bunch of different places)
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration')
2 files changed, 4 insertions, 4 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java index e24aa9a8..7316b91e 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java @@ -663,7 +663,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase { } this.configurationContainer.proxyUser = provider.getProxyUserPersistent(); this.configurationContainer.proxyPass = provider.getProxyPassPersistent(); - this.configurationContainer.setSignatureProfile(Profile.getProfile(provider.getSignatureProfile())); + this.configurationContainer.setSignatureProfile(provider.getSignatureProfile()); } /* @@ -745,7 +745,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase { store.setUpdateCheckPersistent(this.configurationContainer.updateCheck); - store.setSignatureProfilePersistent(this.configurationContainer.getSignatureProfile().name()); + store.setSignatureProfilePersistent(this.configurationContainer.getSignatureProfile()); String hostOld = store.getProxyHostPersistent(); String hostNew = this.configurationContainer.proxyHost; diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java index 52c78e9d..8f652603 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java @@ -348,7 +348,7 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { try { PdfAs4SignatureParameter param = new PdfAs4SignatureParameter(); - param.signatureProfileName = this.configurationContainer.getSignatureProfile().name(); + param.signatureProfile = this.configurationContainer.getSignatureProfile(); if(this.configurationContainer.signatureNote != null && !this.configurationContainer.signatureNote.isEmpty()) { param.setProperty("SIG_NOTE", this.configurationContainer.signatureNote); } @@ -612,7 +612,7 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { store.setDefaultEmblemPersistent(this.configurationContainer.getEmblemPath()); store.setSignatureLocalePersistent(this.configurationContainer.signatureLocale); store.setSignatureNotePersistent(this.configurationContainer.signatureNote); - store.setSignatureProfilePersistent(this.configurationContainer.getSignatureProfile().name()); + store.setSignatureProfilePersistent(this.configurationContainer.getSignatureProfile()); } /* |