@Override public String getPropertyValue(PropertyBag me, String name, String defaultValue) { Property prop = getProperty(me, name); if (prop != null) { return prop.getValue(); } return defaultValue; }
public static String getPropertyValue(PropertyBag me, String name, String defaultValue) { Property prop = getProperty(me, name); if (prop != null) { return prop.getValue(); } return defaultValue; } }
public static String getGroupMapping(AuthRealm me) { Property prop = me.getProperty("group-mapping"); //have to hard-code this, unfortunately :( if (prop != null) return prop.getValue(); return null; } }
@Override public Object run(AccessLog param) { param.setBufferSizeBytes(property.getValue()); return param; } }, service.getAccessLog());
@Override public Object run(AccessLog param) { param.setWriteIntervalSeconds(property.getValue()); return param; } }, service.getAccessLog());
@Override public Object run(AccessLog param) { param.setWriteIntervalSeconds(property.getValue()); return param; } }, service.getAccessLog());
@Override public String getPropertyValue(String name, String defaultValue) { final Property property = getProperty(name); if (property != null) { return property.getValue(); } return defaultValue; }
public static String getPropertyValue(PropertyBag me, String name, String defaultValue) { Property prop = getProperty(me, name); if (prop != null) { return prop.getValue(); } return defaultValue; } }
private String getValue(List<Property> list, String property) { final Iterator<Property> iterator = list.iterator(); while (iterator.hasNext()) { Property prop = iterator.next(); if (property.equals(prop.getName())) { iterator.remove(); return prop.getValue(); } } return null; }
private Properties transformProps(List<Property> domainProps) { Properties props = new Properties(); for (Property domainProp : domainProps) { props.setProperty(domainProp.getName(), domainProp.getValue()); } return props; } }
public static String getGroupMapping(AuthRealm me) { Property prop = me.getProperty("group-mapping"); //have to hard-code this, unfortunately :( if (prop != null) return prop.getValue(); return null; } }
@Override public Object run(AccessLog param) { param.setBufferSizeBytes(property.getValue()); return param; } }, service.getAccessLog());
private String getValue(List<Property> list, String property) { final Iterator<Property> iterator = list.iterator(); while (iterator.hasNext()) { Property prop = iterator.next(); if (property.equals(prop.getName())) { iterator.remove(); return prop.getValue(); } } return null; } }
private void checkForOrbPropertyValues(Properties props) { if (orbBean != null) { List<Property> orbBeanProps = orbBean.getProperty(); if (orbBeanProps != null) { for (int i = 0; i < orbBeanProps.size(); i++) { props.setProperty(orbBeanProps.get(i).getName(), orbBeanProps.get(i).getValue()); } } } }
private static File fileForProp(final Application instance, final String propName) { for (Property p : instance.getProperty()) { if (p.getName().equals(propName)) { return new File(URI.create(p.getValue())); } } return null; }
@Override public boolean contains(Object o) { if (!(o instanceof Property)) { return false; } Property prop = Property.class.cast(o); String value = delegate.getProperties().getProperty(prop.getName()); return value != null && value.equals(prop.getValue()); }
@Override public boolean add(Property e) { Property prop = Property.class.cast(e); Object old = delegate.getProperties().setProperty(prop.getName(), prop.getValue()); return old != null; }
public static String archiveType(final Application instance) { for (Property p : instance.getProperty()) { if (p.getName().equals(ARCHIVE_TYPE_PROP_NAME)) { return p.getValue(); } } return null; }
/** * Sets the alternate docroots of this web module from the given * "alternatedocroot_" properties. */ void setAlternateDocBases(List <Property> props) { if (props == null) { return; } for (Property prop : props) { parseAlternateDocBase(prop.getName(), prop.getValue()); } }
private void createDefaultNode(Domain d, Nodes nodes) throws TransactionFailure, PropertyVetoException { Property domainProp = d.getProperty("administrative.domain.name"); String domainName = domainProp.getValue(); Node node = nodes.createChild(Node.class); node.setName("localhost" + "-" + domainName); node.setType("CONFIG"); node.setNodeHost("localhost"); node.setInstallDir("${com.sun.aas.productRoot}"); nodes.getNode().add(node); } }