All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.taskadapter.redmineapi.internal.DirectObjectsSearcher Maven / Gradle / Ivy

Go to download

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy