diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-02 15:32:12 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-02 15:32:12 +0200 |
commit | 8522b8b8cb0043883b8801e619384f94efe981e8 (patch) | |
tree | 9edaddee3f786d5a14635d912cbfcb425d426c22 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration | |
parent | 464e7b1df6a0ff5d1450e5ff0f67101640edbc5e (diff) | |
download | pdf-over-8522b8b8cb0043883b8801e619384f94efe981e8.tar.gz pdf-over-8522b8b8cb0043883b8801e619384f94efe981e8.tar.bz2 pdf-over-8522b8b8cb0043883b8801e619384f94efe981e8.zip |
YAGNI SignatureParameter setters/getters
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java | 9 |
1 files changed, 5 insertions, 4 deletions
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 c3392a46..a737bdfe 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 @@ -445,11 +445,11 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { param.setProperty("SIG_NOTE", this.configurationContainer.signatureNote); } - param.setSignatureLanguage(this.configurationContainer.signatureLocale.getLanguage()); - param.setSignaturePdfACompat(this.configurationContainer.signaturePDFACompat); + param.signatureLanguage = this.configurationContainer.signatureLocale.getLanguage(); + param.enablePDFACompat = this.configurationContainer.signaturePDFACompat; if (image != null && !image.trim().isEmpty()) { logo = new ImageData(image); - param.setEmblem(new CachedFileNameEmblem(image)); + param.emblem = new CachedFileNameEmblem(image); } //TODO deactivated the placeholder preview //TODO display accurate placeholder preview -> now its only standard placeholder shown @@ -554,8 +554,9 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { void setSignatureProfileSetting(){ try { + // TODO this doesn't do anything...? PdfAs4SignatureParameter param = new PdfAs4SignatureParameter(); - param.setSignatureProfile(this.configurationContainer.getSignatureProfile().name()); + param.signatureProfileName = this.configurationContainer.getSignatureProfile().name(); } catch (Exception e){ log.warn("Cannot save signature profile {}", e.getMessage()); |