From 7829299864100095d366403a09f7dfaa44cf2ac6 Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 29 Nov 2010 14:27:54 +0000 Subject: added override properties git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@636 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java index 24d1411..bbe28a0 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java @@ -41,6 +41,7 @@ import org.apache.log4j.Logger; import at.knowcenter.wag.egov.egiz.PdfASID; import at.knowcenter.wag.egov.egiz.cfg.ConfigLogger; +import at.knowcenter.wag.egov.egiz.cfg.OverridePropertyHolder; import at.knowcenter.wag.egov.egiz.cfg.SettingsReader; import at.knowcenter.wag.egov.egiz.exceptions.InvalidIDException; import at.knowcenter.wag.egov.egiz.exceptions.NormalizeException; @@ -425,6 +426,7 @@ public class SignatureObject implements Serializable */ public String getSigValue(String key) { + String value = null; if (sigEntries_.containsKey(key)) { @@ -434,6 +436,14 @@ public class SignatureObject implements Serializable { value = normalizer_.getVersion(); } + String overrideVal = OverridePropertyHolder.getProperty(key); + if (overrideVal != null) { + value = overrideVal; + if (logger_.isDebugEnabled()) { + logger_.debug("Using override property for key '" + key + "' = " + value); + } + } + return value; } -- cgit v1.2.3