com.taskadapter.redmineapi.internal.DirectObjectsSearcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redmine-java-api Show documentation
Show all versions of redmine-java-api Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
This project was originally a part of Task Adapter application (http://www.taskadapter.com)
and then was open-sourced.
The newest version!
package com.taskadapter.redmineapi.internal;
import com.taskadapter.redmineapi.RedmineException;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
public final class DirectObjectsSearcher {
public static ResultsWrapper getObjectsListNoPaging(Transport transport, Map map, Class classRef) throws RedmineException {
final Set set = map.entrySet()
.stream()
.map(param -> new RequestParam(param.getKey(), param.getValue()))
.collect(Collectors.toSet());
return transport.getObjectsListNoPaging(classRef, set);
}
}