19 package org.turro.assistant;
21 import java.util.Collections;
22 import java.util.List;
23 import org.turro.mail.MailValidator;
24 import org.turro.string.Strings;
25 import org.turro.action.Contacts;
26 import org.turro.annotation.ExternalAssistant;
27 import org.turro.commentit.CommentItUtil;
28 import org.turro.contacts.Attendee;
29 import org.turro.contacts.CommentIt;
30 import org.turro.contacts.Contact;
31 import org.turro.contacts.Convocation;
32 import org.turro.contacts.VoteIt;
33 import org.turro.elephant.security.IUser;
34 import org.turro.entities.Entities;
35 import org.turro.plugin.contacts.IContact;
36 import org.turro.voteit.VoteItUtil;
46 public void add(Object entity,
boolean deep,
AssistantSet assistants, Object data) {
47 if(entity instanceof String) {
66 if(attendee !=
null && !attendee.isEmpty()) {
67 IContact contact = attendee.getIContact();
73 }
if(entity instanceof
Contact) {
75 if(contact !=
null && contact.
isValid()) {
95 if(ci.getCreator() !=
null) {
96 String name = ci.getName(), mail = ci.getEmail();
97 if(!Strings.isBlank(name) && MailValidator.check(mail)) {
103 if((data instanceof String) && ((String) data).contains(
AssistantConstants.FROM_VOTES)) {
105 if(vi.getCreator() !=
null) {
106 String name = vi.getName(), mail = vi.getEmail();
107 if(!Strings.isBlank(name) && MailValidator.check(mail)) {
126 return Collections.EMPTY_LIST;
static final String FROM_COMMENTS
void addSubject(String value)
static IElephantEntity getController(String path)
static List< VoteIt > allVotes(String path)
static final String CONNECTOR_EMAIL