Quantcast
Channel: Spring Community Forums - Social
Viewing all articles
Browse latest Browse all 145

Field rank in Connection object

$
0
0
Hi,

My application needs to manage several connection for the same provider for one user of my application.

Among these Connection, I'd like to let my user which one is the "primary" connection (ie. the one returned by ConnectionRepository.getPrimaryConnection(apiType) , or the one with rank=1).

But from what I read in the documentation and in the code, there is no such functionality (changing the rank of a Connection, the rank field does not seem to be accessible).

Besides if the user remove the Connection with the rank 1, future calls to ConnectionRepository.getPrimaryConnection(apiType) will throw an exception, even if there is still a Connection of the type apiType.

Am I correct?

Thanks you very much
Nicolas

Viewing all articles
Browse latest Browse all 145

Trending Articles