From 117025dc200937bdaf4894cb133b41b7f03ae5ab Mon Sep 17 00:00:00 2001 From: ferbas Date: Mon, 2 Nov 2009 09:22:35 +0000 Subject: stringbuilder -> stringbuffer git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@381 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java | 2 +- .../wag/egov/egiz/sig/sigid/DetachedLocRefMOAIdFormatter.java | 9 ++++++--- .../wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java index 6d83a9f..c237ef7 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedIdFormatter.java @@ -69,7 +69,7 @@ public class DetachedIdFormatter implements IdFormatter String idstr = base + "@" + join.substring(1); //$NON-NLS-1$ // dferbas - StringBuilder final_ids = new StringBuilder(SIG_ID_PREFIX); + StringBuffer final_ids = new StringBuffer(SIG_ID_PREFIX); //String final_ids = SIG_ID_PREFIX + "@" + idstr; if (algorithmParams != null && algorithmParams.length() > 0) { final_ids.append(":").append(algorithmParams); 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 7d66a4e..0329bc5 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,6 +3,7 @@ */ package at.knowcenter.wag.egov.egiz.sig.sigid; +import org.apache.commons.lang.BooleanUtils; import org.apache.log4j.Logger; import at.knowcenter.wag.egov.egiz.cfg.ConfigLogger; @@ -37,9 +38,11 @@ public class DetachedLocRefMOAIdFormatter implements IdFormatter try { - if(SettingsReader.getInstance().getValueFromKey("moa.id.field.visible").equals("false")){ - return null; - } + // dferbas +// if (!BooleanUtils.toBoolean(SettingsReader.getInstance().getValueFromKey("moa.id.field.visible"))) { +// return null; +// } + SIG_ID_PREFIX = SettingsReader.getInstance().getValueFromKey(SIG_ID_PROPERTY_KEY); } catch (SettingsException e) diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java index c15367f..25b9428 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java @@ -46,7 +46,7 @@ public class DetachedMOCIdFormatter implements IdFormatter { prefix = StringUtils.defaultIfEmpty(this.algorithmId, prefix); // dferbas - StringBuilder formattedIds = new StringBuilder(prefix); + StringBuffer formattedIds = new StringBuffer(prefix); if (algorithmParams != null && algorithmParams.length() > 0) { formattedIds.append(":").append(algorithmParams); } -- cgit v1.2.3