diff options
Diffstat (limited to 'src/main')
3 files changed, 8 insertions, 5 deletions
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);
}
|