Class BitBucketRepositoriesSearch
- java.lang.Object
-
- jetbrains.buildServer.vcshostings.bbcloud.BitBucketRepositoriesSearch
-
- All Implemented Interfaces:
VcsSearch<VcsRepositories>
public class BitBucketRepositoriesSearch extends Object implements VcsSearch<VcsRepositories>
-
-
Constructor Summary
Constructors Constructor Description BitBucketRepositoriesSearch(BitbucketClient client, OAuthToken token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitBucketVcsRepositoriesget()Obtains a list of entities from a VCS hosting serviceBitBucketRepositoriesSearchpage(String pageId)The ID of the page is assumed to be a query string of a URL returned by BitBucket including the `?` character, encoded in url-safe Base64.BitBucketRepositoriesSearchpageSize(int pageSize)Sets custom page size for the resultsBitBucketRepositoriesSearchsearch(String searchString)Sets a search string (if supported).
-
-
-
Constructor Detail
-
BitBucketRepositoriesSearch
public BitBucketRepositoriesSearch(BitbucketClient client, OAuthToken token)
-
-
Method Detail
-
search
public BitBucketRepositoriesSearch search(@NotNull String searchString)
Description copied from interface:VcsSearchSets a search string (if supported). The search string is matched across entity names- Specified by:
searchin interfaceVcsSearch<VcsRepositories>- Parameters:
searchString- search string, case-insensitive- Returns:
- the same object
-
pageSize
public BitBucketRepositoriesSearch pageSize(int pageSize)
Description copied from interface:VcsSearchSets custom page size for the results- Specified by:
pageSizein interfaceVcsSearch<VcsRepositories>- Parameters:
pageSize- custom page size- Returns:
- the same object
-
page
public BitBucketRepositoriesSearch page(@NotNull String pageId)
The ID of the page is assumed to be a query string of a URL returned by BitBucket including the `?` character, encoded in url-safe Base64.If current builder already has page size or search query set, they will be checked against those present in the pageId. If not matching, pageId has lower priority and will be ignored (as in such a case the ID comes from another paged request, and modification of its parameters may lead to unpredictable search results).
- Specified by:
pagein interfaceVcsSearch<VcsRepositories>- Parameters:
pageId- page id in form of a parameter string of an url returned by BitBucket as the url of the next page.- Returns:
-
get
public BitBucketVcsRepositories get()
Description copied from interface:VcsSearchObtains a list of entities from a VCS hosting service- Specified by:
getin interfaceVcsSearch<VcsRepositories>- Returns:
- list of repositories with some additional information
-
-