Results 1 to 2 of 2

Thread: how business objects get user information stored by Acegi?

  1. #1

    Default how business objects get user information stored by Acegi?

    i have a few business service objects which have no dependency on
    web objects. i dont want to pass user info as arguments to business
    methods. i want to access user info stored by Acegi from within business
    objects. how ? what way is clean? i use Acegi as my web security mechanism.

    thanks a lot!

    pete

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    ((SecureContext)ContextHolder.getContext()).getAut hentication() should do it for you.

Similar Threads

  1. Problem with HibernateInterceptor
    By prane in forum Data
    Replies: 5
    Last Post: Oct 16th, 2007, 08:01 AM
  2. Spring-based architectural approach
    By diegum in forum Architecture
    Replies: 9
    Last Post: May 10th, 2007, 04:09 PM
  3. LDAPPasswordAuthenticationDao problem
    By benoit_m35 in forum Security
    Replies: 15
    Last Post: Jan 11th, 2006, 07:04 AM
  4. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  5. Replies: 3
    Last Post: Sep 22nd, 2005, 10:14 AM

Posting Permissions

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