- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 42 of file Sendable.java.
◆ addAssistantsByEntity()
void org.turro.elephant.entities.db.Sendable.addAssistantsByEntity |
( |
String |
entityPath, |
|
|
boolean |
deep |
|
) |
| |
Definition at line 88 of file Sendable.java.
89 AssistantSet as =
new AssistantSet();
90 Assistants.addAssistants(entityPath, deep, as, deep ? AssistantConstants.all() :
null);
91 for(Assistant a : as) {
void addContact(IContact contact)
◆ addContact()
void org.turro.elephant.entities.db.Sendable.addContact |
( |
IContact |
contact | ) |
|
Definition at line 96 of file Sendable.java.
97 if(contact !=
null && contact.isWebUser()) {
98 SendableAssistant sa =
new SendableAssistant();
99 sa.setContactId(contact.getId());
100 sa.setEntityPath(entityPath);
101 sa.setDelivered(
false);
102 new ElephantPU().saveObject(sa);
◆ getAssistants()
Collection<SendableAssistant> org.turro.elephant.entities.db.Sendable.getAssistants |
( |
boolean |
all | ) |
|
Definition at line 106 of file Sendable.java.
107 Dao dao =
new ElephantPU();
108 WhereClause wc =
new WhereClause();
109 wc.addClause(
"select sa from SendableAssistant sa");
110 wc.addClause(
"where sa.entityPath = :path");
111 wc.addNamedValue(
"path", entityPath);
113 wc.addClause(
"and sa.delivered = FALSE");
115 return dao.getResultList(wc);
◆ getEntity()
Object org.turro.elephant.entities.db.Sendable.getEntity |
( |
| ) |
|
Definition at line 82 of file Sendable.java.
83 return Entities.getController(entityPath).getEntity();
◆ getEntityPath()
String org.turro.elephant.entities.db.Sendable.getEntityPath |
( |
| ) |
|
◆ getSchedule()
Date org.turro.elephant.entities.db.Sendable.getSchedule |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.elephant.entities.db.Sendable.isEmpty |
( |
| ) |
|
Definition at line 78 of file Sendable.java.
79 return Strings.isBlank(entityPath) || schedule ==
null;
◆ isSent()
boolean org.turro.elephant.entities.db.Sendable.isSent |
( |
| ) |
|
◆ removeAssistants()
void org.turro.elephant.entities.db.Sendable.removeAssistants |
( |
| ) |
|
Definition at line 118 of file Sendable.java.
119 Dao dao =
new ElephantPU();
120 WhereClause wc =
new WhereClause();
121 wc.addClause(
"delete from SendableAssistant sa");
122 wc.addClause(
"where sa.entityPath = :path");
123 wc.addNamedValue(
"path", entityPath);
124 dao.executeUpdate(wc);
◆ setEntityPath()
void org.turro.elephant.entities.db.Sendable.setEntityPath |
( |
String |
entityPath | ) |
|
Definition at line 56 of file Sendable.java.
57 this.entityPath = entityPath;
◆ setSchedule()
void org.turro.elephant.entities.db.Sendable.setSchedule |
( |
Date |
schedule | ) |
|
◆ setSent()
void org.turro.elephant.entities.db.Sendable.setSent |
( |
boolean |
sent | ) |
|
The documentation for this class was generated from the following file: