Interface QuestionRepository

    • Method Detail

      • findByExternalKey

        Optional<Question> findByExternalKey​(UUID externalKey)
        Returns a Question object that matches the external key.
        Parameters:
        externalKey - External key in the form of universally unique identifier.
        Returns:
        An optional Question object.
      • findByExternalKeyAndUser

        Optional<Question> findByExternalKeyAndUser​(UUID externalKey,
                                                    User user)
        Returns a Question object that matches the external key and user id.
        Parameters:
        externalKey - External key in the form of universally unique identifier.
        user - User object
        Returns:
        An optional Question object.
      • findAllBySource

        Optional<List<Question>> findAllBySource​(String source)
        Returns a list of Question objects identified by the source.
        Parameters:
        source - A source in the form of a string.
        Returns:
        An optional list of Question objects.