public long getUddiPublishInterval() { try { KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(isPooled, "UddiPublisher", "Interval"); if (p != null) { String t = p.getKeyNameValue().getPropertyValue(); long l = Long.parseLong(t); return l; } } catch (Exception ex) { } return 24 * 60 * 60 * 1000; }
/** * convenience wrapper * * @param value * @param shouldEncrypt * @return */ public static KeyNameValueEnc newKeyNameValueEnc(KeyNameValue value, boolean shouldEncrypt) { KeyNameValueEnc x = new KeyNameValueEnc(); x.setKeyNameValue(value); x.setShouldEncrypt(shouldEncrypt); return x; } }
if (GetPropertiesFromDB != null && GetPropertiesFromDB.getKeyNameValue() != null && GetPropertiesFromDB.getKeyNameValue().getPropertyValue() != null) { try { if (GetPropertiesFromDB.isShouldEncrypt()) { threshold = Long.parseLong(Utility.DE(GetPropertiesFromDB.getKeyNameValue().getPropertyValue())); } else { threshold = Long.parseLong(GetPropertiesFromDB.getKeyNameValue().getPropertyValue()); if (GetPropertiesFromDB != null && GetPropertiesFromDB.getKeyNameValue() != null && GetPropertiesFromDB.getKeyNameValue().getPropertyValue() != null) { try { NTSLAInterval = Long.parseLong(GetPropertiesFromDB.getKeyNameValue().getPropertyValue()); } catch (Exception x) {
/** * Create an instance of {@link KeyNameValueEnc } * */ public KeyNameValueEnc createKeyNameValueEnc() { return new KeyNameValueEnc(); }
@Override public String GetHtmlFormattedDisplay(List<NameValuePair> params) { NameValuePair mc = Utility.getNameValuePairByName(params, "value"); String item = UNDEFINED_VALUE; if (mc != null) { item = mc.getValue(); if (mc.isEncrypted() || mc.isEncryptOnSave()) { item = ENCRYPTED_MASK; } } if (item == null) { KeyNameValueEnc GetPropertiesFromDB = DBSettingsLoader.GetPropertiesFromDB(true, "NTSLAProcessor", "Interval"); if (GetPropertiesFromDB != null) { if (GetPropertiesFromDB.isShouldEncrypt()) { item = ENCRYPTED_MASK; } else { item = GetPropertiesFromDB.getKeyNameValue().getPropertyValue(); } } } if (Utility.stringIsNullOrEmpty(item)) { item = "300000"; } return GetDisplayName() + " older than " + Utility.encodeHTML(item) + " ms"; }
try { KeyNameValueEnc GetPropertiesFromDB = DBSettingsLoader.GetPropertiesFromDB(true, "StatisticsAggregator", "Periods"); String[] items = GetPropertiesFromDB.getKeyNameValue().getPropertyValue().split(","); for (int i = 0; i < items.length; i++) { long l = Long.parseLong(items[i]);
rs = com.executeQuery(); while (rs.next()) { KeyNameValueEnc k = new KeyNameValueEnc(); k.setShouldEncrypt(rs.getBoolean("isencrypted")); KeyNameValue p = new KeyNameValue(); p.setPropertyKey(rs.getString("keycol")); p.setPropertyName(rs.getString("namecol")); p.setPropertyValue(new String(rs.getBytes("valuecol"), Constants.CHARSET)); k.setKeyNameValue(p); items.add(k);
private static void Configure(boolean pooled) { boolean ok = true; KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(pooled, KEY, "ConnectionURL"); if (p != null && p.getKeyNameValue() != null) { ConnectionURL = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { String t = p.getKeyNameValue().getPropertyValue(); if (!Utility.stringIsNullOrEmpty(t)) { Topic = t.equalsIgnoreCase("topic"); if (p != null && p.getKeyNameValue() != null) { Destination = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { INITIAL_CONTEXT_FACTORY = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { username = p.getKeyNameValue().getPropertyValue(); } else { username = null; if (p != null && p.getKeyNameValue() != null) { encryptedpassword = p.getKeyNameValue().getPropertyValue(); } else { encryptedpassword = null; if (p != null && p.getKeyNameValue() != null) { truststorepass = p.getKeyNameValue().getPropertyValue(); } else {
rs = com.executeQuery(); while (rs.next()) { KeyNameValueEnc k = new KeyNameValueEnc(); k.setShouldEncrypt(rs.getBoolean("isencrypted")); KeyNameValue p = new KeyNameValue(); p.setPropertyKey(rs.getString("keycol")); p.setPropertyName(rs.getString("namecol")); p.setPropertyValue(new String(rs.getBytes("valuecol"), Charset.forName("UTF-8"))); k.setKeyNameValue(p); items.add(k);
boolean ok = true; KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(pooled, KEY, "ConnectionURL"); if (p != null && p.getKeyNameValue() != null) { ConnectionURL = p.getKeyNameValue().getPropertyValue();
PreparedStatement com = null; ResultSet rs = null; KeyNameValueEnc k = new KeyNameValueEnc(); try { rs = com.executeQuery(); if (rs.next()) { k.setShouldEncrypt(rs.getBoolean("isencrypted")); KeyNameValue p = new KeyNameValue(); p.setPropertyKey(rs.getString("keycol")); p.setPropertyName(rs.getString("namecol")); p.setPropertyValue(new String(rs.getBytes("valuecol"), Constants.CHARSET)); k.setKeyNameValue(p);
private static void Configure(boolean pooled) { boolean ok = true; KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(pooled, KEY, "ContextProviderUrl"); if (p != null && p.getKeyNameValue() != null) { ContextProviderUrl = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { String t = p.getKeyNameValue().getPropertyValue(); if (!Utility.stringIsNullOrEmpty(t)) { Topic = t.equalsIgnoreCase("topic"); if (p != null && p.getKeyNameValue() != null) { Destination = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { ConnectionFactoryLookup = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { INITIAL_CONTEXT_FACTORY = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { URL_PKG_PREFIXES = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { username = p.getKeyNameValue().getPropertyValue(); } else { username = null; if (p != null && p.getKeyNameValue() != null) { encryptedpassword = p.getKeyNameValue().getPropertyValue();
if (p != null && p.getKeyNameValue() != null) { brokerurl = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { username = p.getKeyNameValue().getPropertyValue(); } else { username = null; if (p != null && p.getKeyNameValue() != null) { encryptedpassword = p.getKeyNameValue().getPropertyValue(); } else { encryptedpassword = if (p != null && p.getKeyNameValue() != null) { configuredWSN_DIALECT = p.getKeyNameValue().getPropertyValue(); } else { configuredWSN_DIALECT = null; if (p != null && p.getKeyNameValue() != null) { topic = p.getKeyNameValue().getPropertyValue(); } else { topic = null; if (p != null && p.getKeyNameValue() != null) { try { truststore = p.getKeyNameValue().getPropertyValue();
if (d != null && d.getKeyNameValue() != null) { try { ignoreSSL = Boolean.parseBoolean(d.getKeyNameValue().getPropertyValue()); } catch (Exception ex) { ignoreSSL = false; if (d != null && d.getKeyNameValue() != null) { truststore = tmp + d.getKeyNameValue().getPropertyValue(); if (d != null && d.getKeyNameValue() != null) { truststorepass = d.getKeyNameValue().getPropertyValue(); if (d != null && d.getKeyNameValue() != null) { keystore = tmp + d.getKeyNameValue().getPropertyValue(); if (d != null && d.getKeyNameValue() != null) { keystorepass = d.getKeyNameValue().getPropertyValue();
String t = ""; KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(isPooled, "UddiPublisher", "Username"); if (p != null && p.getKeyNameValue() != null) { username = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { password = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { try { ClientCertRequired = Boolean.parseBoolean(p.getKeyNameValue().getPropertyValue()); } catch (Exception ex) { ClientCertRequired = false; if (p != null && p.getKeyNameValue() != null) { t = p.getKeyNameValue().getPropertyValue(); try { uddiauth = AuthMode.valueOf(t); if (p != null && p.getKeyNameValue() != null) { inquiryurl = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { publishurl = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { securityurl = p.getKeyNameValue().getPropertyValue(); String keystorepass = null;
try { KeyNameValueEnc GetPropertiesFromDB = DBSettingsLoader.GetPropertiesFromDB(pooled, "StatisticsAggregator", "Periods"); String[] items = GetPropertiesFromDB.getKeyNameValue().getPropertyValue().split(","); for (int i = 0; i < items.length; i++) { long l = Long.parseLong(items[i]);
if (d != null && d.getKeyNameValue() != null) { try { ret.setUDDIPublishRate(df.newDuration(Long.parseLong(d.getKeyNameValue().getPropertyValue()))); } catch (Exception ex) { ret.setUDDIPublishRate(df.newDuration(30 * 60 * 100));
String t = ""; KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(isPooled, "UddiPublisher", "Username"); if (p != null && p.getKeyNameValue() != null) { username = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { password = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { try { ClientCertRequired = Boolean.parseBoolean(p.getKeyNameValue().getPropertyValue()); } catch (Exception ex) { ClientCertRequired = false; if (p != null && p.getKeyNameValue() != null) { t = p.getKeyNameValue().getPropertyValue(); try { uddiauth = AuthMode.valueOf(t); if (p != null && p.getKeyNameValue() != null) { inquiryurl = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { publishurl = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { securityurl = p.getKeyNameValue().getPropertyValue(); String keystorepass = null;
boolean run = true; KeyNameValueEnc GetPropertiesFromDB = DBSettingsLoader.GetPropertiesFromDB(pooled, "Bueller", "Enabled"); if (GetPropertiesFromDB != null && GetPropertiesFromDB.getKeyNameValue() != null) { try { run = Boolean.parseBoolean(GetPropertiesFromDB.getKeyNameValue().getPropertyValue()); } catch (Exception ex) {
try { KeyNameValueEnc GetPropertiesFromDB = DBSettingsLoader.GetPropertiesFromDB(pooled, "defaults", "ServicesWar"); if (GetPropertiesFromDB != null && GetPropertiesFromDB.getKeyNameValue() != null) { if (Utility.stringIsNullOrEmpty(GetPropertiesFromDB.getKeyNameValue().getPropertyValue())) { link = "<a href=\"" + GetPropertiesFromDB.getKeyNameValue().getPropertyValue() + "/ReportFetch?reportid=" + URLEncoder.encode(id) + "\">" + Utility.encodeHTML(id) + "</a>";