BrightSide Workbench Full Report + Source Code
org.turro.alliance.contact.Relations Class Reference
Inheritance diagram for org.turro.alliance.contact.Relations:
Collaboration diagram for org.turro.alliance.contact.Relations:

Public Member Functions

Set< IContactRelationgetCoworkerRelations ()
 
- Public Member Functions inherited from org.turro.plugin.contacts.AbstractRelations
IRelations date (Date date)
 
IRelations outer ()
 
IRelations company ()
 
IRelations staff ()
 
IContact getCompany ()
 
Optional< IContactgetOptCompany ()
 
IContactRelation getCompanyRelation ()
 
Optional< IContactRelationgetOptCompanyRelation ()
 
List< IContactgetCompanies ()
 
Set< IContactRelationgetCompanyRelations ()
 
List< IContactgetCoworkers ()
 
List< IContactgetWorkers ()
 
Set< IContactRelationgetWorkerRelations ()
 
List< IContactgetDocents ()
 
List< IContactRelationgetDocentRelations ()
 
List< IContactgetStudents ()
 
List< IContactRelationgetStudentRelations ()
 
boolean inStaff (IContact worker)
 
Set< IContactRelationgetCurrent ()
 
Set< IContactRelationgetOutdated ()
 

Static Public Member Functions

static boolean inStaff (IContact company, IContact worker)
 
static Relations companies (IContact contact)
 
static Relations staff (IContact contact)
 

Protected Member Functions

Relations load ()
 
- Protected Member Functions inherited from org.turro.plugin.contacts.AbstractRelations
 AbstractRelations (IContact contact, boolean asWorker)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.plugin.contacts.AbstractRelations
final IContact contact
 
Date date
 
boolean outer
 

Detailed Description

Member Function Documentation

◆ companies()

static Relations org.turro.alliance.contact.Relations.companies ( IContact  contact)
static

Definition at line 70 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/contact/Relations.java.

70  {
71  return new Relations(contact, true);
72  }
Here is the caller graph for this function:

◆ getCoworkerRelations()

Set<IContactRelation> org.turro.alliance.contact.Relations.getCoworkerRelations ( )

Reimplemented from org.turro.plugin.contacts.AbstractRelations.

Definition at line 47 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/contact/Relations.java.

47  {
48  if(asWorker) {
49  return new TreeSet(getCurrent().stream()
50  .flatMap(r -> Relations.staff(r.getRelatedIContact()).getWorkerRelations().stream())
51  .toList());
52  }
53  return Collections.EMPTY_SET;
54  }
Here is the call graph for this function:

◆ inStaff()

static boolean org.turro.alliance.contact.Relations.inStaff ( IContact  company,
IContact  worker 
)
static

Definition at line 40 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/contact/Relations.java.

40  {
41  return Relations.staff(company).inStaff(worker);
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load()

Relations org.turro.alliance.contact.Relations.load ( )
protected

Reimplemented from org.turro.plugin.contacts.AbstractRelations.

Definition at line 59 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/contact/Relations.java.

59  {
60  if(isEmpty()) {
61  for(IContactRelation cr : asWorker ? baseContact.getBusinessRelations() : baseContact.getWorkerRelations()) {
62  add(cr);
63  }
64  }
65  return this;
66  }
Iterable< IContactRelation > getBusinessRelations()
Definition: AxContact.java:146
Iterable< IContactRelation > getWorkerRelations()
Definition: AxContact.java:150
Here is the call graph for this function:

◆ staff()

static Relations org.turro.alliance.contact.Relations.staff ( IContact  contact)
static

Definition at line 74 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/contact/Relations.java.

74  {
75  return new Relations(contact, false);
76  }
Here is the caller graph for this function:

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