Class OAuthConnectionsManager


  • @Deprecated
    public class OAuthConnectionsManager
    extends Object
    Deprecated.
    Deprecated, please, use the ProjectConnectionsManager wherever possible
    • 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 with
        connectionId - 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 with
        tokenStorageId - 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 project
        providerType - 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 project
        providerType - type of OAuth provider
        requiredCapabilities - 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
      • 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.
      • getAdditionalStateParameters

        @NotNull
        public Map<String,​String> getAdditionalStateParameters​(@NotNull
                                                                     OAuthConnectionDescriptor connection,
                                                                     @NotNull
                                                                     javax.servlet.http.HttpServletRequest oauthRequest)
        Deprecated.