aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid
diff options
context:
space:
mode:
authorknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-07-30 10:11:40 +0000
committerknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-07-30 10:11:40 +0000
commit07f6c8f33b2d700276fe6ec6339ff836c8710131 (patch)
tree2506a97a7d1637e48d6fadc62ba0567d41fc3aa7 /src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid
parent0eec1152db9d5ac312186cbd30fb24df770ef3a6 (diff)
downloadpdf-as-3-07f6c8f33b2d700276fe6ec6339ff836c8710131.tar.gz
pdf-as-3-07f6c8f33b2d700276fe6ec6339ff836c8710131.tar.bz2
pdf-as-3-07f6c8f33b2d700276fe6ec6339ff836c8710131.zip
Problem with SIG_ID field by MOA textual signs solved
Problem with Vorschau solved git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@166 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java
index cc28adc..460694d 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java
@@ -3,8 +3,12 @@
*/
package at.knowcenter.wag.egov.egiz.sig.sigid;
+import org.apache.log4j.Logger;
+
+import at.knowcenter.wag.egov.egiz.cfg.ConfigLogger;
import at.knowcenter.wag.egov.egiz.cfg.SettingsReader;
import at.knowcenter.wag.egov.egiz.exceptions.SettingsException;
+import at.knowcenter.wag.egov.egiz.sig.ConnectorFactory;
/**
* @author wprinz
@@ -18,6 +22,8 @@ public class DetachedLocRefMOAIdFormatter implements IdFormatter
*/
public static String SIG_ID_PREFIX = "etsi-bka-moa-1.0"; //$NON-NLS-1$
+ private static final Logger logger_ = ConfigLogger.getLogger(DetachedLocRefMOAIdFormatter.class);
+
/**
* Key value in property file
*/
@@ -32,12 +38,18 @@ public class DetachedLocRefMOAIdFormatter implements IdFormatter
try
{
+ if(SettingsReader.getInstance().getValueFromKey("moa.id.field.visible").equals("false")){
+ return null;
+ }
+
SIG_ID_PREFIX = SettingsReader.getInstance().getValueFromKey(SIG_ID_PROPERTY_KEY);
} catch (SettingsException e)
{
e.printStackTrace();
}
-
+
+
+
return SIG_ID_PREFIX;
}
}