diff options
author | knowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-07-17 15:22:50 +0000 |
---|---|---|
committer | knowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-07-17 15:22:50 +0000 |
commit | 66c58144632a5e2d9d23301fe7cfbe77511b33eb (patch) | |
tree | dbee801c3def7f41e28245b43edf832661b80b1c /src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid | |
parent | c6951feaf46d85fefc3a30d85c21ba09783a3a2b (diff) | |
download | pdf-as-3-66c58144632a5e2d9d23301fe7cfbe77511b33eb.tar.gz pdf-as-3-66c58144632a5e2d9d23301fe7cfbe77511b33eb.tar.bz2 pdf-as-3-66c58144632a5e2d9d23301fe7cfbe77511b33eb.zip |
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@134 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.java | 3 | ||||
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/OldMOAIdFormatter.java | 17 |
2 files changed, 16 insertions, 4 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 c12c6c1..ab2774d 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 @@ -12,9 +12,6 @@ import at.knowcenter.wag.egov.egiz.exceptions.SettingsException; */
public class DetachedLocRefMOAIdFormatter implements IdFormatter
{
- /**
- * The SIG_ID prefix.
- */
public static final String MOA_SIG_ID_KEY = "default.moa.signature.id";
/**
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 05f5db8..f45fbbe 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 @@ -3,6 +3,9 @@ */
package at.knowcenter.wag.egov.egiz.sig.sigid;
+import at.knowcenter.wag.egov.egiz.cfg.SettingsReader;
+import at.knowcenter.wag.egov.egiz.exceptions.SettingsException;
+
/**
* @author wprinz
*
@@ -10,12 +13,24 @@ package at.knowcenter.wag.egov.egiz.sig.sigid; public class OldMOAIdFormatter implements IdFormatter
{
+ public static final String MOA_SIG_ID_KEY = "default.moa.signature.id";
+
/**
* @see at.knowcenter.wag.egov.egiz.sig.sigid.IdFormatter#formatIds(java.lang.String[])
*/
public String formatIds(String[] ids)
{
- return null;
+ String sig_id_prefix = null;
+
+ try
+ {
+ sig_id_prefix = SettingsReader.getInstance().getValueFromKey(MOA_SIG_ID_KEY);
+ } catch (SettingsException e)
+ {
+ e.printStackTrace();
+ }
+
+ return sig_id_prefix;
}
}
|