BrightSide Workbench Full Report + Source Code
org.turro.zul.convocation.ConvocationComposer Class Reference
Inheritance diagram for org.turro.zul.convocation.ConvocationComposer:
Collaboration diagram for org.turro.zul.convocation.ConvocationComposer:

Public Member Functions

void onSendToAttendee (Event event)
 
void onSendMail ()
 
void onSaveAndSendMail ()
 
void doFinally () throws Exception
 
void afterSave ()
 
- Public Member Functions inherited from org.turro.jpa.composer.EntityComposer< E, ID >
final void onChange (Event event)
 
final void onSave ()
 
final void onDelete ()
 
Object getEntity ()
 
Object getWrapper ()
 
void doBeforeComposeChildren (Component comp) throws Exception
 
void doAfterCompose (Component comp) throws Exception
 

Protected Member Functions

String getAttributeName ()
 
Convocation getEntityInstance (String id)
 
DaoEntity getWrapperInstance (Component comp)
 
boolean shouldBeSaved ()
 
boolean inSaveRole ()
 
boolean inDeleteRole ()
 
void doOnDelete ()
 
- Protected Member Functions inherited from org.turro.jpa.composer.EntityComposer< E, ID >
abstract E getEntityInstance (ID id)
 
void doOnSave ()
 
boolean beforeSave ()
 
boolean beforeDelete ()
 
void afterDelete ()
 
void doOnChange ()
 
boolean hasChanged ()
 
void retrieveEntity ()
 
boolean canClose ()
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.jpa.composer.EntityComposer< E, ID >
entity
 
DaoEntity wrapper
 

Detailed Description

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

Definition at line 41 of file ConvocationComposer.java.

Member Function Documentation

◆ afterSave()

void org.turro.zul.convocation.ConvocationComposer.afterSave ( )

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 122 of file ConvocationComposer.java.

122  {
123  if(entity != null) {
124  ContactMenu.showConvocation(entity.getId());
125  }
126  }
Here is the call graph for this function:

◆ doFinally()

void org.turro.zul.convocation.ConvocationComposer.doFinally ( ) throws Exception

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 94 of file ConvocationComposer.java.

94  {
95  super.doFinally();
96  Application app = Application.getApplication();
97  }
Here is the call graph for this function:

◆ doOnDelete()

void org.turro.zul.convocation.ConvocationComposer.doOnDelete ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 115 of file ConvocationComposer.java.

115  {
116  Messages.confirmDeletion().show(() -> {
117  ConvocationComposer.super.doOnDelete();
118  });
119  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAttributeName()

String org.turro.zul.convocation.ConvocationComposer.getAttributeName ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 71 of file ConvocationComposer.java.

71  {
72  return "convocation";
73  }

◆ getEntityInstance()

Convocation org.turro.zul.convocation.ConvocationComposer.getEntityInstance ( String  id)
protected

Definition at line 76 of file ConvocationComposer.java.

76  {
77  if(id == null) {
78  entity = new Convocation();
79  } else {
80  entity = new ContactsPU().find(Convocation.class, id);
81  }
82  return entity;
83  }

◆ getWrapperInstance()

DaoEntity org.turro.zul.convocation.ConvocationComposer.getWrapperInstance ( Component  comp)
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 86 of file ConvocationComposer.java.

86  {
87  ConvocationWrapper w = new ConvocationWrapper(entity);
88  Framework.getCurrent().setSelectedLabel(w.getTabLabel());
89  Framework.getCurrent().setSelectedTooltiptext(w.getTooltiptext());
90  return w;
91  }
Here is the call graph for this function:

◆ inDeleteRole()

boolean org.turro.zul.convocation.ConvocationComposer.inDeleteRole ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 110 of file ConvocationComposer.java.

110  {
111  return Application.getApplication().isInRole("convocation:delete");
112  }
Here is the call graph for this function:

◆ inSaveRole()

boolean org.turro.zul.convocation.ConvocationComposer.inSaveRole ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 105 of file ConvocationComposer.java.

105  {
106  return Application.getApplication().isInRole("convocation:edit");
107  }
Here is the call graph for this function:

◆ onSaveAndSendMail()

void org.turro.zul.convocation.ConvocationComposer.onSaveAndSendMail ( )

Definition at line 62 of file ConvocationComposer.java.

62  {
63  if(!entity.isEmpty()) {
64  doOnSave();
65  new ConvocationSender(entity, ConvocationSender.getAsAssistants(entity)).send();
66  Clients.showNotification(I_.get("Convocation sent"));
67  }
68  }
Here is the call graph for this function:

◆ onSendMail()

void org.turro.zul.convocation.ConvocationComposer.onSendMail ( )

Definition at line 54 of file ConvocationComposer.java.

54  {
55  if(!entity.isEmpty()) {
56  new ConvocationSender(entity, ConvocationSender.getAsAssistants(entity)).send();
57  Clients.showNotification(I_.get("Convocation sent"));
58  }
59  }
Here is the call graph for this function:

◆ onSendToAttendee()

void org.turro.zul.convocation.ConvocationComposer.onSendToAttendee ( Event  event)

Definition at line 44 of file ConvocationComposer.java.

44  {
45  if(event.getData() instanceof Attendee) {
46  if(!entity.isEmpty()) {
47  new ConvocationSender(entity, ((Attendee) event.getData()).getIContact()).send();
48  Clients.showNotification(I_.get("Convocation sent"));
49  }
50  }
51  }
Here is the call graph for this function:

◆ shouldBeSaved()

boolean org.turro.zul.convocation.ConvocationComposer.shouldBeSaved ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 100 of file ConvocationComposer.java.

100  {
101  return !entity.isEmpty() && (Strings.isBlank(entity.getId())) || super.shouldBeSaved();
102  }

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