/** * */ 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 * */ public class DetachedLocRefMOAIdFormatter implements IdFormatter { /** * The SIG_ID prefix. * Default value: etsi-bka-moa-1.0 */ public static String SIG_ID_PREFIX = "etsi-bka-moa-1.0"; //$NON-NLS-1$ /** * Key value in property file */ public static final String SIG_ID_PROPERTY_KEY = "default.moa.algorithm.id"; /** * @see at.knowcenter.wag.egov.egiz.sig.sigid.IdFormatter#formatIds(java.lang.String[]) */ public String formatIds(String[] ids) { // read id from property file and use it try { SIG_ID_PREFIX = SettingsReader.getInstance().getValueFromKey(SIG_ID_PROPERTY_KEY); } catch (SettingsException e) { e.printStackTrace(); } return SIG_ID_PREFIX; } }