Interface ConnectionCallback
-
- All Superinterfaces:
TeamCityExtension
- All Known Implementing Classes:
SpaceTemporaryConnectionCallback
public interface ConnectionCallback extends TeamCityExtension
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
acceptIfPossible(OAuthConnectionDescriptor connection, BiConsumer<OAuthConnectionDescriptor,ConnectionCallback> action)
boolean
acceptsConnectionType(String providerType)
Determins if the concrete implementation can handle connections of the given provider type.void
onSubProjectSetup(OAuthConnectionDescriptor connection, SProject newProject)
Called when a subproject is in the process of being set up, which is derived from a connection.
-
-
-
Method Detail
-
acceptsConnectionType
boolean acceptsConnectionType(@NotNull String providerType)
Determins if the concrete implementation can handle connections of the given provider type.- Parameters:
providerType
- type ofOAuthProvider
- Returns:
- true if connections can be handled, false otherwise.
-
onSubProjectSetup
void onSubProjectSetup(@NotNull OAuthConnectionDescriptor connection, @NotNull SProject newProject)
Called when a subproject is in the process of being set up, which is derived from a connection.- Parameters:
connection
- affected connectionnewProject
- the new project
-
acceptIfPossible
default void acceptIfPossible(@Nullable OAuthConnectionDescriptor connection, BiConsumer<OAuthConnectionDescriptor,ConnectionCallback> action)
-
-