UpdateUserEvent.as 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.imt.intimamedia.events.user
  2. {
  3. import com.imt.flex.cairngormExtended.event.SuperEvent;
  4. import com.imt.intimamedia.control.ApplicationController;
  5. import com.imt.intimamedia.vo.UserVo;
  6. /**
  7. * Evénement de création d'un utilisateur
  8. */
  9. public class UpdateUserEvent extends SuperEvent
  10. {
  11. private var _user : UserVo;
  12. private var _profil : String;
  13. public function UpdateUserEvent( user : UserVo, profil : String, dispatcher : * = null )
  14. {
  15. super( ApplicationController.USER_UPDATE );
  16. this.user = user;
  17. this.profil = profil;
  18. this.dispatcher = dispatcher;
  19. }
  20. /**
  21. * Utilisateur transporté par l'événement
  22. *
  23. * @default null
  24. */
  25. public function get user () : UserVo
  26. {
  27. return _user;
  28. }
  29. /**
  30. * @private
  31. */
  32. public function set user ( value : UserVo ) : void
  33. {
  34. _user = value;
  35. }
  36. /**
  37. * Profil de l'utilisateur
  38. *
  39. * @default null
  40. */
  41. public function get profil () : String
  42. {
  43. return _profil;
  44. }
  45. /**
  46. * @private
  47. */
  48. public function set profil ( value : String ) : void
  49. {
  50. _profil = value;
  51. }
  52. }
  53. }