annotate Agendas/trunk/src/Agendas.Domain/Track.cs @ 104:c5034884c7d7

refactor para que los estados sean singletons
author jorge.rowies
date Sun, 05 Jun 2011 13:22:36 -0300
parents db4b1e2cae49
children 90ce239cfa6d
rev   line source
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
1 namespace AltNetHispano.Agendas.Domain
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
2 {
80
c2d98fd6593f Track como objeto identificable y con referencia al evento correspondiente.
nelopauselli
parents: 74
diff changeset
3 public class Track : Identificable
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
4 {
63
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
5 protected Track()
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
6 {
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
7 //ctor para NHibernate
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
8 }
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
9
80
c2d98fd6593f Track como objeto identificable y con referencia al evento correspondiente.
nelopauselli
parents: 74
diff changeset
10 public Track(Evento evento, Accion accion)
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
11 {
94
db4b1e2cae49 Cambio del nombre de la clase Ponente a Persona
Nelo@Kenia.neluz.int
parents: 81
diff changeset
12 Usuario = IdentityContext.GetUsuario();
80
c2d98fd6593f Track como objeto identificable y con referencia al evento correspondiente.
nelopauselli
parents: 74
diff changeset
13 Evento = evento;
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
14 Accion = accion;
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
15 }
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
16
80
c2d98fd6593f Track como objeto identificable y con referencia al evento correspondiente.
nelopauselli
parents: 74
diff changeset
17 public virtual Evento Evento { get; private set; }
63
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
18 public virtual Accion Accion { get; private set; }
94
db4b1e2cae49 Cambio del nombre de la clase Ponente a Persona
Nelo@Kenia.neluz.int
parents: 81
diff changeset
19 public virtual Persona Usuario { get; private set; }
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
20 }
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
21
58
37d99d239cae Cambiando constantes por enum en el track de cambios en Evento
nelopauselli
parents: 57
diff changeset
22 public enum Accion
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
23 {
58
37d99d239cae Cambiando constantes por enum en el track de cambios en Evento
nelopauselli
parents: 57
diff changeset
24 Proponer = 1,
74
bc46e7426c80 Refactoring de acciones según la definición del diagrama de estados en assembla
nelopauselli
parents: 70
diff changeset
25 Agendar = 2,
58
37d99d239cae Cambiando constantes por enum en el track de cambios en Evento
nelopauselli
parents: 57
diff changeset
26 Modificar = 3,
37d99d239cae Cambiando constantes por enum en el track de cambios en Evento
nelopauselli
parents: 57
diff changeset
27 CambiarTitulo = 4,
81
c76661cff260 Workflow de acciones sobre un evento (camino feliz)
nelopauselli
parents: 80
diff changeset
28 Publicar = 5,
c76661cff260 Workflow de acciones sobre un evento (camino feliz)
nelopauselli
parents: 80
diff changeset
29 Confirmar = 6
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
30 }
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
31
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
32 }