Package org.azd.wiki.pagestats
Class PageStatsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.wiki.pagestats.PageStatsRequestBuilder
Provides functionality to work with Wiki page stats Api.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionPageStatsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionReturns page detail corresponding to Page ID.Returns page detail corresponding to Page ID.Returns page detail corresponding to Page ID.Returns page detail corresponding to Page ID.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
PageStatsRequestBuilder
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
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.
-