18 package org.turro.activity;
20 import org.turro.dossier.db.DossierPU;
21 import org.turro.dossier.entity.Dossier;
22 import org.turro.dossier.entity.Participant;
23 import org.turro.dossier.entity.ParticipantRole;
24 import org.turro.dossier.zul.menu.DossierMenu;
25 import org.turro.elephant.db.WhereClause;
26 import org.turro.i18n.I_;
27 import org.turro.jpa.Dao;
28 import org.turro.path.Path;
29 import org.turro.plugin.contacts.IContact;
30 import org.turro.util.Chars;
41 return "BrightSide Dossiers - " +
I_.
get(
"Dossier");
51 if(!entityPath.isRoot() &&
"contact".equals(entityPath.getRoot())) {
53 wc.
addClause(
"select distinct participant from Participant as participant");
54 wc.
addClause(
"where participant.idContact = :id");
88 "update Participant set name = ? " +
89 "where idContact = ?",
106 if(v !=
null && !toPath.isRoot() &&
"contact".
equals(toPath.getRoot())) {
WhereClause getQuery(Path entityPath)
void onChange(Object entity)
String getDescription(Participant v)
void onDelete(Object entity)
void doDelete(Participant v)
Object getReferringEntity(Participant v)
void doShow(Participant v)
void doChangeFor(Participant v, Path toPath)
boolean getCanDelete(Participant v)
boolean getCanChangeFor(Participant v)
Set< Participant > getParticipants()
String getFullDescription()
ParticipantRole getRole()
boolean equals(Object obj)
void addClause(String clause)
void addNamedValue(String name, Object value)
static String byKey(String key)
static String get(String msg)
int executeUpdate(String query)