Example usage for com.liferay.portal.kernel.util PropertiesUtil getProperties

List of usage examples for com.liferay.portal.kernel.util PropertiesUtil getProperties

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PropertiesUtil getProperties.

Prototype

public static Properties getProperties(Properties properties, String prefix, boolean removePrefix) 

Source Link

Usage

From source file:com.sqli.liferay.imex.core.group.GroupOptions.java

License:Open Source License

protected Map<String, String[]> buildParameterMap(Properties props, String prefix) {

    boolean removePrefix = true;
    Properties parameterProperties = PropertiesUtil.getProperties(props, prefix, removePrefix);

    Map<String, String[]> parameterMap = new HashMap<String, String[]>();
    for (Map.Entry entry : parameterProperties.entrySet()) {
        String key = (String) entry.getKey();
        String[] value = ((String) entry.getValue()).split(",");
        parameterMap.put(key, value);/*w w w. ja  va 2 s  .c o  m*/
    }

    return parameterMap;
}