summaryrefslogtreecommitdiff
path: root/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java
diff options
context:
space:
mode:
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.java53
1 files changed, 0 insertions, 53 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
deleted file mode 100644
index d26c8877..00000000
--- a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package at.asit.pdfover.commons;
-
-import java.util.Locale;
-
-public enum Profile {
-
- SIGNATURBLOCK_SMALL,
- AMTSSIGNATURBLOCK,
- BASE_LOGO,
- INVISIBLE;
-
- public static int length = Profile.values().length;
-
- public static Profile getProfile(String name) {
- if (SIGNATURBLOCK_SMALL.name().equals(name)) {
- return SIGNATURBLOCK_SMALL;
- } else if (AMTSSIGNATURBLOCK.name().equals(name)) {
- return AMTSSIGNATURBLOCK;
- } else if (BASE_LOGO.name().equals(name)) {
- return BASE_LOGO;
- } else if (INVISIBLE.name().equals(name)){
- return INVISIBLE;
- }
- return null;
- }
-
- public static Profile getDefaultProfile(){
- return SIGNATURBLOCK_SMALL;
- }
-
- public String getDefaultSignatureBlockNote(Locale locale){
-
- if (this == Profile.SIGNATURBLOCK_SMALL){
- return Messages.getString("simple_config.Note_Default_Standard", locale);
- } else if (this == Profile.AMTSSIGNATURBLOCK) {
- return Messages.getString("simple_config.Note_Default_OfficialSignature", locale);
- } else {
- return "";
- }
- }
-
- public boolean hasText() {
- return ((this == SIGNATURBLOCK_SMALL) || (this == AMTSSIGNATURBLOCK));
- }
-
- public boolean hasLogo() {
- return (this != INVISIBLE);
- }
-
- public boolean isVisibleSignature() {
- return (this != INVISIBLE);
- }
-}