From 9cb6c50352c29d136c82e24640dec8e0ba4b2ffb Mon Sep 17 00:00:00 2001 From: pdanner Date: Tue, 30 Nov 2010 13:51:10 +0000 Subject: removed 1.5 deps git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@654 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java b/src/main/java/at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java index c89b4fe..81e9005 100644 --- a/src/main/java/at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java +++ b/src/main/java/at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java @@ -5,6 +5,8 @@ import java.util.HashMap; import java.util.Map; import java.util.Properties; +import org.apache.commons.lang.StringUtils; + import at.gv.egiz.pdfas.api.PdfAs; import at.knowcenter.wag.egov.egiz.cfg.PropertyTree; import at.knowcenter.wag.egov.egiz.cfg.SettingsReader; @@ -53,7 +55,7 @@ public class DynamicSignatureProfileImpl implements DynamicSignatureProfile { if (lifeMode.equals(DynamicSignatureLifetimeEnum.MANUAL)) { profiles.remove(this); } else if (lifeMode.equals(DynamicSignatureLifetimeEnum.AUTO)) { - localProfiles.remove(); + localProfiles.set(null); } } @@ -138,7 +140,7 @@ public class DynamicSignatureProfileImpl implements DynamicSignatureProfile { for (Enumeration e = props.keys(); e.hasMoreElements();) { String oldKey = (String) e.nextElement(); if (oldKey.startsWith("sig_obj." + parentProfile + ".")) { - String newKey = oldKey.replace(parentProfile, name); + String newKey = StringUtils.replace(oldKey, parentProfile, name); String val = props.getProperty(oldKey); this.newProps.put(newKey, val); } -- cgit v1.2.3