BrightSide Workbench Full Report + Source Code
org.turro.acceptance.AcceptanceMail Class Reference

Public Member Functions

 AcceptanceMail (IAcceptance acceptance)
 
void sendMail ()
 

Detailed Description

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

Definition at line 36 of file AcceptanceMail.java.

Constructor & Destructor Documentation

◆ AcceptanceMail()

org.turro.acceptance.AcceptanceMail.AcceptanceMail ( IAcceptance  acceptance)

Definition at line 40 of file AcceptanceMail.java.

40  {
41  this.acceptance = acceptance;
42  }

Member Function Documentation

◆ sendMail()

void org.turro.acceptance.AcceptanceMail.sendMail ( )

Definition at line 44 of file AcceptanceMail.java.

44  {
45  if(acceptance == null) return;
46  try {
47  new MailPool()
48  .setRoot("/acceptances")
49  .addContacts(getPlayers())
50  .put("reason", I_.format("%s has modified", Authentication.getIContact().getName()))
51  .put("acceptance", acceptance)
52  .sendTemplate("requiredAcceptance", getSubject());
53  } catch (EmailException ex) {
54  Logger.getLogger(AcceptanceMail.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(acceptance.getPath()), ex);
55  }
56  }
AcceptanceMail(IAcceptance acceptance)
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: