Interface OAuthClientRegistrationPersistenceService<P extends OAuthClientRegistrationWrapper>

    • Method Detail

      • findAll

        org.springframework.data.domain.Page<P> findAll​(@Nullable
                                                        org.springframework.data.domain.Pageable pageable)
        Find all client registrations.
        Parameters:
        pageable - the pageable
        Returns:
        A page of client registrations
      • findById

        Optional<P> findById​(String id)
        Find a client registration by its system ID
        Parameters:
        id - The client registration system ID
        Returns:
        An optional of client registration
      • findById

        Optional<P> findById​(String id,
                             String tenantId)
        Find a client registration by its system ID and tenant ID.
        Parameters:
        id - The client registration system ID
        tenantId - ID of the owning tenant.
        Returns:
        An optional of client registration
      • existsById

        boolean existsById​(String id)
        Check if a client registration exists by its system ID
        Parameters:
        id - The client registration system ID
        Returns:
        whether or not the client registration exists
      • replace

        P replace​(String id,
                  P clientRegistration)
        Replace a client registration
        Parameters:
        id - The id of the server to replace
        clientRegistration - The replacement
        Returns:
        The replaced client registration
      • create

        P create​(P clientRegistration)
        Create a new client registration
        Parameters:
        clientRegistration - The client registration to create
        Returns:
        The created client registration.
      • delete

        void delete​(P clientRegistration)
        Delete a client registration
        Parameters:
        clientRegistration - The client registration to delete.
      • deleteById

        void deleteById​(String id)
        Delete a client registration
        Parameters:
        id - The id of the client registration to delete.
      • save

        P save​(P clientRegistration)
        Save the OAuthClientRegistrationWrapper to the database
        Parameters:
        clientRegistration - Instance to persist
        Returns:
        Persited client registration
      • findAllByTenantId

        org.springframework.data.domain.Page<P> findAllByTenantId​(String tenantId,
                                                                  @Nullable
                                                                  org.springframework.data.domain.Pageable pageable)
        Find all OAuthClientRegistrationWrapper objects for the current tenant
        Parameters:
        tenantId - the tenant ID
        pageable - the pageable
        Returns:
        All registrations for the tenant