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

Public Member Functions

 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
 
abstract void sendNotification ()
 

Static Public Member Functions

static AbstractDossierNotification getByGrouping (Issue issue)
 

Protected Member Functions

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

Protected Attributes

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 54 of file AbstractDossierNotification.java.

Constructor & Destructor Documentation

◆ AbstractDossierNotification()

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

Definition at line 60 of file AbstractDossierNotification.java.

60  {
61  this.dossier = dossier;
62  constructor = Application.getApplication().getConstructor();
63  loggedContact = Authentication.getIContact();
64  }
Here is the call graph for this function:

Member Function Documentation

◆ create() [1/2]

String org.turro.dossier.project.AbstractDossierNotification.create ( IConstructor  constructor,
Dossier  dossier,
IContact  contact 
) throws Exception

Definition at line 70 of file AbstractDossierNotification.java.

70  {
71  return create(constructor,
72  DossierEntityInfo.linkForPath(new Path(DossierPU.getObjectPath(dossier)), contact, LinkType.WEB),
73  contact.getConnector(IUser.CONNECTOR_EMAIL));
74  }
String create(IConstructor constructor, Dossier dossier, IContact contact)
Here is the call graph for this function:

◆ create() [2/2]

String org.turro.dossier.project.AbstractDossierNotification.create ( IConstructor  constructor,
String  redir,
String  email 
) throws Exception

Definition at line 76 of file AbstractDossierNotification.java.

76  {
77  HashMap<String, String> values = new HashMap<>();
78  values.put(Actions.USER_PAR, email);
79  values.put(Actions.REDIR_PAR, URLEncoder.encode(redir, "UTF-8"));
80  return Actions.createAction(values, 7, false);
81  }

◆ createRef() [1/2]

String org.turro.dossier.project.AbstractDossierNotification.createRef ( IConstructor  constructor,
Dossier  dossier,
IContact  contact 
) throws Exception

Definition at line 83 of file AbstractDossierNotification.java.

83  {
84  return createRef(constructor,
85  DossierEntityInfo.linkForPath(new Path(DossierPU.getObjectPath(dossier)), contact, LinkType.WEB));
86  }
String createRef(IConstructor constructor, Dossier dossier, IContact contact)
Here is the call graph for this function:

◆ createRef() [2/2]

String org.turro.dossier.project.AbstractDossierNotification.createRef ( IConstructor  constructor,
String  redir 
) throws Exception

Definition at line 88 of file AbstractDossierNotification.java.

88  {
89  return "{liveref:" + redir + "}";
90  }

◆ getAssistants()

◆ getByGrouping()

static AbstractDossierNotification org.turro.dossier.project.AbstractDossierNotification.getByGrouping ( Issue  issue)
static

Definition at line 131 of file AbstractDossierNotification.java.

131  {
132  if(issue != null && issue.getType().equals(IssueType.TYPE_PROPOSITION)) {
133  return new NewOfferNotification(issue.getDossier(), issue);
134  }
135  return null;
136  }
Here is the call graph for this function:

◆ getSubject()

String org.turro.dossier.project.AbstractDossierNotification.getSubject ( String  reason)
protected

Definition at line 119 of file AbstractDossierNotification.java.

119  {
120  return String.format("[%s #%d %s] %s",
121  reason,
122  dossier.getId(),
125  }
Here is the call graph for this function:

◆ initMarker()

abstract void org.turro.dossier.project.AbstractDossierNotification.initMarker ( ElephantMarker  marker)
abstractprotected

◆ send()

void org.turro.dossier.project.AbstractDossierNotification.send ( String  template,
String  reason 
)

Definition at line 66 of file AbstractDossierNotification.java.

66  {
67  addToQueue(template, reason);
68  }

◆ sendNotification()

abstract void org.turro.dossier.project.AbstractDossierNotification.sendNotification ( )
abstract

Member Data Documentation

◆ constructor

final IConstructor org.turro.dossier.project.AbstractDossierNotification.constructor
protected

Definition at line 57 of file AbstractDossierNotification.java.

◆ dossier

final Dossier org.turro.dossier.project.AbstractDossierNotification.dossier
protected

Definition at line 56 of file AbstractDossierNotification.java.

◆ loggedContact

final IContact org.turro.dossier.project.AbstractDossierNotification.loggedContact
protected

Definition at line 58 of file AbstractDossierNotification.java.


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