BrightSide Workbench Full Report + Source Code
org.turro.contacts.service.ServiceSender Class Reference

Public Member Functions

 ServiceSender (ContactService entity, AssistantSet assistants, boolean useQueue)
 
void send ()
 
void send (IContact contact)
 
String createRef (IConstructor constructor, ContactService service, IContact contact) throws Exception
 
String createRef (IConstructor constructor, String redir) throws Exception
 

Static Public Member Functions

static AssistantSet getAsAssistants (ContactService service)
 

Detailed Description

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

Definition at line 50 of file ServiceSender.java.

Constructor & Destructor Documentation

◆ ServiceSender()

org.turro.contacts.service.ServiceSender.ServiceSender ( ContactService  entity,
AssistantSet  assistants,
boolean  useQueue 
)

Definition at line 62 of file ServiceSender.java.

62  {
63  this.entity = entity;
64  this.assistants = assistants;
65  this.useQueue = useQueue;
66  this.category = ElephantProperties.getContextProperty(PROP_CTX, KEY_CATEGORY);
67  this.mailPool = ElephantProperties.getContextProperty(PROP_CTX, KEY_POOL);
68  }
Here is the call graph for this function:

Member Function Documentation

◆ createRef() [1/2]

String org.turro.contacts.service.ServiceSender.createRef ( IConstructor  constructor,
ContactService  service,
IContact  contact 
) throws Exception

Definition at line 120 of file ServiceSender.java.

120  {
121  return createRef(constructor, service.getTimesSent() >=1 ?
122  Entities.getController(service).getEntityUrl() :
123  Entities.getController(service).getMemberUrl());
124  }
String createRef(IConstructor constructor, ContactService service, IContact contact)
Here is the call graph for this function:

◆ createRef() [2/2]

String org.turro.contacts.service.ServiceSender.createRef ( IConstructor  constructor,
String  redir 
) throws Exception

Definition at line 126 of file ServiceSender.java.

126  {
127  return "{liveref:" + redir + "}";
128  }

◆ getAsAssistants()

static AssistantSet org.turro.contacts.service.ServiceSender.getAsAssistants ( ContactService  service)
static

Definition at line 130 of file ServiceSender.java.

130  {
131  AssistantSet assistants = new AssistantSet();
132  assistants.addContact(service.getResponsible().getIContact(), service);
133  assistants.addContacts(Contacts.getBySyndication("contacts_admin"));
134  AssistantQueueUtils.addFromCategory(ElephantProperties.getContextProperty(PROP_CTX, KEY_CATEGORY), assistants);
135  return assistants;
136  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ send() [1/2]

void org.turro.contacts.service.ServiceSender.send ( )

Definition at line 70 of file ServiceSender.java.

70  {
71  sendMail(null);
72  }
Here is the caller graph for this function:

◆ send() [2/2]

void org.turro.contacts.service.ServiceSender.send ( IContact  contact)

Definition at line 74 of file ServiceSender.java.

74  {
75  sendMail(contact);
76  }

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