19 package org.turro.assistant;
21 import java.util.Collections;
22 import java.util.EnumSet;
23 import java.util.List;
24 import org.turro.action.Contacts;
25 import org.turro.annotation.ExternalAssistant;
26 import org.turro.elephant.db.ElephantPU;
27 import org.turro.elephant.db.WhereClause;
28 import org.turro.elephant.entities.db.EntityParticipation;
29 import org.turro.elephant.security.IUser;
30 import org.turro.entities.Entities;
31 import org.turro.jpa.Dao;
32 import org.turro.participation.ParticipationReason;
33 import org.turro.path.Path;
34 import org.turro.plugin.contacts.IContact;
44 public void add(Object entity,
boolean deep,
AssistantSet assistants, Object data) {
45 if(entity instanceof String) {
56 wc.
addClause(
"select ep from EntityParticipation ep");
57 wc.
addClause(
"where ep.entityPath = :entityPath");
59 wc.
addClause(
"and ep.reason in (:reasons)");
62 Path path =
new Path(ea.getParticipatorPath());
63 if(
"contact".equals(path.getRoot())) {
65 if(contact !=
null && contact.
isWebUser()) {
88 return Collections.EMPTY_LIST;
List< String > getParticiped(IContact contact)
void addFromEntity(Object entity, boolean deep, AssistantSet assistants, Object data)
void addFromEntityPathData(String entityPath, AssistantSet assistants, Object data)
void add(Object entity, boolean deep, AssistantSet assistants, Object data)
void addFromEntityData(Object entity, AssistantSet assistants, Object data)
void addFromEntityPath(String entityPath, boolean deep, AssistantSet assistants, Object data)
void addClause(String clause)
void addNamedValue(String name, Object value)
static IElephantEntity getController(String path)
static final String CONNECTOR_EMAIL