Class OAuthConnectionsManager
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.OAuthConnectionsManager
-
@Deprecated public class OAuthConnectionsManager extends Object
Deprecated.Deprecated, please, use the ProjectConnectionsManager wherever possible
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OAuthConnectionsManager.OAuthStateParametersProvider
Deprecated.static interface
OAuthConnectionsManager.RedirectUrlProcessor
Deprecated.
-
Constructor Summary
Constructors Constructor Description OAuthConnectionsManager(ExtensionHolder extensionHolder)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OAuthConnectionDescriptor
addConnection(SProject project, String providerType, Map<String,String> parameters)
Deprecated.void
addStateParametersProvider(OAuthConnectionsManager.OAuthStateParametersProvider parametersProvider)
Deprecated.OAuthConnectionDescriptor
findConnectionById(SProject project, String connectionId)
Deprecated.Searches for OAuth connection by id starting with specified project.OAuthConnectionDescriptor
findConnectionByTokenStorageId(SProject project, String tokenStorageId)
Deprecated.Searches for OAuth connection by its application id starting with specified project.Map<String,String>
getAdditionalStateParameters(OAuthConnectionDescriptor connection)
Deprecated.Map<String,String>
getAdditionalStateParameters(OAuthConnectionDescriptor connection, javax.servlet.http.HttpServletRequest oauthRequest)
Deprecated.List<OAuthConnectionDescriptor>
getAvailableConnections(SProject project)
Deprecated.Returns own project connections and all connections from parent projects.List<OAuthConnectionDescriptor>
getAvailableConnectionsOfType(SProject project, String providerType)
Deprecated.Returns all connections of specified type available for current project.List<OAuthConnectionDescriptor>
getAvailableConnectionsOfType(SProject project, String providerType, Set<ConnectionCapability> requiredCapabilities)
Deprecated.Returns all connections of specified type available for current project.ExtensionHolder
getExtensionHolder()
Deprecated.Collection<OAuthProvider>
getOAuthProviders()
Deprecated.List<OAuthConnectionDescriptor>
getOwnAvailableConnections(SProject project)
Deprecated.Returns own project connectionsvoid
removeConnection(SProject project, String connectionId)
Deprecated.void
setRedirectUrlProcessor(OAuthConnectionsManager.RedirectUrlProcessor redirectUrlProcessor)
Deprecated.boolean
updateConnection(SProject project, String connectionId, String providerType, Map<String,String> parameters)
Deprecated.String
updateRedirectUrlIfNeeded(OAuthConnectionDescriptor connection, String redirectUrl)
Deprecated.
-
-
-
Constructor Detail
-
OAuthConnectionsManager
public OAuthConnectionsManager(@NotNull ExtensionHolder extensionHolder)
Deprecated.
-
-
Method Detail
-
findConnectionById
@Nullable public OAuthConnectionDescriptor findConnectionById(@NotNull SProject project, @NotNull String connectionId)
Deprecated.Searches for OAuth connection by id starting with specified project. Search is performed in specified projects and all its parents until connection is found.- Parameters:
project
- project to start withconnectionId
- id of OAuth connection- Returns:
- the first found connection or null
-
findConnectionByTokenStorageId
@Nullable public OAuthConnectionDescriptor findConnectionByTokenStorageId(@NotNull SProject project, @NotNull String tokenStorageId)
Deprecated.Searches for OAuth connection by its application id starting with specified project. Search is performed in specified projects and all its parents until connection is found.- Parameters:
project
- project to start withtokenStorageId
- token storage id, can be based on a client/application id of an OAuth connection, or just a connection id- Returns:
- the first found connection or null
-
getAvailableConnectionsOfType
@NotNull public List<OAuthConnectionDescriptor> getAvailableConnectionsOfType(@NotNull SProject project, @NotNull String providerType)
Deprecated.Returns all connections of specified type available for current project. These include own project connections and all connections from parent projects.- Parameters:
project
- current projectproviderType
- type of OAuth provider- Returns:
- all found connections
-
getAvailableConnectionsOfType
@NotNull public List<OAuthConnectionDescriptor> getAvailableConnectionsOfType(@NotNull SProject project, @NotNull String providerType, @NotNull Set<ConnectionCapability> requiredCapabilities)
Deprecated.Returns all connections of specified type available for current project. These include own project connections and all connections from parent projects. Only connections with the required capabilities will be considered. Hidden connections will be filtered out.- Parameters:
project
- current projectproviderType
- type of OAuth providerrequiredCapabilities
- must have capabilities of the connections- Returns:
- all found connections
-
getAvailableConnections
@NotNull public List<OAuthConnectionDescriptor> getAvailableConnections(@NotNull SProject project)
Deprecated.Returns own project connections and all connections from parent projects.- Parameters:
project
- current project- Returns:
- all connections
-
getOwnAvailableConnections
@NotNull public List<OAuthConnectionDescriptor> getOwnAvailableConnections(@NotNull SProject project)
Deprecated.Returns own project connections- Parameters:
project
- current project- Returns:
- all connections of a current project
-
addConnection
@NotNull public OAuthConnectionDescriptor addConnection(@NotNull SProject project, @NotNull String providerType, @NotNull Map<String,String> parameters)
Deprecated.
-
updateConnection
public boolean updateConnection(@NotNull SProject project, @NotNull String connectionId, @NotNull String providerType, @NotNull Map<String,String> parameters)
Deprecated.
-
removeConnection
public void removeConnection(@NotNull SProject project, @NotNull String connectionId)
Deprecated.
-
getOAuthProviders
@NotNull public Collection<OAuthProvider> getOAuthProviders()
Deprecated.- Returns:
- all available OAuth providers
-
getExtensionHolder
@NotNull public ExtensionHolder getExtensionHolder()
Deprecated.
-
setRedirectUrlProcessor
public void setRedirectUrlProcessor(@NotNull OAuthConnectionsManager.RedirectUrlProcessor redirectUrlProcessor)
Deprecated.
-
addStateParametersProvider
public void addStateParametersProvider(@NotNull OAuthConnectionsManager.OAuthStateParametersProvider parametersProvider)
Deprecated.
-
updateRedirectUrlIfNeeded
@NotNull public String updateRedirectUrlIfNeeded(@NotNull OAuthConnectionDescriptor connection, @NotNull String redirectUrl)
Deprecated.
-
getAdditionalStateParameters
@NotNull public Map<String,String> getAdditionalStateParameters(@NotNull OAuthConnectionDescriptor connection)
Deprecated.
-
getAdditionalStateParameters
@NotNull public Map<String,String> getAdditionalStateParameters(@NotNull OAuthConnectionDescriptor connection, @NotNull javax.servlet.http.HttpServletRequest oauthRequest)
Deprecated.
-
-