Class GitLabCEorEEOAuthProvider
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.OAuthProvider
-
- jetbrains.buildServer.serverSide.oauth.gitlab.GitLabComOAuthProvider
-
- jetbrains.buildServer.serverSide.oauth.gitlab.GitLabCEorEEOAuthProvider
-
- All Implemented Interfaces:
ConnectionProvider
,ServerExtension
,TeamCityExtension
public class GitLabCEorEEOAuthProvider extends GitLabComOAuthProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
GitLabCEorEEOAuthProvider.GitLabCEorEEPropertiesProcessor
-
Nested classes/interfaces inherited from class jetbrains.buildServer.serverSide.oauth.gitlab.GitLabComOAuthProvider
GitLabComOAuthProvider.GitLabComPropertiesProcessor
-
Nested classes/interfaces inherited from class jetbrains.buildServer.serverSide.oauth.OAuthProvider
OAuthProvider.CapabilityResolver
-
-
Field Summary
Fields Modifier and Type Field Description static String
DISPLAY_NAME
static String
TYPE
-
Fields inherited from class jetbrains.buildServer.serverSide.oauth.OAuthProvider
COMPOUND_STORAGE_ID_PREFIX, myCapabilityResolvers, NOPE
-
-
Constructor Summary
Constructors Constructor Description GitLabCEorEEOAuthProvider(GitLabClientFactory clientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
PropertiesProcessor
getPropertiesProcessor()
String
getProviderTypeForUniqueRedirect()
Returns the provider type to be included in unique redirect URLs.String
getType()
boolean
isUniqueRedirectsSupported()
Whether this provider supports the creation of unique redirect URLs.-
Methods inherited from class jetbrains.buildServer.serverSide.oauth.gitlab.GitLabComOAuthProvider
describeConnection, getClientId, getClientSecret, getEditParametersUrl, getFallbackRedirectPath, getServerUrl, getServerUrl, getTokenPopupPath, getTokenStorageId, getTokenStorageParameters, getTokenUsageParamsForVcsRoot, isAcquiringTokenSupported, isTokenRefreshSupported, refreshToken
-
Methods inherited from class jetbrains.buildServer.serverSide.oauth.OAuthProvider
applyAccessibleEntities, buildCompoundTokenStorageId, connectionHasCapability, connectionIsHidden, describeConnectionForUI, getAccessibleEntitiesEndpoint, getAdditionalUIConnectionDescription, getCapabilitiesUrl, getCapabilityResolver, getDefaultProperties, getScope, getScopeForIntent, getSupportedTokenIntentTypes, isAccessibleEntitiesSupported, isAcquiringTokenSupportedForConnection, isAvailable, isCapabilitiesEnabledForProject, isCapabilitiesSupported, isSuitableToken, registerCapabilityResolver, testConnection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.connections.ConnectionProvider
describeConnection, getDisplayOrderRank, getTypeForUrl
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
DISPLAY_NAME
public static final String DISPLAY_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GitLabCEorEEOAuthProvider
public GitLabCEorEEOAuthProvider(@NotNull GitLabClientFactory clientFactory)
-
-
Method Detail
-
getType
@NotNull public String getType()
- Specified by:
getType
in interfaceConnectionProvider
- Overrides:
getType
in classGitLabComOAuthProvider
- Returns:
- String used to identify the Connection Provider type. All Connection features store this property in parameters.
-
getDisplayName
@NotNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceConnectionProvider
- Overrides:
getDisplayName
in classGitLabComOAuthProvider
- Returns:
- human friendly provider name
-
getPropertiesProcessor
@Nullable public PropertiesProcessor getPropertiesProcessor()
- Specified by:
getPropertiesProcessor
in interfaceConnectionProvider
- Overrides:
getPropertiesProcessor
in classGitLabComOAuthProvider
- Returns:
- processor for connection provider parameters. Properties processor performs validation function and is called when connection is edited or created.
-
isUniqueRedirectsSupported
public boolean isUniqueRedirectsSupported()
Description copied from class:OAuthProvider
Whether this provider supports the creation of unique redirect URLs. Providers wanting to support this feature should return true here and ensure that the respective access token controllers are registered viaBaseAccessTokenController.registerController(WebControllerManager, String)
. Also, the two related methodsOAuthProvider.getProviderTypeForUniqueRedirect()
andOAuthProvider.getFallbackRedirectPath()
must be implemented.- Overrides:
isUniqueRedirectsSupported
in classOAuthProvider
- Returns:
- false, by default
-
getProviderTypeForUniqueRedirect
@NotNull public String getProviderTypeForUniqueRedirect()
Description copied from class:OAuthProvider
Returns the provider type to be included in unique redirect URLs.- Overrides:
getProviderTypeForUniqueRedirect
in classOAuthProvider
- Returns:
- URL-compatible provider type
- See Also:
OAuthProvider.isUniqueRedirectsSupported()
-
-