BrightSide Workbench Full Report + Source Code
org.turro.dossier.project.ChangePhaseNotification Class Reference
Inheritance diagram for org.turro.dossier.project.ChangePhaseNotification:
Collaboration diagram for org.turro.dossier.project.ChangePhaseNotification:

Public Member Functions

 ChangePhaseNotification (Dossier dossier)
 
void sendNotification ()
 
- Public Member Functions inherited from org.turro.dossier.project.AbstractDossierNotification
 AbstractDossierNotification (Dossier dossier)
 
void send (String template, String reason)
 
String create (IConstructor constructor, Dossier dossier, IContact contact) throws Exception
 
String create (IConstructor constructor, String redir, String email) throws Exception
 
String createRef (IConstructor constructor, Dossier dossier, IContact contact) throws Exception
 
String createRef (IConstructor constructor, String redir) throws Exception
 

Protected Member Functions

AssistantSet getAssistants ()
 
void initMarker (ElephantMarker marker)
 
- Protected Member Functions inherited from org.turro.dossier.project.AbstractDossierNotification
String getSubject (String reason)
 

Additional Inherited Members

- Static Public Member Functions inherited from org.turro.dossier.project.AbstractDossierNotification
static AbstractDossierNotification getByGrouping (Issue issue)
 
- Protected Attributes inherited from org.turro.dossier.project.AbstractDossierNotification
final Dossier dossier
 
final IConstructor constructor
 
final IContact loggedContact
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 37 of file ChangePhaseNotification.java.

Constructor & Destructor Documentation

◆ ChangePhaseNotification()

org.turro.dossier.project.ChangePhaseNotification.ChangePhaseNotification ( Dossier  dossier)

Definition at line 39 of file ChangePhaseNotification.java.

Member Function Documentation

◆ getAssistants()

AssistantSet org.turro.dossier.project.ChangePhaseNotification.getAssistants ( )
protected

Reimplemented from org.turro.dossier.project.AbstractDossierNotification.

Definition at line 49 of file ChangePhaseNotification.java.

49  {
50  PhaseDefinition phase = dossier.getProject().getPhaseDefinition();
51  AssistantSet as = new AssistantSet();
52  Collection<IDossierParticipant> coordinators = dossier.getParticipationsList().getCoordinators();
53  for(IDossierParticipant coordinator : coordinators) {
54  as.addContact(coordinator.getIContact(), coordinator);
55  }
56  Collection<IDossierParticipant> responsibles = dossier.getDirectOwners();
57  for(IDossierParticipant responsible : responsibles) {
58  as.addContact(responsible.getIContact(), responsible);
59  }
60  for(IContact c : Contacts.getBySyndication("brightside_admin")) {
61  as.addContact(c, null);
62  }
63  if(phase.anyTypeMatch(EnumSet.of(PhaseType.VOTES, PhaseType.DECISION, PhaseType.EXECUTION, PhaseType.ARCHIVE))) {
64  for(IContact c : Contacts.getBySyndication("patron")) {
65  as.addContact(c, null);
66  }
67  }
68  if(phase.anyTypeMatch(EnumSet.of(PhaseType.DECISION, PhaseType.PROPOSALS, PhaseType.ARCHIVE))) {
69  Collection<IDossierParticipant> offerers = dossier.getParticipationsList().getOfferers();
70  for(IDossierParticipant offerer : offerers) {
71  as.addContact(offerer.getIContact(), offerer);
72  }
73  }
74  if(phase.anyTypeMatch(EnumSet.of(PhaseType.EXECUTION, PhaseType.ARCHIVE))) {
75  Collection<IDossierParticipant> offerers = dossier.getParticipationsList().getBeneficiaries();
76  for(IDossierParticipant offerer : offerers) {
77  as.addContact(offerer.getIContact(), offerer);
78  }
79  }
80  if(phase.anyTypeMatch(EnumSet.of(PhaseType.INCUBATOR, PhaseType.EXECUTION, PhaseType.ARCHIVE))) {
81  for(IContact c : Contacts.getBySyndication("partner")) {
82  as.addContact(c, null);
83  }
84  for(IContact c : Contacts.getBySyndication("collaborator_privileged")) {
85  as.addContact(c, null);
86  }
87  }
88  if(phase.anyTypeMatch(EnumSet.of(PhaseType.INCUBATOR, PhaseType.DECISION, PhaseType.EXECUTION, PhaseType.ARCHIVE))) {
89  for(IDossierParticipant comissioners : dossier.getFullParticipants()) {
90  as.addContact(comissioners.getIContact(), comissioners);
91  }
92  }
93  return as;
94  }
ParticipantSet< IDossierParticipant > getFullParticipants()
Definition: Dossier.java:399
List< IDossierParticipant > getDirectOwners()
Definition: Dossier.java:591
DossierParticipationsList getParticipationsList()
Definition: Dossier.java:436
Here is the call graph for this function:

◆ initMarker()

void org.turro.dossier.project.ChangePhaseNotification.initMarker ( ElephantMarker  marker)
protected

Reimplemented from org.turro.dossier.project.AbstractDossierNotification.

Definition at line 97 of file ChangePhaseNotification.java.

97  {
98  }

◆ sendNotification()

void org.turro.dossier.project.ChangePhaseNotification.sendNotification ( )

Reimplemented from org.turro.dossier.project.AbstractDossierNotification.

Definition at line 44 of file ChangePhaseNotification.java.

44  {
45  super.send("change-phase", I_.get("Changed to") + ": " + I_.get(dossier.getProject().getPhaseDefinition().getName()));
46  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: