J. Erik Heinz wrote:
Hi,

I just wonder.. if i want to store userspecific information in the
BasicSecurityUser Object, do I use setAttributes() or setParameters().

Only attributes are written to *Storage so if you want persistent data, you are to use attributes. If your data doesn't have to be stored for subsequent request, you might be better of using Request object or something else anyway.

IMO parameters are there only for initialization needs. Current user implementations don't use them at all but you might want to write MySpecialUser implementation and it would get initialization parameters from context.ini. Something like this maybe....

; context.ini.sample - incomplete
;Web context
[web]
  user = "MySpecialUser"
  user.params.foo = "bar"

; Command Line Context
[console]
  user = "MySpecialUser"
  user.params.foo = "fuubar"



-veikko


_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to