diff options
author | Thomas <> | 2023-06-27 08:56:21 +0200 |
---|---|---|
committer | Thomas <> | 2023-06-27 08:56:21 +0200 |
commit | ca7b9d0863dcc1c02849a23db66310146f91c104 (patch) | |
tree | f8f1400fe8d1f9771bbccf4d26414948bf37dd0a /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api | |
parent | cc26fbd157a39ea243d1d253e6b62f38ccad244e (diff) | |
download | pdf-as-4-ca7b9d0863dcc1c02849a23db66310146f91c104.tar.gz pdf-as-4-ca7b9d0863dcc1c02849a23db66310146f91c104.tar.bz2 pdf-as-4-ca7b9d0863dcc1c02849a23db66310146f91c104.zip |
feat(web): add request parameter to enable/disable QR-code placeholder searching on request level
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api')
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java | 5 | ||||
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/sign/SignParameter.java | 17 |
2 files changed, 21 insertions, 1 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java index bd9e9d99..d031e2f7 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java @@ -46,10 +46,13 @@ public interface IConfigurationConstants { public static final String MIN_WIDTH = "minWidth"; public static final String PLACEHOLDER_ID = "placeholder_id"; - public static final String PLACEHOLDER_WEB_ID = "placeholder_web_id"; public static final String PLACEHOLDER_MODE = "placeholder_mode"; public static final String PLACEHOLDER_PROFILE_OVERWRITE = "placeholder_profile_overwrite"; + + public static final String PLACEHOLDER_WEB_ID = "placeholder_web_id"; + public static final String PLACEHOLDER_WEB_ENABLED = "placeholder_web_enabled"; + public static final String PLACEHOLDER_SEARCH_ENABLED = "enable_placeholder_search"; public static final String DEFAULT_SIGNATURE_PROFILE = SIG_OBJECT + SEPERATOR + TYPE + SEPERATOR + DEFAULT; diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/sign/SignParameter.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/sign/SignParameter.java index 3485c9ea..e123d453 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/sign/SignParameter.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/sign/SignParameter.java @@ -71,6 +71,23 @@ public interface SignParameter extends PdfAsParameter { void setPlaceHolderId(String id); /** + * Is QR-Code placeholder search enabled for this request. + * + * @return <code>true</code> if it's enabled, otherwise <code>false</code> + */ + boolean isPlaceHolderSearchEnabled(); + + + /** + * Enable / disable QR-Code placeholder search on request level. + * + * <p>Default value is <code>true</code></p> + * + * @param flag <code>true</code> to enable, <code>false</code> to disable + */ + void setPlaceHolderSearchEnabled(boolean flag); + + /** * Sets the signer to use * * |