BrightSide Workbench Full Report + Source Code
org.turro.contacts.www.MyContactsSet Class Reference
Inheritance diagram for org.turro.contacts.www.MyContactsSet:
Collaboration diagram for org.turro.contacts.www.MyContactsSet:

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 40 of file MyContactsSet.java.

Member Function Documentation

◆ getMyContacts()

Collection<IContact> org.turro.contacts.www.MyContactsSet.getMyContacts ( IConstructor  constructor,
String  search 
)

Implements org.turro.action.IMyContact.

Definition at line 43 of file MyContactsSet.java.

43  {
44  ContactSortedSet css = new ContactSortedSet(I_.api().used());
45  if(!Strings.isBlank(search)) {
46  if(constructor.isInRole("contact:all") || constructor.isInRole("contact:list-all")) {
47  Dao dao = new ContactsPU();
48  for(Contact c : (List<Contact>) dao.getResultList(createCriteria(search))) {
49  IContact dc= c.getIContact();
50  css.add(dc);
51  for(IContact cc : dc.getRelations()) {
52  css.add(cc);
53  }
54  }
55  }
56  }
57  return css;
58  }
Here is the call graph for this function:

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