getUserCustomLinks

@Query(value = ""SELECT l.* FROM " + LINKS_KEY + " AS l WHERE l." + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY + " AND dtype='" + CUSTOM_LINK_KEY + "' ORDER BY " + CREATION_DATE_KEY", nativeQuery = true)
abstract fun getUserCustomLinks(@Param(value = "user_id") userId: String): List<CustomRefyLink>

Method to execute the query to get all the user's custom links

Return

the user custom links as List of CustomRefyLink

Parameters

userId

: the identifier of the user