com.atlassian.jira.rest.client.api
Interface ComponentRestClient


public interface ComponentRestClient

The com.atlassian.jira.rest.client.api handling component resources

Since:
v2.0

Method Summary
 com.atlassian.util.concurrent.Promise<Component> createComponent(java.lang.String projectKey, ComponentInput componentInput)
           
 com.atlassian.util.concurrent.Promise<Component> getComponent(java.net.URI componentUri)
           
 com.atlassian.util.concurrent.Promise<java.lang.Integer> getComponentRelatedIssuesCount(java.net.URI componentUri)
           
 com.atlassian.util.concurrent.Promise<java.lang.Void> removeComponent(java.net.URI componentUri, java.net.URI moveIssueToComponentUri)
           
 com.atlassian.util.concurrent.Promise<Component> updateComponent(java.net.URI componentUri, ComponentInput componentInput)
           
 

Method Detail

getComponent

com.atlassian.util.concurrent.Promise<Component> getComponent(java.net.URI componentUri)
Parameters:
componentUri - URI to selected component resource
Returns:
complete information about selected component
Throws:
RestClientException - in case of problems (connectivity, malformed messages, etc.)

createComponent

com.atlassian.util.concurrent.Promise<Component> createComponent(java.lang.String projectKey,
                                                                 ComponentInput componentInput)

updateComponent

com.atlassian.util.concurrent.Promise<Component> updateComponent(java.net.URI componentUri,
                                                                 ComponentInput componentInput)

removeComponent

com.atlassian.util.concurrent.Promise<java.lang.Void> removeComponent(java.net.URI componentUri,
                                                                      @Nullable
                                                                      java.net.URI moveIssueToComponentUri)

getComponentRelatedIssuesCount

com.atlassian.util.concurrent.Promise<java.lang.Integer> getComponentRelatedIssuesCount(java.net.URI componentUri)


Copyright © 2015 Atlassian. All Rights Reserved.