Interface AuthorizationServerService<P extends AuthorizationServer>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      P create​(P authorizationServer)
      Create a new authorization server
      void delete​(P authorizationServer)
      Delete an authorization server
      void deleteById​(String id)
      Delete an authorization server
      boolean existsById​(String id)
      Check if an authorization server exists by its ID
      org.springframework.data.domain.Page<P> findAll​(org.springframework.data.domain.Pageable pageable)
      Find all authorization servers.
      org.springframework.data.domain.Page<P> findAllByTenantId​(String tenantId, org.springframework.data.domain.Pageable pageable)
      Find all authorization servers for a tenant.
      Optional<P> findById​(String id)
      Find an authorization server by its ID
      Optional<P> findByName​(String name)
      Find an authorization server by its name
      Optional<P> findByNameAndTenantId​(String name, String tenantId)
      Find an authorization server by its name and tenant id
      P replace​(String id, P authorizationServer)
      Replace an authorization server
      P save​(P authorizationServer)
      Save an authorization server
    • Method Detail

      • findAll

        org.springframework.data.domain.Page<P> findAll​(org.springframework.data.domain.Pageable pageable)
        Find all authorization servers.
        Parameters:
        pageable - the pageable
        Returns:
        A page of authorization servers
      • findAllByTenantId

        org.springframework.data.domain.Page<P> findAllByTenantId​(String tenantId,
                                                                  org.springframework.data.domain.Pageable pageable)
        Find all authorization servers for a tenant.
        Parameters:
        tenantId - the tenant ID
        pageable - the pageable
        Returns:
        a page of authorization servers for the tenant
      • findById

        Optional<P> findById​(String id)
        Find an authorization server by its ID
        Parameters:
        id - The authorization server ID
        Returns:
        An optional of authorization server
      • existsById

        boolean existsById​(String id)
        Check if an authorization server exists by its ID
        Parameters:
        id - The authorization server ID
        Returns:
        whether or not the authorization server exists
      • findByName

        Optional<P> findByName​(String name)
        Find an authorization server by its name
        Parameters:
        name - The name of the authorization service
        Returns:
        An optional of authorization server
      • findByNameAndTenantId

        Optional<P> findByNameAndTenantId​(String name,
                                          String tenantId)
        Find an authorization server by its name and tenant id
        Parameters:
        name - The name of the authorization service
        tenantId - the tenant id that this AuthorizationServer belongs to
        Returns:
        An optional of authorization server
      • replace

        P replace​(String id,
                  P authorizationServer)
        Replace an authorization server
        Parameters:
        id - The id of the server to replace
        authorizationServer - The replacement
        Returns:
        The replaced authorization server
      • create

        P create​(P authorizationServer)
        Create a new authorization server
        Parameters:
        authorizationServer - The authorization server to create
        Returns:
        The created authorization server.
      • delete

        void delete​(P authorizationServer)
        Delete an authorization server
        Parameters:
        authorizationServer - The authorization server to delete.
      • deleteById

        void deleteById​(String id)
        Delete an authorization server
        Parameters:
        id - The id of the authorization server to delete.
      • save

        P save​(P authorizationServer)
        Save an authorization server
        Parameters:
        authorizationServer - The authorization server to save
        Returns:
        The saved authorization server