Class WorkItemRevisionsRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.workitemtracking.revisions.WorkItemRevisionsRequestBuilder

public class WorkItemRevisionsRequestBuilder extends BaseRequestBuilder
Provides functionality to work with Work item revisions Api.
  • Constructor Details

    • WorkItemRevisionsRequestBuilder

      public WorkItemRevisionsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential)
      Instantiates a new RequestBuilder instance and sets the default values.
      Parameters:
      organizationUrl - Represents organization location request url.
      accessTokenCredential - Access token credential object.
  • Method Details

    • getAsync

      public CompletableFuture<WorkItem> getAsync(int id, int revisionNumber) throws AzDException
      Returns a fully hydrated work item for the requested revision
      Parameters:
      id - ID of the work item.
      revisionNumber - Revision number of work item to retrieve.
      Returns:
      WorkItem object WorkItem
      Throws:
      AzDException - Default Api exception handler.
    • getAsync

      public CompletableFuture<WorkItem> getAsync(int id, int revisionNumber, WorkItemExpand expand) throws AzDException
      Returns a fully hydrated work item for the requested revision
      Parameters:
      id - ID of the work item.
      revisionNumber - Revision number of work item to retrieve.
      expand - Expands the work item fields.
      Returns:
      WorkItem object WorkItem
      Throws:
      AzDException - Default Api exception handler.
    • listAsync

      public CompletableFuture<WorkItemList> listAsync(int id) throws AzDException
      Returns the list of fully hydrated work item revisions, paged.
      Parameters:
      id - ID of the work item.
      Returns:
      Collection of work item WorkItemList
      Throws:
      AzDException - Default Api exception handler.
    • listAsync

      Returns the list of fully hydrated work item revisions, paged.
      Parameters:
      id - ID of the work item.
      requestConfiguration - Represents the query parameters.
      Returns:
      Collection of work item WorkItemList
      Throws:
      AzDException - Default Api exception handler.
    • get

      public WorkItem get(int id, int revisionNumber) throws AzDException
      Returns a fully hydrated work item for the requested revision
      Parameters:
      id - ID of the work item.
      revisionNumber - Revision number of work item to retrieve.
      Returns:
      WorkItem object WorkItem
      Throws:
      AzDException - Default Api exception handler.
    • get

      public WorkItem get(int id, int revisionNumber, WorkItemExpand expand) throws AzDException
      Returns a fully hydrated work item for the requested revision
      Parameters:
      id - ID of the work item.
      revisionNumber - Revision number of work item to retrieve.
      expand - Expands the work item fields.
      Returns:
      WorkItem object WorkItem
      Throws:
      AzDException - Default Api exception handler.
    • list

      public WorkItemList list(int id) throws AzDException
      Returns the list of fully hydrated work item revisions, paged.
      Parameters:
      id - ID of the work item.
      Returns:
      Collection of work item WorkItemList
      Throws:
      AzDException - Default Api exception handler.
    • list

      public WorkItemList list(int id, Consumer<WorkItemRevisionsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException
      Returns the list of fully hydrated work item revisions, paged.
      Parameters:
      id - ID of the work item.
      requestConfiguration - Represents the query parameters.
      Returns:
      Collection of work item WorkItemList
      Throws:
      AzDException - Default Api exception handler.