- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 41 of file RelationsVM.java.
◆ RelationsVM()
org.turro.contacts.relation.RelationsVM.RelationsVM |
( |
| ) |
|
◆ delete()
void org.turro.contacts.relation.RelationsVM.delete |
( |
@BindingParam("relation") BusinessRelation |
relation | ) |
|
Definition at line 61 of file RelationsVM.java.
62 if(relation !=
null) {
63 Messages.confirmDeletion().show(() -> {
65 BindUtils.postNotifyChange(
null,
null,
RelationsVM.this,
"model");
void deleteObject(Object obj)
◆ getModel()
Definition at line 74 of file RelationsVM.java.
75 WhereClause wc =
new WhereClause();
76 wc.addClause(
"select r from BusinessRelation r");
77 wc.addClause(
"where r.validated = FALSE");
78 if(!Strings.isBlank(searchValue)) {
79 wc.addClause(
"and (r.contact.name like :searchValue");
80 wc.addClause(
"or r.business.name like :searchValue)");
81 wc.addNamedValue(
"searchValue", SQLHelper.convertToPartialLike(searchValue));
83 return getDao().getResultList(wc);
◆ getSearchValue()
String org.turro.contacts.relation.RelationsVM.getSearchValue |
( |
| ) |
|
◆ setSearchValue()
void org.turro.contacts.relation.RelationsVM.setSearchValue |
( |
String |
searchValue | ) |
|
◆ update()
void org.turro.contacts.relation.RelationsVM.update |
( |
| ) |
|
◆ validate()
void org.turro.contacts.relation.RelationsVM.validate |
( |
@BindingParam("relation") BusinessRelation |
relation | ) |
|
Definition at line 50 of file RelationsVM.java.
51 if(relation !=
null) {
52 relation.setValidated(
true);
53 getDao().saveObject(relation);
54 SocialGroups.checkInheritance(List.of(relation.getContact()), getDao());
55 new QueueManager().subscribeDefaults(ConstraintKeys.from(relation.getContact().getIContact()));
56 new RelationAcceptedNotification(relation).send();
The documentation for this class was generated from the following file: