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

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 DossierContactSet.java.

Member Function Documentation

◆ getMyContacts()

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

Implements org.turro.action.IMyContact.

Definition at line 44 of file DossierContactSet.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 DossierPU();
50  for(String c : (List<String>) dao.getResultList(createCategoryCriteria(user, search))) {
51  DefaultContact dc = new DefaultContact();
52  dc.loadById(c);
53  if(dc.isValid()) {
54  css.add(dc);
55  }
56  }
57  for(String c : (List<String>) dao.getResultList(createDossierCriteria(user, search))) {
58  DefaultContact dc = new DefaultContact();
59  dc.loadById(c);
60  if(dc.isValid()) {
61  css.add(dc);
62  }
63  }
64  for(String c : (List<String>) dao.getResultList(createIssueCriteria(user, search))) {
65  DefaultContact dc = new DefaultContact();
66  dc.loadById(c);
67  if(dc.isValid()) {
68  css.add(dc);
69  }
70  }
71  }
72  }
73  return css;
74  }
Here is the call graph for this function:

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