BrightSide Workbench Full Report + Source Code
org.turro.jobboard.AbstractPracticalWorkNotification Class Referenceabstract
Inheritance diagram for org.turro.jobboard.AbstractPracticalWorkNotification:
Collaboration diagram for org.turro.jobboard.AbstractPracticalWorkNotification:

Public Member Functions

 AbstractPracticalWorkNotification (PracticalWork practicalWork)
 
void send (String template, String reason)
 
String create (IConstructor constructor, PracticalWork practicalWork, IContact contact) throws Exception
 
String create (IConstructor constructor, String redir, String email) throws Exception
 
String createRef (IConstructor constructor, PracticalWork practicalWork, IContact contact) throws Exception
 
String createRef (IConstructor constructor, String redir) throws Exception
 
abstract void sendNotification ()
 

Protected Member Functions

String getSubject (String reason)
 
abstract AssistantSet getAssistants ()
 
abstract void initMarker (ElephantMarker marker)
 

Protected Attributes

PracticalWork practicalWork
 
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 48 of file AbstractPracticalWorkNotification.java.

Constructor & Destructor Documentation

◆ AbstractPracticalWorkNotification()

org.turro.jobboard.AbstractPracticalWorkNotification.AbstractPracticalWorkNotification ( PracticalWork  practicalWork)

Definition at line 54 of file AbstractPracticalWorkNotification.java.

54  {
56  constructor = Application.getApplication().getConstructor();
57  loggedContact = Authentication.getIContact();
58  }
Here is the call graph for this function:

Member Function Documentation

◆ create() [1/2]

String org.turro.jobboard.AbstractPracticalWorkNotification.create ( IConstructor  constructor,
PracticalWork  practicalWork,
IContact  contact 
) throws Exception

Definition at line 64 of file AbstractPracticalWorkNotification.java.

64  {
65  return create(constructor,
66  Entities.getController(practicalWork).getEntityUrl(),
67  contact.getConnector(IUser.CONNECTOR_EMAIL));
68  }
String create(IConstructor constructor, PracticalWork practicalWork, IContact contact)
Here is the call graph for this function:

◆ create() [2/2]

String org.turro.jobboard.AbstractPracticalWorkNotification.create ( IConstructor  constructor,
String  redir,
String  email 
) throws Exception

Definition at line 70 of file AbstractPracticalWorkNotification.java.

70  {
71  HashMap<String, String> values = new HashMap<>();
72  values.put(Actions.USER_PAR, email);
73  values.put(Actions.REDIR_PAR, URLEncoder.encode(redir, "UTF-8"));
74  return Actions.createAction(values, 7, false);
75  }

◆ createRef() [1/2]

String org.turro.jobboard.AbstractPracticalWorkNotification.createRef ( IConstructor  constructor,
PracticalWork  practicalWork,
IContact  contact 
) throws Exception

Definition at line 77 of file AbstractPracticalWorkNotification.java.

77  {
79  Entities.getController(practicalWork).getEntityUrl() :
80  Entities.getController(practicalWork).getMemberUrl());
81  }
String createRef(IConstructor constructor, PracticalWork practicalWork, IContact contact)
Here is the call graph for this function:

◆ createRef() [2/2]

String org.turro.jobboard.AbstractPracticalWorkNotification.createRef ( IConstructor  constructor,
String  redir 
) throws Exception

Definition at line 83 of file AbstractPracticalWorkNotification.java.

83  {
84  return "{liveref:" + redir + "}";
85  }

◆ getAssistants()

abstract AssistantSet org.turro.jobboard.AbstractPracticalWorkNotification.getAssistants ( )
abstractprotected

◆ getSubject()

String org.turro.jobboard.AbstractPracticalWorkNotification.getSubject ( String  reason)
protected

Definition at line 114 of file AbstractPracticalWorkNotification.java.

114  {
115  return String.format("[%s %s] %s",
116  reason,
119  }
Here is the call graph for this function:

◆ initMarker()

abstract void org.turro.jobboard.AbstractPracticalWorkNotification.initMarker ( ElephantMarker  marker)
abstractprotected

◆ send()

void org.turro.jobboard.AbstractPracticalWorkNotification.send ( String  template,
String  reason 
)

Definition at line 60 of file AbstractPracticalWorkNotification.java.

60  {
61  addToQueue(template, reason);
62  }

◆ sendNotification()

abstract void org.turro.jobboard.AbstractPracticalWorkNotification.sendNotification ( )
abstract

Member Data Documentation

◆ constructor

final IConstructor org.turro.jobboard.AbstractPracticalWorkNotification.constructor
protected

Definition at line 51 of file AbstractPracticalWorkNotification.java.

◆ loggedContact

final IContact org.turro.jobboard.AbstractPracticalWorkNotification.loggedContact
protected

Definition at line 52 of file AbstractPracticalWorkNotification.java.

◆ practicalWork

PracticalWork org.turro.jobboard.AbstractPracticalWorkNotification.practicalWork
protected

Definition at line 50 of file AbstractPracticalWorkNotification.java.


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