Fix more API classes using comma-separated configs (and ensure they all use getArrayProperty)

This commit is contained in:
Tim Donohue
2016-02-25 16:49:14 -06:00
parent f22a9fe6af
commit 9317f341e1
10 changed files with 148 additions and 160 deletions

View File

@@ -93,7 +93,7 @@ public class IPAuthentication implements AuthenticationMethod
if (nameParts.length == 2)
{
addMatchers(nameParts[1], DSpaceServicesFactory.getInstance().getConfigurationService().getProperty(propName));
addMatchers(nameParts[1], DSpaceServicesFactory.getInstance().getConfigurationService().getArrayProperty(propName));
}
else
{
@@ -111,11 +111,9 @@ public class IPAuthentication implements AuthenticationMethod
* @param ipRanges
* IP ranges
*/
protected void addMatchers(String groupName, String ipRanges)
protected void addMatchers(String groupName, String[] ipRanges)
{
String[] ranges = ipRanges.split("\\s*,\\s*");
for (String entry : ranges)
for (String entry : ipRanges)
{
try
{