aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov/egiz
diff options
context:
space:
mode:
authorknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-07-17 15:22:50 +0000
committerknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-07-17 15:22:50 +0000
commit66c58144632a5e2d9d23301fe7cfbe77511b33eb (patch)
treedbee801c3def7f41e28245b43edf832661b80b1c /src/main/java/at/knowcenter/wag/egov/egiz
parentc6951feaf46d85fefc3a30d85c21ba09783a3a2b (diff)
downloadpdf-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')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java2
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureObject.java9
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java3
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/OldMOAIdFormatter.java17
4 files changed, 26 insertions, 5 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java
index 6ce7b03..510104d 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java
@@ -332,7 +332,7 @@ public abstract class ConnectorFactory
{
moa_sig_id_visible = SettingsReader.getInstance().getValueFromKey(MOA_SIG_ID_VISIBLE_KEY);
- if(!moa_sig_id_visible.equals("true"))// || moa_sig_id_visible == null)
+ if(!moa_sig_id_visible.equals("true") || moa_sig_id_visible == null)
return_result = false;
}
catch (SettingsException e)
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 62944e4..a9fad94 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
@@ -1606,6 +1606,15 @@ public class SignatureObject implements Serializable
setValueBruteForce(SignatureTypes.SIG_ID, null);
continue;
}
+// else
+// {
+// try {
+// setValueBruteForce(SignatureTypes.SIG_ID,
+// SettingsReader.getInstance().getValueFromKey("default.moa.signature.id"));
+// } catch (SettingsException e) {
+// e.printStackTrace();
+// }
+// }
char[] placeholder_chars = new char[sfd.placeholder_length];
for (int i = 0; i < placeholder_chars.length; i++)
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;
}
}