19 package org.turro.dossier.kb;
21 import java.util.List;
22 import org.turro.auth.Authentication;
23 import org.turro.dossier.db.DossierPU;
24 import org.turro.elephant.db.WhereClause;
25 import org.turro.jpa.Dao;
26 import org.turro.plugin.contacts.IContact;
43 return dao.getResultList(wc);
55 wc.
addClause(
"select count(ip) from IssueParticipant as ip");
57 wc.
addClause(
"select ip from IssueParticipant as ip");
59 wc.
addClause(
"where ip.pendingRevision = true");
61 if(byParticipant !=
null && byParticipant.
isValid()) {
62 wc.
addClause(
"and ip.idContact = :idContact");
68 wc.
addClause(
"order by ip.issue.modification desc");
75 wc.
addClause(
"update IssueParticipant as ip");
76 wc.
addClause(
"set ip.pendingRevision = false");
77 if(byParticipant !=
null && byParticipant.
isValid()) {
78 wc.
addClause(
"where ip.idContact = :idContact");
static IContact getIContact()
void archive(long archive)
IContact getByParticipant()
void addClause(String clause)
void addNamedValue(String name, Object value)
int executeUpdate(String query)
Object getSingleResultOrNull(SqlClause sc)