BrightSide Workbench Full Report + Source Code
org.turro.contacts.zul.register.TellSomeoneComposer Class Reference
Inheritance diagram for org.turro.contacts.zul.register.TellSomeoneComposer:
Collaboration diagram for org.turro.contacts.zul.register.TellSomeoneComposer:

Public Member Functions

void onRegister (Event event)
 

Detailed Description

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

Definition at line 50 of file TellSomeoneComposer.java.

Member Function Documentation

◆ onRegister()

void org.turro.contacts.zul.register.TellSomeoneComposer.onRegister ( Event  event)

Definition at line 64 of file TellSomeoneComposer.java.

64  {
65  SignUp su = new SignUp();
66  su.setName(name.getValue());
67  su.setEmail(email.getValue());
68  su.setComment(comment.getValue());
69  if(su.isValid()) {
70  if(existPending(su.getEmail())) {
71  ZkossUtils.confirmProcess(I_.get("Email pending to confirm") +
72  "\n\n" +
73  I_.get("Resend confirmation e-mail"), new Command() {
74  @Override
75  public Object execute(Context context) {
76  sendEmail(sue);
77  Clients.showNotification(I_.format("Confirmation e-mail has been sent to %s", sue.getEmail()));
78  return true;
79  }
80  });
81  } else if(existEmail(su.getEmail())) {
82  Clients.showNotification(I_.format("%s already exists", su.getEmail()));
83  } else {
84  su = new ContactsPU().saveObject(su);
85  sendEmail(su);
86  Clients.showNotification(I_.format("Confirmation e-mail has been sent to %s", su.getEmail()));
87  }
88  } else {
89  Clients.showNotification("No valid values");
90  }
91  }
Here is the call graph for this function:

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