◆ DossierViewpoint()
org.turro.dossier.zul.viewer.DossierViewpoint.DossierViewpoint |
( |
| ) |
|
◆ getCategory()
Category org.turro.dossier.zul.viewer.DossierViewpoint.getCategory |
( |
| ) |
|
◆ getContact()
IContact org.turro.dossier.zul.viewer.DossierViewpoint.getContact |
( |
| ) |
|
◆ getDossiers()
List<Dossier> org.turro.dossier.zul.viewer.DossierViewpoint.getDossiers |
( |
String |
searchValue, |
|
|
boolean |
onlyActive |
|
) |
| |
Definition at line 140 of file DossierViewpoint.java.
141 return getDossiers(contact, searchValue, onlyActive);
List< Dossier > getDossiers(String searchValue, boolean onlyActive)
◆ getDossiersMap()
Map<IContact, List<Dossier> > org.turro.dossier.zul.viewer.DossierViewpoint.getDossiersMap |
( |
String |
searchValue, |
|
|
boolean |
onlyActive |
|
) |
| |
Definition at line 103 of file DossierViewpoint.java.
104 IContactTreeMap<IContact, List<Dossier>> dossiers =
new IContactTreeMap<IContact, List<Dossier>>(
105 new IContactNameComparator());
106 if(contact !=
null) {
107 List<Dossier> ld =
getDossiers(searchValue, onlyActive);
108 if(viewpoint.equals(ParticipantRole.PARTICIPANT_SUBJECT)) {
110 dossiers.put(contact, ld);
119 for(Dossier d : ld) {
121 if(d.getSubject() ==
null) {
122 cId = Authentication.getIContact().getId();
124 cId = d.getSubject().getIdContact();
126 List<Dossier> tld = dossiers.getById(cId);
128 tld =
new ArrayList<Dossier>();
130 dossiers.putById(cId, tld);
◆ getPossibleCategories()
List<Category> org.turro.dossier.zul.viewer.DossierViewpoint.getPossibleCategories |
( |
| ) |
|
Definition at line 75 of file DossierViewpoint.java.
76 WhereClause wc =
new WhereClause();
77 wc.addClause(
"select distinct dossier.category from Dossier as dossier");
78 wc.addClause(
"left join dossier.participants participant");
79 wc.addClause(DossierResults.getCategoryJoins());
80 wc.addClause(
"where (");
82 wc.addClause(
"participant.idContact = :idContact");
83 wc.addNamedValue(
"idContact", contact.
getId());
84 if(viewpoint.equals(ParticipantRole.PARTICIPANT_OWNER)) {
85 wc.addClause(
"and participant.role <> :roleContact");
86 wc.addNamedValue(
"roleContact", ParticipantRole.PARTICIPANT_SUBJECT);
88 wc.addClause(
"and participant.role = :roleContact");
89 wc.addNamedValue(
"roleContact", viewpoint);
92 if(viewpoint.equals(ParticipantRole.PARTICIPANT_OWNER)) {
93 DossierResults.addCategoryConditionals(wc,
"or", contact.
getId(),
94 ParticipantRole.PARTICIPANT_SUBJECT,
"<>");
96 DossierResults.addCategoryConditionals(wc,
"or", contact.
getId(),
100 return new DossierPU().getResultList(wc);
◆ getViewpoint()
ParticipantRole org.turro.dossier.zul.viewer.DossierViewpoint.getViewpoint |
( |
| ) |
|
◆ setCategory()
void org.turro.dossier.zul.viewer.DossierViewpoint.setCategory |
( |
Category |
category | ) |
|
◆ setContact()
void org.turro.dossier.zul.viewer.DossierViewpoint.setContact |
( |
IContact |
contact | ) |
|
◆ setViewpoint()
void org.turro.dossier.zul.viewer.DossierViewpoint.setViewpoint |
( |
ParticipantRole |
viewpoint | ) |
|
The documentation for this class was generated from the following file: