public class ProjectsApiImpl extends Object implements ProjectsApi
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_HOST |
PATH_PROJECTS_FIND_ALL, PATH_PROJECTS_FIND_ONE, PATH_PROJECTS_INSERT, PATH_PROJECTS_REMOVE, PATH_PROJECTS_UPDATE| Constructor and Description |
|---|
ProjectsApiImpl(org.springframework.web.client.RestTemplate restTemplate,
int port,
UserCredentialsSupplier userCredentialsSupplier) |
ProjectsApiImpl(org.springframework.web.client.RestTemplate restTemplate,
String host,
UserCredentialsSupplier userCredentialsSupplier) |
| Modifier and Type | Method and Description |
|---|---|
List<Project> |
findAll() |
Project |
findOne(String projectId) |
protected org.springframework.http.HttpHeaders |
headers() |
Project |
insert(String projectId) |
void |
remove(String projectId) |
Project |
update(Project project) |
public static final String DEFAULT_HOST
public ProjectsApiImpl(org.springframework.web.client.RestTemplate restTemplate,
String host,
UserCredentialsSupplier userCredentialsSupplier)
public ProjectsApiImpl(org.springframework.web.client.RestTemplate restTemplate,
int port,
UserCredentialsSupplier userCredentialsSupplier)
public List<Project> findAll()
findAll in interface ProjectsApipublic Project findOne(String projectId)
findOne in interface ProjectsApipublic Project insert(String projectId)
insert in interface ProjectsApipublic Project update(Project project)
update in interface ProjectsApipublic void remove(String projectId)
remove in interface ProjectsApiprotected org.springframework.http.HttpHeaders headers()
Copyright © 2017. All rights reserved.