Results 1 to 4 of 4

Thread: Purpose of the AccountIdResolver

  1. #1
    Join Date
    Dec 2006
    Posts
    12

    Default 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

    Gary

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    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.

    Keith
    Keith Donald
    Core Spring Development Team

  3. #3
    Join Date
    Jul 2005
    Posts
    5

    Default

    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. #4
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    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.

    Keith
    Keith Donald
    Core Spring Development Team

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •