public static boolean containsProperty(SystemPropertyBag me, String name) { return me.getSystemProperty(name) != null; } }
public static boolean containsProperty(SystemPropertyBag me, String name) { return me.getSystemProperty(name) != null; } }
public Object run(SystemPropertyBag param) throws PropertyVetoException, TransactionFailure { param.getSystemProperty().remove(param.getSystemProperty(propName)); return param; } }, spb);
public static SystemProperty getSystemProperty(final SystemPropertyBag me, final String name) { for (final SystemProperty prop : me.getSystemProperty()) { if (prop.getName().equals(name)) { return prop; } } return null; }
public static SystemProperty getSystemProperty(final SystemPropertyBag me, final String name) { for (final SystemProperty prop : me.getSystemProperty()) { if (prop.getName().equals(name)) { return prop; } } return null; }
private static void removeSystemPropertyForTokens(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag) throws TransactionFailure { for (ConfigCustomizationToken token : tokens) { if (bag.containsProperty(token.getName())) { bag.getSystemProperty().remove(bag.getSystemProperty(token.getName())); } } }
private void createSystemProperty(SystemPropertyBag spb, String portName, int portVal) throws TransactionFailure, PropertyVetoException { if (spb.getSystemProperty(portName) == null) { SystemProperty newSysProp = spb.createChild(SystemProperty.class); newSysProp.setName(portName); newSysProp.setValue(PREFIX + portVal); spb.getSystemProperty().add(newSysProp); } } }
private void createSystemProperty(SystemPropertyBag spb, String portName, int portVal) throws TransactionFailure, PropertyVetoException { if (spb.getSystemProperty(portName) == null) { SystemProperty newSysProp = spb.createChild(SystemProperty.class); newSysProp.setName(portName); newSysProp.setValue(PREFIX + portVal); spb.getSystemProperty().add(newSysProp); } } }
private static String getTXLogDir(SystemPropertyBag bag) { for (SystemProperty prop : bag.getSystemProperty()) { String name = prop.getName(); if (name.equals("TX-LOG-DIR")) { return prop.getValue(); } } return null; }
public String getPropertyValue(ConfigCustomizationToken token, ConfigBeanProxy finalConfigBean) { if (finalConfigBean != null) { ConfigBeanProxy parent = finalConfigBean.getParent(); while (!(parent instanceof SystemPropertyBag)) { parent = parent.getParent(); if (parent == null) return null; } if (((SystemPropertyBag) parent).getSystemProperty(token.getName()) != null) { return ((SystemPropertyBag) parent).getSystemProperty(token.getName()).getValue(); } return null; } else return token.getValue(); }
@Override public Object run(SystemPropertyBag param) throws PropertyVetoException, TransactionFailure { // update existing system property for (SystemProperty sysProperty : param.getSystemProperty()) { if (sysProperty.getName().equals(propName)) { Transaction t = Transaction.getTransaction(param); sysProperty = t.enroll(sysProperty); sysProperty.setValue(properties.getProperty(propName)); return sysProperty; } } // create system-property SystemProperty newSysProp = param.createChild(SystemProperty.class); newSysProp.setName(propName); newSysProp.setValue(properties.getProperty(propName)); param.getSystemProperty().add(newSysProp); return newSysProp; } }, spb);
if (!c.getName().equals(DAS_CONFIG)) { SystemPropertyBag bag = c; String httpVal = bag.getSystemProperty(HTTP).getValue(); if (httpVal != null) { PREFIX = httpVal.substring(0, httpVal.length() - 4);
if (!c.getName().equals(DAS_CONFIG)) { SystemPropertyBag bag = c; String httpVal = bag.getSystemProperty(HTTP).getValue(); if (httpVal != null) { PREFIX = httpVal.substring(0, httpVal.length() - 4);
if (!s.getName().equals(DAS)) { SystemPropertyBag bag = s; if (bag.getSystemProperty(HTTP) != null) { final String httpVal = bag.getSystemProperty(HTTP).getValue(); if (httpVal != null) { PREFIX = httpVal.substring(0, httpVal.length() - 5);
if (!s.getName().equals(DAS)) { SystemPropertyBag bag = s; if (bag.getSystemProperty(HTTP) != null) { final String httpVal = bag.getSystemProperty(HTTP).getValue(); if (httpVal != null) { PREFIX = httpVal.substring(0, httpVal.length() - 5);
public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag) throws TransactionFailure, PropertyVetoException { for (ConfigCustomizationToken token : tokens) { if (!bag.containsProperty(token.getName())) { SystemProperty prop = bag.createChild(SystemProperty.class); prop.setName(token.getName()); prop.setDescription(token.getDescription()); prop.setValue(token.getValue()); bag.getSystemProperty().add(prop); } } }
spb.getSystemProperty(sysPropName).getValue().equals(properties.getProperty(propName))) { continue;
final ActionReport report = context.getActionReport(); try { List<SystemProperty> sysProps = spb.getSystemProperty(); int length = 0; if (sysProps.isEmpty()) {