Interface GitLabClient
-
- All Known Implementing Classes:
GitLabClientImpl
public interface GitLabClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pair<JsonAccessToken,JsonUser>
completeAuthorization(String clientId, String secret, String code, String redirectUrl)
String
getAuthorizeUrl(String clientId, String redirectUrl, String state)
BufferedImage
getAvatar(String email, String accessToken)
List<GitLabBranch>
getBranchesForRepository(RefreshableToken token, String repositoryName)
JsonUser
getGitLabUser(String accessToken)
List<JsonGroup>
getGitLabUserGroups(String accessToken)
String
getRedirectUri(OAuthConnectionDescriptor connectionDescriptor)
List<GitLabRepositoryOwner>
getRepositoriesByOwners(RefreshableToken token)
Pair<List<GitLabRepository>,String>
getRepositoriesPage(RefreshableToken token, String pageId, String pageSize, String searchQuery)
GitLabRepository
getRepository(RefreshableToken token, String repositoryName)
JsonAccessToken
refreshToken(String clientId, String secret, String refreshToken, String redirectUrl)
-
-
-
Method Detail
-
getRepositoriesByOwners
List<GitLabRepositoryOwner> getRepositoriesByOwners(@NotNull RefreshableToken token)
-
getRepository
GitLabRepository getRepository(@NotNull RefreshableToken token, @NotNull String repositoryName)
-
completeAuthorization
Pair<JsonAccessToken,JsonUser> completeAuthorization(@NotNull String clientId, @NotNull String secret, @NotNull String code, @NotNull String redirectUrl) throws Exception
- Throws:
Exception
-
refreshToken
JsonAccessToken refreshToken(@NotNull String clientId, @NotNull String secret, @NotNull String refreshToken, @NotNull String redirectUrl)
-
getGitLabUser
@NotNull JsonUser getGitLabUser(@NotNull String accessToken) throws FailureToObtainTokenException
- Throws:
FailureToObtainTokenException
-
getAuthorizeUrl
String getAuthorizeUrl(@NotNull String clientId, @NotNull String redirectUrl, @NotNull String state)
-
getRedirectUri
@NotNull String getRedirectUri(@NotNull OAuthConnectionDescriptor connectionDescriptor)
-
getAvatar
@Nullable BufferedImage getAvatar(@Nullable String email, @NotNull String accessToken)
-
getBranchesForRepository
@NotNull List<GitLabBranch> getBranchesForRepository(RefreshableToken token, String repositoryName)
-
getRepositoriesPage
@NotNull Pair<List<GitLabRepository>,String> getRepositoriesPage(@NotNull RefreshableToken token, @Nullable String pageId, @Nullable String pageSize, @Nullable String searchQuery)
- Returns:
- pair of all repositories from the specified page and the id of the next page (or null if no next page).
-
-