◆ add()
void org.turro.dossier.model.CategoryRequestsVM.add |
( |
| ) |
|
Definition at line 62 of file CategoryRequestsVM.java.
63 if(!Strings.isBlank(contactName) && !Strings.isBlank(contactMail)) {
64 Date now =
new Date();
67 CategoryRequest cr =
new CategoryRequest();
68 cr.setIContact(contact);
70 cr.setContactName(contactName);
71 cr.setContactEmail(contactMail);
72 cr.setCategory(cw.getCategory());
73 getDao().saveObject(cr);
List< CategorySelectionWrapper > getCategoryModel()
void setContactMail(String contactMail)
void setContactName(String contactName)
◆ createContact()
void org.turro.dossier.model.CategoryRequestsVM.createContact |
( |
@BindingParam("entity") Object |
entity | ) |
|
Definition at line 91 of file CategoryRequestsVM.java.
92 if(entity instanceof CategoryRequest) {
94 KeyValueMap kvm =
new KeyValueMap(
"");
96 kvm.put(
"email", ((CategoryRequest) entity).getContactEmail());
97 Contacts.startContactFromValues(kvm);
98 }
catch (ParserException ex) {
99 Logger.getLogger(CategoryRequestsVM.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ getCategoryModel()
Definition at line 118 of file CategoryRequestsVM.java.
119 if(catModel ==
null) {
120 WhereClause wc =
new WhereClause();
121 wc.addClause(
"select c from Category as c");
122 wc.addClause(
"where c.parent in (" + ProjectContext.getProjectContextAttribute(
"catsRequest",
"0") +
")");
123 catModel =
new CategoryModel(getDao().getResultList(wc));
◆ getContactMail()
String org.turro.dossier.model.CategoryRequestsVM.getContactMail |
( |
| ) |
|
◆ getContactName()
String org.turro.dossier.model.CategoryRequestsVM.getContactName |
( |
| ) |
|
◆ getFullModel()
List<CategoryRequest> org.turro.dossier.model.CategoryRequestsVM.getFullModel |
( |
| ) |
|
Definition at line 112 of file CategoryRequestsVM.java.
113 WhereClause wc =
new WhereClause();
114 wc.addClause(
"select cr from CategoryRequest as cr");
115 return getDao().getResultList(wc);
◆ getLabel()
String org.turro.dossier.model.CategoryRequestsVM.getLabel |
( |
String |
label | ) |
|
◆ getModel()
List<CategoryRequest> org.turro.dossier.model.CategoryRequestsVM.getModel |
( |
| ) |
|
Definition at line 104 of file CategoryRequestsVM.java.
105 WhereClause wc =
new WhereClause();
106 wc.addClause(
"select cr from CategoryRequest as cr");
107 wc.addClause(
"where cr.idContact = :contact");
108 wc.addNamedValue(
"contact", contact.
getId());
109 return getDao().getResultList(wc);
◆ init()
void org.turro.dossier.model.CategoryRequestsVM.init |
( |
@ExecutionArgParam("contact") IContact |
contact, |
|
|
@ExecutionArgParam("idCats") String |
idCats |
|
) |
| |
◆ remove()
void org.turro.dossier.model.CategoryRequestsVM.remove |
( |
@BindingParam("entity") Object |
entity | ) |
|
Definition at line 83 of file CategoryRequestsVM.java.
84 if(entity instanceof CategoryRequest) {
void deleteObject(Object obj)
◆ setContactMail()
void org.turro.dossier.model.CategoryRequestsVM.setContactMail |
( |
String |
contactMail | ) |
|
◆ setContactName()
void org.turro.dossier.model.CategoryRequestsVM.setContactName |
( |
String |
contactName | ) |
|
The documentation for this class was generated from the following file: