Class PageStatsRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.wiki.pagestats.PageStatsRequestBuilder

public class PageStatsRequestBuilder extends BaseRequestBuilder
Provides functionality to work with Wiki page stats Api.
  • Constructor Details

    • PageStatsRequestBuilder

      public PageStatsRequestBuilder(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<WikiPageDetail> getAsync(int pageId, String wikiIdentifier) throws AzDException
      Returns page detail corresponding to Page ID.
      Parameters:
      pageId - Wiki page ID.
      wikiIdentifier - Wiki ID or wiki name.
      Returns:
      Wiki page detail object WikiPageDetail
      Throws:
      AzDException - Default Api Exception handler.
    • getAsync

      public CompletableFuture<WikiPageDetail> getAsync(int pageId, String wikiIdentifier, int pageViewsForDays) throws AzDException
      Returns page detail corresponding to Page ID.
      Parameters:
      pageId - Wiki page ID.
      wikiIdentifier - Wiki ID or wiki name.
      pageViewsForDays - last N days from the current day for which page views is to be returned. It's inclusive of current day.
      Returns:
      Wiki page detail object WikiPageDetail
      Throws:
      AzDException - Default Api Exception handler.
    • get

      public WikiPageDetail get(int pageId, String wikiIdentifier) throws AzDException
      Returns page detail corresponding to Page ID.
      Parameters:
      pageId - Wiki page ID.
      wikiIdentifier - Wiki ID or wiki name.
      Returns:
      Wiki page detail object WikiPageDetail
      Throws:
      AzDException - Default Api Exception handler.
    • get

      public WikiPageDetail get(int pageId, String wikiIdentifier, int pageViewsForDays) throws AzDException
      Returns page detail corresponding to Page ID.
      Parameters:
      pageId - Wiki page ID.
      wikiIdentifier - Wiki ID or wiki name.
      pageViewsForDays - last N days from the current day for which page views is to be returned. It's inclusive of current day.
      Returns:
      Wiki page detail object WikiPageDetail
      Throws:
      AzDException - Default Api Exception handler.