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

Public Member Functions

 NewParticipantNotification (Dossier dossier, Participant participant)
 
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 34 of file NewParticipantNotification.java.

Constructor & Destructor Documentation

◆ NewParticipantNotification()

org.turro.dossier.project.NewParticipantNotification.NewParticipantNotification ( Dossier  dossier,
Participant  participant 
)

Definition at line 38 of file NewParticipantNotification.java.

38  {
39  super(dossier);
40  this.participant = participant;
41  }

Member Function Documentation

◆ getAssistants()

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

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

Definition at line 49 of file NewParticipantNotification.java.

49  {
50  AssistantSet as = new AssistantSet();
51  if(participant.isCoordinator() || participant.isBeneficiary() || participant.isOfferer()) {
52  Collection<IDossierParticipant> coordinators = dossier.getParticipationsList().getCoordinators();
53  for(IDossierParticipant coordinator : coordinators) {
54  as.addContact(coordinator.getIContact(), coordinator);
55  }
56  Collection<IDossierParticipant> beneficiaries = dossier.getParticipationsList().getBeneficiaries();
57  for(IDossierParticipant beneficiary : beneficiaries) {
58  as.addContact(beneficiary.getIContact(), beneficiary);
59  }
60  if(!participant.isCoordinator()) {
61  Collection<IDossierParticipant> responsibles = dossier.getDirectOwners();
62  for(IDossierParticipant responsible : responsibles) {
63  as.addContact(responsible.getIContact(), responsible);
64  }
65  }
66  for(IContact c : Contacts.getBySyndication("brightside_admin")) {
67  as.addContact(c, null);
68  }
69  }
70  return as;
71  }
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.NewParticipantNotification.initMarker ( ElephantMarker  marker)
protected

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

Definition at line 74 of file NewParticipantNotification.java.

74  {
75  marker.put("participant", participant);
76  }
Here is the call graph for this function:

◆ sendNotification()

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

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

Definition at line 44 of file NewParticipantNotification.java.

44  {
45  super.send("new-participant", participant.getDiscriminator() + ": " + participant.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: