public class ProjectComponentsApi extends Object
| Constructor and Description |
|---|
ProjectComponentsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Component> |
createComponent(Component component,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create component
Creates a component.
|
io.reactivex.Completable |
deleteComponent(String id,
Optional<String> moveIssuesTo,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete component
Deletes a component.
|
io.reactivex.Single<Component> |
getComponent(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get component
Returns a component.
|
io.reactivex.Single<ComponentIssuesCount> |
getComponentRelatedIssues(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get component issues count
Returns the counts of issues assigned to the component.
|
io.reactivex.Single<List<Component>> |
getProjectComponents(String projectIdOrKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project components
Returns all components in a project.
|
io.reactivex.Single<PageBeanComponentWithIssueCount> |
getProjectComponentsPaginated(String projectIdOrKey,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<String> orderBy,
Optional<String> query,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project components paginated
Returns a [paginated](#pagination) list of all components in a project.
|
io.reactivex.Single<Component> |
updateComponent(String id,
Component component,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update component
Updates a component.
|
public ProjectComponentsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Component> createComponent(Component component, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
component - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable deleteComponent(String id, Optional<String> moveIssuesTo, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the component. (required)moveIssuesTo - The ID of the component to replace the deleted component. If this value is null no replacement is made. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Component> getComponent(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the component. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<ComponentIssuesCount> getComponentRelatedIssues(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the component. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<List<Component>> getProjectComponents(String projectIdOrKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The project ID or project key (case sensitive). (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PageBeanComponentWithIssueCount> getProjectComponentsPaginated(String projectIdOrKey, Optional<Long> startAt, Optional<Integer> maxResults, Optional<String> orderBy, Optional<String> query, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The project ID or project key (case sensitive). (required)startAt - The index of the first item to return in a page of results (page offset). (optional, default to 0l)maxResults - The maximum number of items to return per page. (optional, default to 50)orderBy - [Order](#ordering) the results by a field: * `description` Sorts by the component description. * `issueCount` Sorts by the count of issues associated with the component. * `lead` Sorts by the user key of the component's project lead. * `name` Sorts by component name. (optional)query - Filter the results using a literal string. Components with a matching `name` or `description` are returned (case insensitive). (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Component> updateComponent(String id, Component component, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the component. (required)component - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.