19 package org.turro.assistant;
21 import java.util.Collection;
22 import java.util.HashSet;
23 import org.turro.string.Strings;
24 import org.turro.elephant.security.IUser;
25 import org.turro.plugin.contacts.IContact;
26 import org.turro.util.PhraseBuilder;
34 private final HashSet<String> subject =
new HashSet<>();
43 if(contact !=
null && contact.
isWebUser()) {
48 public void addUser(String name, String email, Object relationEntity) {
49 if(!Strings.isBlank(email)) {
50 add(
new Assistant(Strings.isBlank(name, email), email,
null, relationEntity));
59 PhraseBuilder pb =
new PhraseBuilder();
60 for(String s : subject) {
62 pb.addPendingSeparator(
",");
boolean exists(IContact contact)
void addUser(String name, String email, Object relationEntity)
void addSubject(String value)
void addContacts(Collection< IContact > contacts)
void addContact(IContact contact, Object relationEntity)
static final String CONNECTOR_EMAIL