BrightSide Workbench Full Report + Source Code
org.turro.sendable.SendableControl Class Reference
Inheritance diagram for org.turro.sendable.SendableControl:
Collaboration diagram for org.turro.sendable.SendableControl:

Public Member Functions

void onSchedule ()
 
void onSent ()
 
void onSave ()
 
void onDelete ()
 
void onSendTest ()
 
 SendableControl ()
 
void setWithAssistants (boolean withAssistants)
 
void setEntityPath (String entityPath)
 
void setEntity (Object entity)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 47 of file SendableControl.java.

Constructor & Destructor Documentation

◆ SendableControl()

org.turro.sendable.SendableControl.SendableControl ( )

Definition at line 108 of file SendableControl.java.

108  {
109  Executions.createComponents("/WEB-INF/_zul/bs/comps/sendable/sendableControl.zul", this, null);
110  Selectors.wireComponents(this, this, false);
111  Selectors.wireEventListeners(this, this);
112  }

Member Function Documentation

◆ afterCompose()

void org.turro.sendable.SendableControl.afterCompose ( )

Definition at line 130 of file SendableControl.java.

130  {
131  initComponents();
132  }

◆ onDelete()

void org.turro.sendable.SendableControl.onDelete ( )

Definition at line 85 of file SendableControl.java.

85  {
86  Sendables.delete(entityPath);
87  Sendables.cleanOrphans();
88  }
Here is the call graph for this function:

◆ onSave()

void org.turro.sendable.SendableControl.onSave ( )

Definition at line 77 of file SendableControl.java.

77  {
78  if(!sendable.isEmpty()) {
79  new ElephantPU().saveObject(sendable);
80  Sendables.cleanOrphans();
81  }
82  }
Here is the call graph for this function:

◆ onSchedule()

void org.turro.sendable.SendableControl.onSchedule ( )

Definition at line 67 of file SendableControl.java.

67  {
68  sendable.setSchedule(schedule.getValue());
69  }
Here is the call graph for this function:

◆ onSendTest()

void org.turro.sendable.SendableControl.onSendTest ( )

Definition at line 91 of file SendableControl.java.

91  {
92  ContactList contacts = new ContactList();
93  contacts.add(Authentication.getIContact());
94  MailRecipients.selectRecipients(contacts, new Command() {
95  @Override
96  public Object execute(Context context) {
97  MailRecipients mr = (MailRecipients) context.get("component");
98  Collection<IContact> emails = mr.getRecipients();
99  if(emails != null) {
100  IElephantSendable eSend = Entities.getController(entityPath).getSendable();
101  eSend.send(Application.getApplication().getConstructor(), emails);
102  }
103  return null;
104  }
105  });
106  }
Here is the call graph for this function:

◆ onSent()

void org.turro.sendable.SendableControl.onSent ( )

Definition at line 72 of file SendableControl.java.

72  {
73  sendable.setSent(sent.isChecked());
74  }
Here is the call graph for this function:

◆ setEntity()

void org.turro.sendable.SendableControl.setEntity ( Object  entity)

Definition at line 123 of file SendableControl.java.

123  {
124  this.entity = entity;
125  this.entityPath = Entities.getController(entity).getPath();
126  checkSendable();
127  }
Here is the call graph for this function:

◆ setEntityPath()

void org.turro.sendable.SendableControl.setEntityPath ( String  entityPath)

Definition at line 118 of file SendableControl.java.

118  {
119  this.entityPath = entityPath;
120  checkSendable();
121  }

◆ setWithAssistants()

void org.turro.sendable.SendableControl.setWithAssistants ( boolean  withAssistants)

Definition at line 114 of file SendableControl.java.

114  {
115  this.withAssistants = withAssistants;
116  }

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