diff options
author | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2021-09-13 14:30:27 +0200 |
---|---|---|
committer | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2021-09-13 14:30:27 +0200 |
commit | f2fc62bd1d2dd0dc9660375890c28af5cbb5b00a (patch) | |
tree | 64f00ed76b43080c9f4b4727f3e864a209454640 /pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java | |
parent | ab9a63655476c392d95fca3beff8eb59edeccc39 (diff) | |
download | pdf-over-f2fc62bd1d2dd0dc9660375890c28af5cbb5b00a.tar.gz pdf-over-f2fc62bd1d2dd0dc9660375890c28af5cbb5b00a.tar.bz2 pdf-over-f2fc62bd1d2dd0dc9660375890c28af5cbb5b00a.zip |
refactor
Diffstat (limited to 'pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java')
-rw-r--r-- | pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java index 057b5826..34014cc7 100644 --- a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java +++ b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java @@ -1,5 +1,7 @@ package at.asit.pdfover.commons; +import java.util.Locale; + public enum Profile { SIGNATURBLOCK_SMALL, //$NON-NLS-1$ @@ -26,5 +28,15 @@ public enum Profile { return SIGNATURBLOCK_SMALL.name(); } + public static String getSignatureBlockNoteTextAccordingToProfile(Profile profile, Locale locale){ + + if (profile.equals(Profile.SIGNATURBLOCK_SMALL)){ + return Messages.getString("simple_config.Note_Default_Standard", locale); + } else if (profile.equals(Profile.AMTSSIGNATURBLOCK)){ + return Messages.getString("simple_config.Note_Default_OfficialSignature", locale); + } else { + return ""; + } + } } |