getUserOwnedLinks

@Query(value = "SELECT l.* FROM " + LINKS_KEY + " AS l WHERE l." + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY + " AND dtype='" + LINK_KEY + "'", nativeQuery = true)
abstract fun getUserOwnedLinks(@Param(value = "user_id") userId: String): List<RefyLink>

Method to execute the query to get the user's owned links

Return

the user links as List of RefyLink

Parameters

userId

: the identifier of the user