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

website.automate.manager.api.client.ScenarioRetrievalRemoteService Maven / Gradle / Ivy

There is a newer version: 0.8.2
Show newest version
package website.automate.manager.api.client;

import static java.util.Arrays.asList;

import java.util.List;

import website.automate.manager.api.client.model.Authentication;
import website.automate.manager.api.client.model.Scenario;
import website.automate.manager.api.client.support.RestTemplate;

public class ScenarioRetrievalRemoteService {

	private static final ScenarioRetrievalRemoteService INSTANCE = new ScenarioRetrievalRemoteService();
	
	public static ScenarioRetrievalRemoteService getInstance(){
		return INSTANCE;
	}
	
	private RestTemplate restTemplate = RestTemplate.getInstance();
	
	public List getScenariosByProjectIdAndPrincipal(String projectId, Authentication principal) {
		return asList(restTemplate.performGet(Scenario [].class, 
				"/public/project/" + projectId + "/scenario?profile=BRIEF", 
				principal));
	}
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy