BrightSide Workbench Full Report + Source Code
org.turro.dossier.dossier.ParticipantSet< P > Class Template Reference
Inheritance diagram for org.turro.dossier.dossier.ParticipantSet< P >:
Collaboration diagram for org.turro.dossier.dossier.ParticipantSet< P >:

Public Member Functions

 ParticipantSet (Collection<? extends P > collection)
 
 ParticipantSet ()
 
boolean addAll (Collection<? extends P > collection)
 
boolean isParticipant ()
 
boolean isParticipant (IContact contact)
 
boolean isIssueParticipant (IContact contact)
 
boolean isIssueActiveParticipant (IContact contact)
 
boolean isDossierParticipant (IContact contact)
 
boolean isCategoryParticipant (IContact contact)
 
boolean isReporter (IContact contact)
 
boolean isResponsible (IContact contact)
 
boolean isQA (IContact contact)
 
boolean isAssistant (IContact contact)
 
boolean isOwner (IContact contact)
 
boolean isSubject (IContact contact)
 
boolean isShowAllAttachments (IContact contact)
 
boolean isShowAllIssues (IContact contact)
 
boolean isShowParticipants (IContact contact)
 
boolean isReceiveAllEmails (IContact contact)
 
boolean isBindingVote (IContact contact)
 
boolean isDriver ()
 
boolean isDriver (IContact contact)
 
boolean isOfferer ()
 
boolean isOfferer (IContact contact)
 
boolean isBeneficiary ()
 
boolean isBeneficiary (IContact contact)
 
boolean isCoordinator ()
 
boolean isCoordinator (IContact contact)
 
boolean isSupport ()
 
boolean isSupport (IContact contact)
 
boolean isFunding ()
 
boolean isFunding (IContact contact)
 
boolean isResearch ()
 
boolean isResearch (IContact contact)
 
boolean isConsortium ()
 
boolean isConsortium (IContact contact)
 
boolean isAdmin ()
 
boolean isAdmin (IContact contact)
 
Object participatesAs (IContact contact, Object participation)
 
Object getActiveParticipation (IContact contact)
 
Object getParticipation (IContact contact)
 
IDossierParticipant getActiveDossierParticipation (IContact contact)
 
boolean canShowAllAttachments (IContact contact)
 
boolean canShowIssue (IContact contact)
 
boolean canShowParticipants (IContact contact)
 
String getDiscriminator (IContact contact)
 
boolean isParticipantByDiscriminator (IContact contact, String discriminator)
 
Collection< String > getDiscriminators ()
 
Collection< IDossierParticipantgetParticipantsByDiscriminator (String discriminator)
 
boolean isVoteParticipant (IContact contact)
 
Collection< IContactgetVoteIParticipants ()
 
Collection< IssueParticipantgetReporters ()
 
Collection< IssueParticipantgetResponsibles ()
 
HashSet< String > getParticipationStrings (IContact contact)
 
Collection< IDossierParticipantgetOwners ()
 
Collection< IDossierParticipantgetAssistants ()
 
Collection< IDossierParticipantgetSubjects ()
 
Collection< IDossierParticipantgetShowAllAttachments ()
 
Collection< IDossierParticipantgetShowAllIssues ()
 
Collection< IDossierParticipantgetShowParticipants ()
 
Collection< IDossierParticipantgetReceiveAllEmails ()
 
Collection< IDossierParticipantgetBidingVote ()
 
Collection< IDossierParticipantgetDrivers ()
 
Collection< IDossierParticipantgetOfferers ()
 
Collection< IDossierParticipantgetBeneficiaries ()
 
Collection< IDossierParticipantgetCoordinators ()
 
Collection< IDossierParticipantgetSupport ()
 
Collection< IDossierParticipantgetFunding ()
 
Collection< IDossierParticipantgetResearch ()
 
Collection< IDossierParticipantgetConsortium ()
 
Collection< IDossierParticipantgetAdmins ()
 
Collection< IDossierParticipantgetByFunction (Predicate whatIs)
 
boolean isRole (IContact contact, ParticipantRole role)
 
Collection< IContactgetIParticipants ()
 
Collection< IContactgetIShowAllAttachments ()
 
Collection< IContactgetIShowAllIssues ()
 
Collection< IContactgetIShowParticipants ()
 
Collection< IContactgetIReceiveAllEmails ()
 
Collection< IContactgetIBidingVote ()
 
Collection< IContactgetIDrivers ()
 
Collection< IContactgetIOfferers ()
 
Collection< IContactgetIBeneficiaries ()
 
Collection< IContactgetICoordinators ()
 
Collection< IContactgetISupport ()
 
Collection< IContactgetIFunding ()
 
Collection< IContactgetIResearch ()
 
Collection< IContactgetIConsortium ()
 
Collection< IContactgetIAdmins ()
 
Collection< IContactgetIContactsByFunction (Predicate whatIs)
 

Detailed Description

Constructor & Destructor Documentation

◆ ParticipantSet() [1/2]

org.turro.dossier.dossier.ParticipantSet< P >.ParticipantSet ( Collection<? extends P >  collection)

Definition at line 44 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

44  {
45  super(new ParticipantComparator());
46  addAllExceptEmpties(collection);
47  }

◆ ParticipantSet() [2/2]

Definition at line 49 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

49  {
50  super(new ParticipantComparator());
51  }

Member Function Documentation

◆ addAll()

boolean org.turro.dossier.dossier.ParticipantSet< P >.addAll ( Collection<? extends P >  collection)

Definition at line 54 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

54  {
55  addAllExceptEmpties(collection);
56  return true;
57  }
Here is the caller graph for this function:

◆ canShowAllAttachments()

boolean org.turro.dossier.dossier.ParticipantSet< P >.canShowAllAttachments ( IContact  contact)

Definition at line 267 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

267  {
268  if(isIssueParticipant(contact)) {
269  return true;
270  } else {
271  IDossierParticipant dp = getActiveDossierParticipation(contact);
272  if(dp != null) {
273  return dp.isShowAllAttachments();
274  }
275  }
276  return false;
277  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ canShowIssue()

boolean org.turro.dossier.dossier.ParticipantSet< P >.canShowIssue ( IContact  contact)

Definition at line 279 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

279  {
280  if(isIssueParticipant(contact)) {
281  return true;
282  } else {
283  IDossierParticipant dp = getActiveDossierParticipation(contact);
284  if(dp != null) {
285  return dp.isShowAllIssues();
286  }
287  }
288  return false;
289  }
Here is the call graph for this function:

◆ canShowParticipants()

boolean org.turro.dossier.dossier.ParticipantSet< P >.canShowParticipants ( IContact  contact)

Definition at line 291 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

291  {
292  IDossierParticipant dp = getActiveDossierParticipation(contact);
293  return isIssueActiveParticipant(contact) || (dp != null && dp.isShowParticipants());
294  }
Here is the call graph for this function:

◆ getActiveDossierParticipation()

IDossierParticipant org.turro.dossier.dossier.ParticipantSet< P >.getActiveDossierParticipation ( IContact  contact)

Definition at line 255 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

255  {
256  for(Object obj : this) {
257  if(obj instanceof IDossierParticipant) {
258  IDossierParticipant dp = (IDossierParticipant) obj;
259  if(!dp.getRole().equals(ParticipantRole.PARTICIPANT_SUBJECT) && dp.getIdContact().equals(getContact(contact).getId())) {
260  return dp;
261  }
262  }
263  }
264  return null;
265  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getActiveParticipation()

Object org.turro.dossier.dossier.ParticipantSet< P >.getActiveParticipation ( IContact  contact)

Definition at line 221 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

221  {
222  for(Object obj : this) {
223  if(obj instanceof IDossierParticipant) {
224  IDossierParticipant dp = (IDossierParticipant) obj;
225  if(!dp.getRole().equals(ParticipantRole.PARTICIPANT_SUBJECT) && dp.getIdContact().equals(getContact(contact).getId())) {
226  return dp;
227  }
228  } else if(obj instanceof IssueParticipant) {
229  IssueParticipant ip = (IssueParticipant) obj;
230  if(ip.getIdContact().equals(getContact(contact).getId())) {
231  return ip;
232  }
233  }
234  }
235  return null;
236  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAdmins()

Definition at line 475 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

475  {
476  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isAdmin());
477  }
Here is the call graph for this function:

◆ getAssistants()

Definition at line 413 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

413  {
414  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) ->
415  t.getRole().equals(ParticipantRole.PARTICIPANT_ASSISTANT));
416  }
Here is the call graph for this function:

◆ getBeneficiaries()

Collection<IDossierParticipant> org.turro.dossier.dossier.ParticipantSet< P >.getBeneficiaries ( )

Definition at line 451 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

451  {
452  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isBeneficiary());
453  }
Here is the call graph for this function:

◆ getBidingVote()

Definition at line 439 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

439  {
440  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isBindingVote());
441  }
Here is the call graph for this function:

◆ getByFunction()

Collection<IDossierParticipant> org.turro.dossier.dossier.ParticipantSet< P >.getByFunction ( Predicate  whatIs)

Definition at line 479 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

479  {
480  Set<IDossierParticipant> set = new ParticipantSet<>();
481  this.stream().filter((dp) -> ((dp instanceof IDossierParticipant) && whatIs.test(dp))).forEachOrdered((dp) -> {
482  set.add((IDossierParticipant) dp);
483  });
484  return set;
485  }
Here is the caller graph for this function:

◆ getConsortium()

Definition at line 471 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

471  {
472  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isConsortium());
473  }
Here is the call graph for this function:

◆ getCoordinators()

Collection<IDossierParticipant> org.turro.dossier.dossier.ParticipantSet< P >.getCoordinators ( )

Definition at line 455 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

455  {
456  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isCoordinator());
457  }
Here is the call graph for this function:

◆ getDiscriminator()

String org.turro.dossier.dossier.ParticipantSet< P >.getDiscriminator ( IContact  contact)

Definition at line 298 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

298  {
299  IDossierParticipant dp = getActiveDossierParticipation(contact);
300  return dp != null ? dp.getDiscriminator() : null;
301  }
Here is the call graph for this function:

◆ getDiscriminators()

Collection<String> org.turro.dossier.dossier.ParticipantSet< P >.getDiscriminators ( )

Definition at line 316 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

316  {
317  Set<String> discriminators = new TreeSet<>();
318  for(Object obj : this) {
319  if(obj instanceof IDossierParticipant) {
320  IDossierParticipant dp = (IDossierParticipant) obj;
321  discriminators.add(dp.getDiscriminator() == null ? "" : dp.getDiscriminator());
322  }
323 
324  }
325  return discriminators;
326  }
Here is the call graph for this function:

◆ getDrivers()

Definition at line 443 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

443  {
444  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isDriver());
445  }
Here is the call graph for this function:

◆ getFunding()

Definition at line 463 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

463  {
464  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isFunding());
465  }
Here is the call graph for this function:

◆ getIAdmins()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIAdmins ( )

Definition at line 567 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

567  {
568  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isAdmin());
569  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIBeneficiaries()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIBeneficiaries ( )

Definition at line 543 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

543  {
544  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isBeneficiary());
545  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIBidingVote()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIBidingVote ( )

Definition at line 531 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

531  {
532  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isBindingVote());
533  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIConsortium()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIConsortium ( )

Definition at line 563 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

563  {
564  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isConsortium());
565  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIContactsByFunction()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIContactsByFunction ( Predicate  whatIs)

Definition at line 571 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

571  {
572  ContactList list = new ContactList();
573  this.stream().filter((obj) -> (obj instanceof IDossierParticipant))
574  .map((obj) -> (IDossierParticipant) obj).filter((p) -> (whatIs.test(p))).forEachOrdered((p) -> {
575  list.add(p.getIContact());
576  });
577  return list;
578  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getICoordinators()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getICoordinators ( )

Definition at line 547 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

547  {
548  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isCoordinator());
549  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIDrivers()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIDrivers ( )

Definition at line 535 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

535  {
536  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isDriver());
537  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIFunding()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIFunding ( )

Definition at line 555 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

555  {
556  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isFunding());
557  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIOfferers()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIOfferers ( )

Definition at line 539 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

539  {
540  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isOfferer());
541  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIParticipants()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIParticipants ( )

Definition at line 501 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

501  {
502  ContactList list = new ContactList();
503  for(Object obj : this) {
504  if(obj instanceof IDossierParticipant) {
505  IDossierParticipant dp = (IDossierParticipant) obj;
506  list.add(dp.getIContact());
507  } else if(obj instanceof IssueParticipant) {
508  IssueParticipant ip = (IssueParticipant) obj;
509  list.add(ip.getIContact());
510  }
511  }
512  return list;
513  }
Here is the call graph for this function:

◆ getIReceiveAllEmails()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIReceiveAllEmails ( )

Definition at line 527 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

527  {
528  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isReceiveAllEmails());
529  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIResearch()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIResearch ( )

Definition at line 559 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

559  {
560  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isResearch());
561  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIShowAllAttachments()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIShowAllAttachments ( )

Definition at line 515 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

515  {
516  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isShowAllAttachments());
517  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIShowAllIssues()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIShowAllIssues ( )

Definition at line 519 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

519  {
520  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isShowAllIssues());
521  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIShowParticipants()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getIShowParticipants ( )

Definition at line 523 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

523  {
524  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isShowParticipants());
525  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getISupport()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getISupport ( )

Definition at line 551 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

551  {
552  return getIContactsByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isSupport());
553  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOfferers()

Definition at line 447 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

447  {
448  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isOfferer());
449  }
Here is the call graph for this function:

◆ getOwners()

Definition at line 408 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

408  {
409  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) ->
410  t.getRole().equals(ParticipantRole.PARTICIPANT_OWNER));
411  }
Here is the call graph for this function:

◆ getParticipantsByDiscriminator()

Collection<IDossierParticipant> org.turro.dossier.dossier.ParticipantSet< P >.getParticipantsByDiscriminator ( String  discriminator)

Definition at line 328 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

328  {
329  Set<IDossierParticipant> participants = new ParticipantSet<>();
330  for(Object obj : this) {
331  if(obj instanceof IDossierParticipant) {
332  IDossierParticipant dp = (IDossierParticipant) obj;
333  if((Strings.isBlank(discriminator) && Strings.isBlank(dp.getDiscriminator())) ||
334  discriminator.equals(dp.getDiscriminator())) {
335  participants.add(dp);
336  }
337  }
338  }
339  return participants;
340  }
Here is the call graph for this function:

◆ getParticipation()

Object org.turro.dossier.dossier.ParticipantSet< P >.getParticipation ( IContact  contact)

Definition at line 238 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

238  {
239  for(Object obj : this) {
240  if(obj instanceof IDossierParticipant) {
241  IDossierParticipant dp = (IDossierParticipant) obj;
242  if(dp.getIdContact().equals(getContact(contact).getId())) {
243  return dp;
244  }
245  } else if(obj instanceof IssueParticipant) {
246  IssueParticipant ip = (IssueParticipant) obj;
247  if(ip.getIdContact().equals(getContact(contact).getId())) {
248  return ip;
249  }
250  }
251  }
252  return null;
253  }
Here is the call graph for this function:

◆ getParticipationStrings()

HashSet<String> org.turro.dossier.dossier.ParticipantSet< P >.getParticipationStrings ( IContact  contact)

Definition at line 386 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

386  {
387  HashSet<String> set = new HashSet<>();
388  if(Contacts.isValid(contact)) {
389  for(Object obj : this) {
390  if(obj instanceof IDossierParticipant) {
391  IDossierParticipant dp = (IDossierParticipant) obj;
392  if(dp.getIdContact().equals(contact.getId())) {
393  set.addAll(RoleUtil.getStringRoles(dp));
394  }
395  } else if(obj instanceof IssueParticipant) {
396  IssueParticipant ip = (IssueParticipant) obj;
397  if(ip.getIdContact().equals(contact.getId())) {
398  set.addAll(RoleUtil.getStringRoles(ip));
399  }
400  }
401  }
402  }
403  return set;
404  }
Here is the call graph for this function:

◆ getReceiveAllEmails()

Collection<IDossierParticipant> org.turro.dossier.dossier.ParticipantSet< P >.getReceiveAllEmails ( )

Definition at line 435 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

435  {
436  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isReceiveAllEmails());
437  }
Here is the call graph for this function:

◆ getReporters()

Definition at line 360 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

360  {
361  Set<IssueParticipant> participants = new ParticipantSet<>();
362  for(Object obj : this) {
363  if(obj instanceof IssueParticipant) {
364  IssueParticipant dp = (IssueParticipant) obj;
365  if(dp.getRole().equals(IssueParticipantRole.ISSUE_REPORTER)) {
366  participants.add(dp);
367  }
368  }
369  }
370  return participants;
371  }
Here is the call graph for this function:

◆ getResearch()

Definition at line 467 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

467  {
468  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isResearch());
469  }
Here is the call graph for this function:

◆ getResponsibles()

Collection<IssueParticipant> org.turro.dossier.dossier.ParticipantSet< P >.getResponsibles ( )

Definition at line 373 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

373  {
374  Set<IssueParticipant> participants = new ParticipantSet<>();
375  for(Object obj : this) {
376  if(obj instanceof IssueParticipant) {
377  IssueParticipant dp = (IssueParticipant) obj;
378  if(dp.getRole().equals(IssueParticipantRole.ISSUE_RESPONSIBLE)) {
379  participants.add(dp);
380  }
381  }
382  }
383  return participants;
384  }
Here is the call graph for this function:

◆ getShowAllAttachments()

Collection<IDossierParticipant> org.turro.dossier.dossier.ParticipantSet< P >.getShowAllAttachments ( )

Definition at line 423 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

423  {
424  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isShowAllAttachments());
425  }
Here is the call graph for this function:

◆ getShowAllIssues()

Collection<IDossierParticipant> org.turro.dossier.dossier.ParticipantSet< P >.getShowAllIssues ( )

Definition at line 427 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

427  {
428  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isShowAllIssues());
429  }
Here is the call graph for this function:

◆ getShowParticipants()

Collection<IDossierParticipant> org.turro.dossier.dossier.ParticipantSet< P >.getShowParticipants ( )

Definition at line 431 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

431  {
432  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isShowParticipants());
433  }
Here is the call graph for this function:

◆ getSubjects()

Definition at line 418 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

418  {
419  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) ->
420  t.getRole().equals(ParticipantRole.PARTICIPANT_SUBJECT));
421  }
Here is the call graph for this function:

◆ getSupport()

Definition at line 459 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

459  {
460  return getByFunction((Predicate<IDossierParticipant>) (IDossierParticipant t) -> t.isSupport());
461  }
Here is the call graph for this function:

◆ getVoteIParticipants()

Collection<IContact> org.turro.dossier.dossier.ParticipantSet< P >.getVoteIParticipants ( )

Definition at line 347 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

347  {
348  ContactList list = new ContactList();
349  for(Object obj : this) {
350  if(obj instanceof IDossierParticipant) {
351  IDossierParticipant dp = (IDossierParticipant) obj;
352  if(dp.isBindingVote()) {
353  list.add(dp.getIContact());
354  }
355  }
356  }
357  return list;
358  }
Here is the call graph for this function:

◆ isAdmin() [1/2]

◆ isAdmin() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isAdmin ( IContact  contact)

Definition at line 200 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

200  {
201  return getIAdmins().contains(getContact(contact));
202  }
Here is the call graph for this function:

◆ isAssistant()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isAssistant ( IContact  contact)

Definition at line 100 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

100  {
101  return participatesAs(contact, IssueParticipantRole.ISSUE_ASSISTANT) != null;
102  }
Here is the call graph for this function:

◆ isBeneficiary() [1/2]

◆ isBeneficiary() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isBeneficiary ( IContact  contact)

Definition at line 152 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

152  {
153  return getIBeneficiaries().contains(getContact(contact));
154  }
Here is the call graph for this function:

◆ isBindingVote()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isBindingVote ( IContact  contact)

Definition at line 128 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

128  {
129  return getIBidingVote().contains(getContact(contact));
130  }
Here is the call graph for this function:

◆ isCategoryParticipant()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isCategoryParticipant ( IContact  contact)

Definition at line 84 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

84  {
85  return getActiveParticipation(contact) instanceof CategoryParticipant;
86  }
Here is the call graph for this function:

◆ isConsortium() [1/2]

◆ isConsortium() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isConsortium ( IContact  contact)

Definition at line 192 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

192  {
193  return getIConsortium().contains(getContact(contact));
194  }
Here is the call graph for this function:

◆ isCoordinator() [1/2]

◆ isCoordinator() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isCoordinator ( IContact  contact)

Definition at line 160 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

160  {
161  return getICoordinators().contains(getContact(contact));
162  }
Here is the call graph for this function:

◆ isDossierParticipant()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isDossierParticipant ( IContact  contact)

Definition at line 80 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

80  {
81  return getActiveParticipation(contact) instanceof Participant;
82  }
Here is the call graph for this function:

◆ isDriver() [1/2]

◆ isDriver() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isDriver ( IContact  contact)

Definition at line 136 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

136  {
137  return getIDrivers().contains(getContact(contact));
138  }
Here is the call graph for this function:

◆ isFunding() [1/2]

◆ isFunding() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isFunding ( IContact  contact)

Definition at line 176 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

176  {
177  return getIFunding().contains(getContact(contact));
178  }
Here is the call graph for this function:

◆ isIssueActiveParticipant()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isIssueActiveParticipant ( IContact  contact)

Definition at line 71 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

71  {
72  Object obj = getActiveParticipation(contact);
73  if(obj instanceof IssueParticipant) {
74  IssueParticipant ip = (IssueParticipant) obj;
75  return !IssueParticipantRole.ISSUE_ASSISTANT.equals(ip.getRole());
76  }
77  return false;
78  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isIssueParticipant()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isIssueParticipant ( IContact  contact)

Definition at line 67 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

67  {
68  return getActiveParticipation(contact) instanceof IssueParticipant;
69  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isOfferer() [1/2]

◆ isOfferer() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isOfferer ( IContact  contact)

Definition at line 144 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

144  {
145  return getIOfferers().contains(getContact(contact));
146  }
Here is the call graph for this function:

◆ isOwner()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isOwner ( IContact  contact)

Definition at line 104 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

104  {
105  return participatesAs(contact, ParticipantRole.PARTICIPANT_OWNER) != null;
106  }
Here is the call graph for this function:

◆ isParticipant() [1/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isParticipant ( )

Definition at line 59 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

Here is the caller graph for this function:

◆ isParticipant() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isParticipant ( IContact  contact)

Definition at line 63 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

63  {
64  return getActiveParticipation(contact) != null;
65  }
Here is the call graph for this function:

◆ isParticipantByDiscriminator()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isParticipantByDiscriminator ( IContact  contact,
String  discriminator 
)

Definition at line 303 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

303  {
304  for(Object obj : this) {
305  if(obj instanceof IDossierParticipant) {
306  IDossierParticipant dp = (IDossierParticipant) obj;
307  if(dp != null && !Strings.isBlank(discriminator) && discriminator.equalsIgnoreCase(dp.getDiscriminator())
308  && dp.getIdContact().equals(contact.getId())) {
309  return true;
310  }
311  }
312  }
313  return false;
314  }
Here is the call graph for this function:

◆ isQA()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isQA ( IContact  contact)

Definition at line 96 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

96  {
97  return participatesAs(contact, IssueParticipantRole.ISSUE_QA) != null;
98  }
Here is the call graph for this function:

◆ isReceiveAllEmails()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isReceiveAllEmails ( IContact  contact)

Definition at line 124 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

124  {
125  return getIReceiveAllEmails().contains(getContact(contact));
126  }
Here is the call graph for this function:

◆ isReporter()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isReporter ( IContact  contact)

Definition at line 88 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

88  {
89  return participatesAs(contact, IssueParticipantRole.ISSUE_REPORTER) != null;
90  }
Here is the call graph for this function:

◆ isResearch() [1/2]

◆ isResearch() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isResearch ( IContact  contact)

Definition at line 184 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

184  {
185  return getIResearch().contains(getContact(contact));
186  }
Here is the call graph for this function:

◆ isResponsible()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isResponsible ( IContact  contact)

Definition at line 92 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

92  {
93  return participatesAs(contact, IssueParticipantRole.ISSUE_RESPONSIBLE) != null;
94  }
Here is the call graph for this function:

◆ isRole()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isRole ( IContact  contact,
ParticipantRole  role 
)

Definition at line 489 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

489  {
490  for(Object obj : this) {
491  if(obj instanceof IDossierParticipant) {
492  IDossierParticipant dp = (IDossierParticipant) obj;
493  if(dp.getIdContact().equals(contact.getId()) && dp.getRole().equals(role)) {
494  return true;
495  }
496  }
497  }
498  return false;
499  }
Here is the call graph for this function:

◆ isShowAllAttachments()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isShowAllAttachments ( IContact  contact)

Definition at line 112 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

112  {
113  return getIShowAllAttachments().contains(getContact(contact));
114  }
Here is the call graph for this function:

◆ isShowAllIssues()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isShowAllIssues ( IContact  contact)

Definition at line 116 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

116  {
117  return getIShowAllIssues().contains(getContact(contact));
118  }
Here is the call graph for this function:

◆ isShowParticipants()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isShowParticipants ( IContact  contact)

Definition at line 120 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

120  {
121  return getIShowParticipants().contains(getContact(contact));
122  }
Here is the call graph for this function:

◆ isSubject()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isSubject ( IContact  contact)

Definition at line 108 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

108  {
109  return participatesAs(contact, ParticipantRole.PARTICIPANT_SUBJECT) != null;
110  }
Here is the call graph for this function:

◆ isSupport() [1/2]

◆ isSupport() [2/2]

boolean org.turro.dossier.dossier.ParticipantSet< P >.isSupport ( IContact  contact)

Definition at line 168 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

168  {
169  return getISupport().contains(getContact(contact));
170  }
Here is the call graph for this function:

◆ isVoteParticipant()

boolean org.turro.dossier.dossier.ParticipantSet< P >.isVoteParticipant ( IContact  contact)

Definition at line 342 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

342  {
343  IDossierParticipant dp = getActiveDossierParticipation(contact);
344  return dp != null && dp.isBindingVote();
345  }
Here is the call graph for this function:

◆ participatesAs()

Object org.turro.dossier.dossier.ParticipantSet< P >.participatesAs ( IContact  contact,
Object  participation 
)

Definition at line 204 of file elephant-dossier/src/main/java/org/turro/dossier/dossier/ParticipantSet.java.

204  {
205  for(Object obj : this) {
206  if(obj instanceof IDossierParticipant) {
207  IDossierParticipant dp = (IDossierParticipant) obj;
208  if(dp.getRole().equals(participation) && dp.getIdContact().equals(getContact(contact).getId())) {
209  return dp;
210  }
211  } else if(obj instanceof IssueParticipant) {
212  IssueParticipant ip = (IssueParticipant) obj;
213  if(ip.getRole().equals(participation) && ip.getIdContact().equals(getContact(contact).getId())) {
214  return ip;
215  }
216  }
217  }
218  return null;
219  }
Here is the call graph for this function:
Here is the caller graph for this function:

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