- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 52 of file BloggersGrid.java.
◆ addContact()
void org.turro.publication.zul.ctrl.BloggersGrid.addContact |
( |
Contact |
contact | ) |
|
Definition at line 62 of file BloggersGrid.java.
66 Dao dao =
new PublicationPU();
67 if(dao.getSingleResultOrNull(
68 "select ps from PublicationBlogger ps " +
69 "where ps.idContact = ? " +
70 "and ps.publicationCategory = ?",
71 new Object[] { contact.getId(), publicationCategory }
73 PublicationBlogger ps =
new PublicationBlogger();
74 ps.setPublicationCategory(publicationCategory);
75 ps.setIdContact(contact.getId());
77 SystemLogger.getInstance().doLog(SystemLogType.LOG_INFO, publicationCategory,
78 "blogged", contact.getName());
◆ pasteContacts()
void org.turro.publication.zul.ctrl.BloggersGrid.pasteContacts |
( |
| ) |
|
Definition at line 83 of file BloggersGrid.java.
84 List<Contact> contacts = (List<Contact>) Framework.getClipboard().get(
"bbf_clip_contact");
85 if(contacts !=
null && publicationCategory !=
null) {
86 Dao dao =
new PublicationPU();
87 for(Contact contact : contacts) {
88 Connector email = contact.getConnectorMap().get(IUser.CONNECTOR_EMAIL);
89 if(email !=
null && !Strings.isBlank(email.getValue())) {
90 if(dao.getSingleResultOrNull(
91 "select ps from PublicationBlogger ps " +
92 "where ps.idContact = ? " +
93 "and ps.publicationCategory = ?",
94 new Object[] { contact.getId(), publicationCategory }
96 PublicationBlogger ps =
new PublicationBlogger();
97 ps.setPublicationCategory(publicationCategory);
98 ps.setIdContact(contact.getId());
100 SystemLogger.getInstance().doLog(SystemLogType.LOG_INFO, publicationCategory,
101 "blogged", contact.getName());
105 Framework.getClipboard().remove(
"bbf_clip_contact");
◆ setPublicationCategory()
void org.turro.publication.zul.ctrl.BloggersGrid.setPublicationCategory |
( |
PublicationCategory |
publicationCategory | ) |
|
Definition at line 56 of file BloggersGrid.java.
57 this.publicationCategory = publicationCategory;
The documentation for this class was generated from the following file: