BrightSide Workbench Full Report + Source Code
org.turro.crm.command.CrmContactsSet Class Reference
Inheritance diagram for org.turro.crm.command.CrmContactsSet:
Collaboration diagram for org.turro.crm.command.CrmContactsSet:

Public Member Functions

Collection< IContactgetMyContacts (IConstructor constructor, String search)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 41 of file CrmContactsSet.java.

Member Function Documentation

◆ getMyContacts()

Collection<IContact> org.turro.crm.command.CrmContactsSet.getMyContacts ( IConstructor  constructor,
String  search 
)

Implements org.turro.action.IMyContact.

Definition at line 44 of file CrmContactsSet.java.

44  {
45  ContactSortedSet css = new ContactSortedSet(I_.api().used());
46  if(!Strings.isBlank(search)) {
47  IContact user = Authentication.getIContact();
48  if(user.isValid()) {
49  Dao dao = new CrmPU();
50  for(String c : (List<String>) dao.getResultList(createCriteria(user, search))) {
51  DefaultContact dc = new DefaultContact();
52  dc.loadById(c);
53  if(dc.isValid()) {
54  css.add(dc);
55  for(IContact cc : dc.getRelations()) {
56  css.add(cc);
57  }
58  }
59  }
60  }
61  }
62  return css;
63  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: