Announcement Announcement Module
No announcement yet.
Purpose of the AccountIdResolver Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Purpose of the AccountIdResolver

    Hi All

    Just working with the latest snap shots of Spring Social and am struggling to see the purpose of AccountIdResolver interface.

    Looking at classes FacebookShowcaseAccountIdResolver or TwitterSampleAccountIdResolver it makes no sense to me what it's supposed to resolve from and to.

    Excuse my lack of understanding been in front of a computer for the last 14 hours, brain is a bit of a mash!

    Thank you


  • #2
    The AccountIdResolver is used by the ConnectController to obtain the current user's account id. This is necessary to use the ServiceProvider framework, since you're asking the application to connect to a ServiceProvider in order to invoke a service API on behalf of the user. In the "connect" branch where a lot of work is going on, we've moved this interface to the spring-social-webmvc module.



    • #3
      Seems in all the examples, it just returns 1L. So I think there's some confusion, at least to me, what constitutes the "current user's account id".


      • #4
        Yeah, the current examples don't yet have a User Account Management module, so the current account id is just hard-coded for the time being.