aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config
diff options
context:
space:
mode:
authoremusic <emina.music@egiz.gv.at>2018-05-14 16:38:43 +0200
committeremusic <emina.music@egiz.gv.at>2018-05-14 16:38:43 +0200
commit797634c687c6f44d314e4baa3fed220d142eed73 (patch)
tree56dc1ce81e81ff100261aa779a68dcbc61ecc0e5 /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config
parent0a59371516348ba36163128060e02e997099fcbd (diff)
downloadpdf-as-4-797634c687c6f44d314e4baa3fed220d142eed73.tar.gz
pdf-as-4-797634c687c6f44d314e4baa3fed220d142eed73.tar.bz2
pdf-as-4-797634c687c6f44d314e4baa3fed220d142eed73.zip
changes in pdf-as-lib4.1.3
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java
index 9b14df16..d63f698f 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java
@@ -586,4 +586,17 @@ public class WebConfiguration implements IConfigurationConstants {
}
return ivalue;
}
+
+
+ public static boolean isPdfProtected()
+ {
+ String value = properties.getProperty(DEFAULT_CONFIG_PROTECT_PDF);
+ if (value != null) {
+ if (value.equals("true")) {
+ return true;
+ }
+ }
+ return false;
+ }
+
}