BrightSide Workbench Full Report + Source Code
org.turro.dossier.kb.KnowledgeBaseVM Class Reference

Public Member Functions

 KnowledgeBaseVM ()
 
void showInfo (@BindingParam("item") IssueWrapper item)
 
void update ()
 
void selectEntity (@BindingParam("entity") Object entity)
 
void selectContact (@BindingParam("contact") IContact contact)
 
void showAttachments (@BindingParam("issue") Issue issue)
 
void addInformation (@BindingParam("issue") Issue issue)
 
void setSearchValue (String searchValue)
 
String getSearchValue ()
 
boolean isOnlyTitle ()
 
void setOnlyTitle (boolean onlyTitle)
 
void setSelectedCategory (Category category)
 
Category getSelectedCategory ()
 
void setSelectedDossier (Dossier dossier)
 
Dossier getSelectedDossier ()
 
void setParticipant (IContact contact)
 
IContact getParticipant ()
 
Set< IssueStatusgetStatus ()
 
void setStatus (Set< IssueStatus > status)
 
Set< IssueTypegetTypes ()
 
void setTypes (Set< IssueType > types)
 
int getMaxResults ()
 
void setMaxResults (int maxResults)
 
KnowledgeBaseList getModel ()
 

Detailed Description

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

Definition at line 45 of file KnowledgeBaseVM.java.

Constructor & Destructor Documentation

◆ KnowledgeBaseVM()

org.turro.dossier.kb.KnowledgeBaseVM.KnowledgeBaseVM ( )

Definition at line 49 of file KnowledgeBaseVM.java.

49  {
50  query = new KnowledgeBaseQuery();
51  }

Member Function Documentation

◆ addInformation()

void org.turro.dossier.kb.KnowledgeBaseVM.addInformation ( @BindingParam("issue") Issue  issue)

Definition at line 102 of file KnowledgeBaseVM.java.

102  {
103  DossierMenu.addInformation(issue, null);
104  }
Here is the call graph for this function:

◆ getMaxResults()

int org.turro.dossier.kb.KnowledgeBaseVM.getMaxResults ( )

Definition at line 162 of file KnowledgeBaseVM.java.

162  {
163  return query.getMaxResults();
164  }
Here is the call graph for this function:

◆ getModel()

KnowledgeBaseList org.turro.dossier.kb.KnowledgeBaseVM.getModel ( )

Definition at line 170 of file KnowledgeBaseVM.java.

170  {
171  return query.getResultList();
172  }
Here is the call graph for this function:

◆ getParticipant()

IContact org.turro.dossier.kb.KnowledgeBaseVM.getParticipant ( )

Definition at line 142 of file KnowledgeBaseVM.java.

142  {
143  return query.getByParticipant();
144  }
Here is the call graph for this function:

◆ getSearchValue()

String org.turro.dossier.kb.KnowledgeBaseVM.getSearchValue ( )

Definition at line 110 of file KnowledgeBaseVM.java.

110  {
111  return query.getSearchValue();
112  }
Here is the call graph for this function:

◆ getSelectedCategory()

Category org.turro.dossier.kb.KnowledgeBaseVM.getSelectedCategory ( )

Definition at line 126 of file KnowledgeBaseVM.java.

126  {
127  return query.getCategory();
128  }
Here is the call graph for this function:

◆ getSelectedDossier()

Dossier org.turro.dossier.kb.KnowledgeBaseVM.getSelectedDossier ( )

Definition at line 134 of file KnowledgeBaseVM.java.

134  {
135  return query.getDossier();
136  }
Here is the call graph for this function:

◆ getStatus()

Set<IssueStatus> org.turro.dossier.kb.KnowledgeBaseVM.getStatus ( )

Definition at line 146 of file KnowledgeBaseVM.java.

146  {
147  return query.getStatus();
148  }
Here is the call graph for this function:

◆ getTypes()

Set<IssueType> org.turro.dossier.kb.KnowledgeBaseVM.getTypes ( )

Definition at line 154 of file KnowledgeBaseVM.java.

154  {
155  return query.getTypes();
156  }
Here is the call graph for this function:

◆ isOnlyTitle()

boolean org.turro.dossier.kb.KnowledgeBaseVM.isOnlyTitle ( )

Definition at line 114 of file KnowledgeBaseVM.java.

114  {
115  return query.isOnlyTitle();
116  }
Here is the call graph for this function:

◆ selectContact()

void org.turro.dossier.kb.KnowledgeBaseVM.selectContact ( @BindingParam("contact") IContact  contact)

Definition at line 83 of file KnowledgeBaseVM.java.

83  {
84  setParticipant(contact);
85  }
Here is the call graph for this function:

◆ selectEntity()

void org.turro.dossier.kb.KnowledgeBaseVM.selectEntity ( @BindingParam("entity") Object  entity)

Definition at line 68 of file KnowledgeBaseVM.java.

68  {
69  if(entity instanceof Category) {
70  setSelectedCategory((Category) entity);
71  setSelectedDossier(null);
72  } else if(entity instanceof Dossier) {
73  setSelectedDossier((Dossier) entity);
74  setSelectedCategory(null);
75  } else {
76  setSelectedCategory(null);
77  setSelectedDossier(null);
78  }
79  }
void setSelectedCategory(Category category)
Here is the call graph for this function:

◆ setMaxResults()

void org.turro.dossier.kb.KnowledgeBaseVM.setMaxResults ( int  maxResults)

Definition at line 166 of file KnowledgeBaseVM.java.

166  {
167  query.setMaxResults(maxResults);
168  }
Here is the call graph for this function:

◆ setOnlyTitle()

void org.turro.dossier.kb.KnowledgeBaseVM.setOnlyTitle ( boolean  onlyTitle)

Definition at line 118 of file KnowledgeBaseVM.java.

118  {
119  query.setOnlyTitle(onlyTitle);
120  }
Here is the call graph for this function:

◆ setParticipant()

void org.turro.dossier.kb.KnowledgeBaseVM.setParticipant ( IContact  contact)

Definition at line 138 of file KnowledgeBaseVM.java.

138  {
139  query.setByParticipant(contact);
140  }
void setByParticipant(IContact byParticipant)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSearchValue()

void org.turro.dossier.kb.KnowledgeBaseVM.setSearchValue ( String  searchValue)

Definition at line 106 of file KnowledgeBaseVM.java.

106  {
107  query.setSearchValue(searchValue);
108  }
Here is the call graph for this function:

◆ setSelectedCategory()

void org.turro.dossier.kb.KnowledgeBaseVM.setSelectedCategory ( Category  category)

Definition at line 122 of file KnowledgeBaseVM.java.

122  {
123  query.setCategory(category);
124  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedDossier()

void org.turro.dossier.kb.KnowledgeBaseVM.setSelectedDossier ( Dossier  dossier)

Definition at line 130 of file KnowledgeBaseVM.java.

130  {
131  query.setDossier(dossier);
132  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStatus()

void org.turro.dossier.kb.KnowledgeBaseVM.setStatus ( Set< IssueStatus status)

Definition at line 150 of file KnowledgeBaseVM.java.

150  {
151  query.setStatus(status);
152  }
void setStatus(Set< IssueStatus > status)
Here is the call graph for this function:

◆ setTypes()

void org.turro.dossier.kb.KnowledgeBaseVM.setTypes ( Set< IssueType types)

Definition at line 158 of file KnowledgeBaseVM.java.

158  {
159  query.setTypes(types);
160  }
Here is the call graph for this function:

◆ showAttachments()

void org.turro.dossier.kb.KnowledgeBaseVM.showAttachments ( @BindingParam("issue") Issue  issue)

Definition at line 88 of file KnowledgeBaseVM.java.

88  {
89  Application app = Application.getApplication();
90  IssueWrapper iw = new IssueWrapper(issue);
91  if(app.isInRole("issue:show") &&
92  (app.isInRole("issue:all") || iw.isFullParticipant())) {
93  IssueAttachTree iat = new IssueAttachTree();
94  iat.setEntity(issue);
95  iat.setChanges(new Changes());
96  SelectionDialog.showComponent(Framework.getCurrent().getPage(), I_.get("Attachments"),
97  iat, "80%", "80%", null);
98  }
99  }
Here is the call graph for this function:

◆ showInfo()

void org.turro.dossier.kb.KnowledgeBaseVM.showInfo ( @BindingParam("item") IssueWrapper  item)

Definition at line 54 of file KnowledgeBaseVM.java.

54  {
55  Application app = Application.getApplication();
56  if(app.isInRole("issue:show") &&
57  (app.isInRole("issue:all") || item.isFullParticipant())) {
58  DossiersInfo.popup(item.getIssue());
59  }
60  }
Here is the call graph for this function:

◆ update()

void org.turro.dossier.kb.KnowledgeBaseVM.update ( )

Definition at line 64 of file KnowledgeBaseVM.java.

64 {}

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