Class TfsAuthProvider
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.OAuthProvider
-
- jetbrains.buildServer.serverSide.oauth.tfs.TfsAuthProvider
-
- All Implemented Interfaces:
ConnectionProvider
,ServerExtension
,TeamCityExtension
public class TfsAuthProvider extends OAuthProvider
-
-
Nested Class Summary
-
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 TfsAuthProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
describeConnection(OAuthConnectionDescriptor connection)
String
getDisplayName()
int
getDisplayOrderRank()
Used as first rank when sorting providers for display purposes.String
getEditParametersUrl()
PropertiesProcessor
getPropertiesProcessor()
String
getType()
-
Methods inherited from class jetbrains.buildServer.serverSide.oauth.OAuthProvider
applyAccessibleEntities, buildCompoundTokenStorageId, connectionHasCapability, connectionIsHidden, describeConnectionForUI, getAccessibleEntitiesEndpoint, getAdditionalUIConnectionDescription, getCapabilitiesUrl, getCapabilityResolver, getDefaultProperties, getFallbackRedirectPath, getProviderTypeForUniqueRedirect, getScope, getScopeForIntent, getSupportedTokenIntentTypes, getTokenPopupPath, getTokenStorageId, getTokenStorageParameters, getTokenUsageParamsForVcsRoot, isAccessibleEntitiesSupported, isAcquiringTokenSupported, isAcquiringTokenSupportedForConnection, isAvailable, isCapabilitiesEnabledForProject, isCapabilitiesSupported, isSuitableToken, isTokenRefreshSupported, isUniqueRedirectsSupported, refreshToken, 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, 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
-
-
Method Detail
-
getType
@NotNull public String getType()
- Returns:
- String used to identify the Connection Provider type. All Connection features store this property in parameters.
-
getDisplayName
@NotNull public String getDisplayName()
- Returns:
- human friendly provider name
-
getEditParametersUrl
@Nullable public String getEditParametersUrl()
- Specified by:
getEditParametersUrl
in interfaceConnectionProvider
- Overrides:
getEditParametersUrl
in classOAuthProvider
- Returns:
- URL to edit connection parameters page
-
describeConnection
@NotNull public String describeConnection(@NotNull OAuthConnectionDescriptor connection)
- Overrides:
describeConnection
in classOAuthProvider
- Returns:
- human friendly description of OAuth connection
-
getPropertiesProcessor
@Nullable public PropertiesProcessor getPropertiesProcessor()
- Specified by:
getPropertiesProcessor
in interfaceConnectionProvider
- Overrides:
getPropertiesProcessor
in classOAuthProvider
- Returns:
- processor for connection provider parameters. Properties processor performs validation function and is called when connection is edited or created.
-
getDisplayOrderRank
public int getDisplayOrderRank()
Description copied from interface:ConnectionProvider
Used as first rank when sorting providers for display purposes. It is a way to (de-)prioritize specific providers.- Returns:
- 0 by default
-
-