18 package org.turro.activity;
20 import org.turro.dossier.db.DossierPU;
21 import org.turro.dossier.entity.Category;
22 import org.turro.dossier.entity.CategoryParticipant;
23 import org.turro.elephant.db.WhereClause;
24 import org.turro.i18n.I_;
25 import org.turro.jpa.Dao;
26 import org.turro.path.Path;
27 import org.turro.plugin.contacts.IContact;
28 import org.turro.util.Chars;
39 return "BrightSide Dossiers - " +
I_.
get(
"Category");
49 if(!entityPath.isRoot() &&
"contact".equals(entityPath.getRoot())) {
51 wc.
addClause(
"select distinct cparticipant from CategoryParticipant as cparticipant");
52 wc.
addClause(
"where cparticipant.idContact = :id");
78 throw new UnsupportedOperationException(
"Not supported yet.");
86 "update CategoryParticipant set name = ? " +
87 "where idContact = ?",
104 if(v !=
null && !toPath.isRoot() &&
"contact".
equals(toPath.getRoot())) {
106 wc.
addClause(
"update CategoryParticipant");
WhereClause getQuery(Path entityPath)
String getDescription(CategoryParticipant v)
boolean getCanChangeFor(CategoryParticipant v)
boolean getCanDelete(CategoryParticipant v)
void onChange(Object entity)
void doDelete(CategoryParticipant v)
Object getReferringEntity(CategoryParticipant v)
void onDelete(Object entity)
void doShow(CategoryParticipant v)
void doChangeFor(CategoryParticipant v, Path toPath)
boolean equals(Object obj)
ParticipantRole getRole()
Set< CategoryParticipant > getParticipants()
String getFullDescription()
void addClause(String clause)
void addNamedValue(String name, Object value)
static String byKey(String key)
static String get(String msg)
int executeUpdate(String query)