18 package org.turro.dossier.dossier;
20 import java.util.Comparator;
21 import org.turro.dossier.entity.CategoryParticipant;
22 import org.turro.dossier.entity.IDossierParticipant;
23 import org.turro.dossier.entity.IssueParticipant;
24 import org.turro.dossier.entity.Participant;
25 import org.turro.util.CompareUtil;
34 public int compare(Object o1, Object o2) {
35 long id1 = 0L, id2 = 0L;
36 String n1 =
null, n2 =
null, d1 =
null, d2 =
null;
68 int result = CompareUtil.compare(r1, r2);
69 if(result == 0) result = CompareUtil.compare(n1, n2);
70 if(result == 0) result = CompareUtil.compare(d1, d2);
71 if(result == 0) result = CompareUtil.compare(id1, id2);
77 switch (participant.
getRole()) {
78 case PARTICIPANT_SUBJECT:
81 case PARTICIPANT_OWNER:
84 case PARTICIPANT_ASSISTANT:
132 private int convertToInt(IssueParticipant participant) {
134 switch (participant.getRole()) {
138 case ISSUE_RESPONSIBLE:
144 case ISSUE_ASSISTANT:
153 private long zeroIfNull(Long value) {
int compare(Object o1, Object o2)
boolean isShowParticipants()
boolean isShowAllIssues()
boolean isShowAllAttachments()
ParticipantRole getRole()
boolean isReceiveAllEmails()