return value;
}
private RepositoryGroupConfiguration readRepositoryGroupConfiguration( String prefix, Registry registry )
{
RepositoryGroupConfiguration value = new RepositoryGroupConfiguration();
//String id = registry.getString( prefix + "id", value.getId() );
List<String> idList = registry.getList( prefix + "id" );
String id = value.getId();
if (idList != null && !idList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = idList.size();i<size;i++)
{
sb.append( idList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
id = sb.toString();
}
value.setId( id );
//String mergedIndexPath = registry.getString( prefix + "mergedIndexPath", value.getMergedIndexPath() );
List<String> mergedIndexPathList = registry.getList( prefix + "mergedIndexPath" );
String mergedIndexPath = value.getMergedIndexPath();
if (mergedIndexPathList != null && !mergedIndexPathList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = mergedIndexPathList.size();i<size;i++)
{
sb.append( mergedIndexPathList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
mergedIndexPath = sb.toString();
}
value.setMergedIndexPath( mergedIndexPath );
int mergedIndexTtl = registry.getInt( prefix + "mergedIndexTtl", value.getMergedIndexTtl() );
value.setMergedIndexTtl( mergedIndexTtl );
java.util.List repositories = new java.util.ArrayList/*<String>*/();
repositories.addAll( registry.getList( prefix + "repositories.repository" ) );
value.setRepositories( repositories );
return value;
}