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

Public Member Functions

 NewOfferNotification (Dossier dossier, Issue issue)
 
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 35 of file NewOfferNotification.java.

Constructor & Destructor Documentation

◆ NewOfferNotification()

org.turro.dossier.project.NewOfferNotification.NewOfferNotification ( Dossier  dossier,
Issue  issue 
)

Definition at line 39 of file NewOfferNotification.java.

39  {
40  super(dossier);
41  this.issue = issue;
42  }

Member Function Documentation

◆ getAssistants()

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

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

Definition at line 50 of file NewOfferNotification.java.

50  {
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> beneficiaries = dossier.getParticipationsList().getBeneficiaries();
57  for(IDossierParticipant beneficiary : beneficiaries) {
58  as.addContact(beneficiary.getIContact(), beneficiary);
59  }
60  Collection<IDossierParticipant> responsibles = dossier.getDirectOwners();
61  for(IDossierParticipant responsible : responsibles) {
62  as.addContact(responsible.getIContact(), responsible);
63  }
64  for(IContact c : Contacts.getBySyndication("brightside_admin")) {
65  as.addContact(c, null);
66  }
67  return as;
68  }
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.NewOfferNotification.initMarker ( ElephantMarker  marker)
protected

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

Definition at line 71 of file NewOfferNotification.java.

71  {
72  marker.put("issue", issue);
73  }
Here is the call graph for this function:

◆ sendNotification()

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

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

Definition at line 45 of file NewOfferNotification.java.

45  {
46  super.send("new-offer", I_.get("New offer"));
47  }
Here is the call graph for this function:

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