diff options
author | knowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-07-17 17:38:35 +0000 |
---|---|---|
committer | knowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-07-17 17:38:35 +0000 |
commit | 5c20905703db89e08814257725639db385cc80e7 (patch) | |
tree | 5a6dffa356236cd7fca3798ca3c9209d9123265a /src | |
parent | 63db9a961a03da169cd0fcdfa69d1a6f73984568 (diff) | |
download | pdf-as-3-5c20905703db89e08814257725639db385cc80e7.tar.gz pdf-as-3-5c20905703db89e08814257725639db385cc80e7.tar.bz2 pdf-as-3-5c20905703db89e08814257725639db385cc80e7.zip |
SIG_ID(Kennzeichnung) value when using MOA
works in commandline (Enveloped, v1.0.0) and in Web (detached, v1.1.0) case
see config file: moa.sign.id.active=true/false
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@136 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java | 10 | ||||
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/OldMOAIdFormatter.java | 10 |
2 files changed, 18 insertions, 2 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 ab2774d..c1d831e 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 @@ -5,6 +5,7 @@ package at.knowcenter.wag.egov.egiz.sig.sigid; 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
@@ -23,7 +24,14 @@ public class DetachedLocRefMOAIdFormatter implements IdFormatter try
{
- sig_id_prefix = SettingsReader.getInstance().getValueFromKey(MOA_SIG_ID_KEY);
+ //FIXME make better
+ //connector is hard coded since this method is called only when using MOA!
+ boolean sig_id_visible = ConnectorFactory.needsSIG_ID("moa");
+
+ if (sig_id_visible)
+ {
+ sig_id_prefix = SettingsReader.getInstance().getValueFromKey(MOA_SIG_ID_KEY);
+ }
} catch (SettingsException e)
{
e.printStackTrace();
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/OldMOAIdFormatter.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/OldMOAIdFormatter.java index f45fbbe..d4bd166 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/OldMOAIdFormatter.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/OldMOAIdFormatter.java @@ -5,6 +5,7 @@ package at.knowcenter.wag.egov.egiz.sig.sigid; 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
@@ -24,7 +25,14 @@ public class OldMOAIdFormatter implements IdFormatter try
{
- sig_id_prefix = SettingsReader.getInstance().getValueFromKey(MOA_SIG_ID_KEY);
+ // FIXME make better
+ //connector is hard coded since this method is called only when using MOA!
+ boolean sig_id_visible = ConnectorFactory.needsSIG_ID("moa");
+
+ if (sig_id_visible)
+ {
+ sig_id_prefix = SettingsReader.getInstance().getValueFromKey(MOA_SIG_ID_KEY);
+ }
} catch (SettingsException e)
{
e.printStackTrace();
|