◆ getChecked()
Definition at line 34 of file PublicationUtil.java.
35 List l =
new PublicationPU().getResultList(
36 "select pubsubs from PublicationSubscription as pubsubs " +
37 "where pubsubs.publicationCategory = ? " +
38 "and pubsubs.idContact = ?",
39 new Object[] { v, contact.getId() }
41 return l !=
null && !l.isEmpty();
◆ setChecked()
Definition at line 44 of file PublicationUtil.java.
46 PublicationSubscription ps =
new PublicationSubscription();
47 ps.setCreation(
new Date());
48 ps.setIdContact(contact.getId());
49 ps.setPublicationCategory(v);
50 new PublicationPU().saveObject(ps);
52 new PublicationPU().executeUpdate(
53 "delete from PublicationSubscription " +
54 "where publicationCategory = ? " +
56 new Object[] { v, contact.getId() }
static boolean getChecked(IContact contact, PublicationCategory v)
◆ subscribeAll()
static void org.turro.publication.util.PublicationUtil.subscribeAll |
( |
IContact |
contact, |
|
|
boolean |
checked |
|
) |
| |
|
static |
Definition at line 61 of file PublicationUtil.java.
62 for(PublicationCategory pc : PublicationCategories.getPublicCategories(contact)) {
static void setChecked(IContact contact, PublicationCategory v, boolean checked)
The documentation for this class was generated from the following file: