19 package org.turro.dossier.command;
21 import org.turro.dossier.db.DossierPU;
22 import org.turro.dossier.entity.Category;
23 import org.turro.dossier.entity.CategoryParticipant;
24 import org.turro.dossier.entity.ParticipantRole;
25 import org.turro.jpa.Dao;
26 import org.turro.plugin.contacts.IContact;
39 this.contact = contact;
40 this.category = category;
41 this.participant = participant;
57 return role.equals(participant.
getRole());
64 getDao().saveObject(participant);
68 public void delete() {
69 if(participant.
getId() !=
null) {
70 getDao().
executeUpdate(
"delete from CategoryParticipant where id = ?",
new Object[] { participant.
getId() });
78 private Dao getDao() {
CategoryParticipant getParticipant()
boolean isRole(ParticipantRole role)
CategoryParticipationWrapper(IContact contact, Category category, CategoryParticipant participant)
void setIContact(IContact contact)
ParticipantRole getRole()
void setCategory(Category category)
int executeUpdate(String query)