BrightSide Workbench Full Report + Source Code
org.turro.plugin.contacts.AbstractContactRelation Class Referenceabstract
Inheritance diagram for org.turro.plugin.contacts.AbstractContactRelation:
Collaboration diagram for org.turro.plugin.contacts.AbstractContactRelation:

Public Member Functions

 AbstractContactRelation (IContact _contact)
 
String getRelatedId ()
 
IElephantEntity getRelatedEntity ()
 
IContact getRelatedIContact ()
 
Object getRelatedContact ()
 
String getDatesString ()
 
int compareTo (IContactRelation o)
 
- Public Member Functions inherited from org.turro.plugin.contacts.IContactRelation
String getDue ()
 
boolean isWorker ()
 
boolean isHHRR ()
 
boolean asWorker ()
 
boolean getStrong ()
 
boolean getValidated ()
 
String getImage ()
 
Date getStartDate ()
 
Date getEndDate ()
 
Object getRelation ()
 

Detailed Description

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

Definition at line 29 of file AbstractContactRelation.java.

Constructor & Destructor Documentation

◆ AbstractContactRelation()

org.turro.plugin.contacts.AbstractContactRelation.AbstractContactRelation ( IContact  _contact)

Definition at line 33 of file AbstractContactRelation.java.

33  {
34  this.contact = _contact;
35  }

Member Function Documentation

◆ compareTo()

int org.turro.plugin.contacts.AbstractContactRelation.compareTo ( IContactRelation  o)

Definition at line 70 of file AbstractContactRelation.java.

70  {
71  int result = CompareUtil.compare(getValidated(), o.getValidated());
72  if(result == 0) {
73  result = CompareUtil.compare(getStrong(), o.getStrong());
74  }
75  if(result == 0) {
76  result = CompareUtil.compare(getEndDate(), o.getEndDate());
77  }
78  if(result == 0) {
79  result = CompareUtil.compare(getStartDate(), o.getStartDate());
80  }
81  if(result == 0) {
82  result = CompareUtil.compare(getDue(), o.getDue());
83  }
84  if(result == 0) {
85  result = CompareUtil.compare(getRelatedId(), o.getRelatedId());
86  }
87  return result;
88  }
Here is the call graph for this function:

◆ getDatesString()

String org.turro.plugin.contacts.AbstractContactRelation.getDatesString ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 63 of file AbstractContactRelation.java.

63  {
64  return PositionDates.format(getStartDate(), getEndDate());
65  }
Here is the call graph for this function:

◆ getRelatedContact()

Object org.turro.plugin.contacts.AbstractContactRelation.getRelatedContact ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 58 of file AbstractContactRelation.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRelatedEntity()

IElephantEntity org.turro.plugin.contacts.AbstractContactRelation.getRelatedEntity ( )

Implements org.turro.plugin.contacts.IContactRelation.

Reimplemented in org.turro.alliance.contact.ContactRelationAdapter.

Definition at line 45 of file AbstractContactRelation.java.

45  {
46  if(_iee == null) {
47  _iee = Entities.getController(getRelatedContact());
48  }
49  return _iee;
50  }
IElephantEntity getController(String entityPath)
Here is the call graph for this function:

◆ getRelatedIContact()

IContact org.turro.plugin.contacts.AbstractContactRelation.getRelatedIContact ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 53 of file AbstractContactRelation.java.

53  {
54  return contact;
55  }
Here is the caller graph for this function:

◆ getRelatedId()

String org.turro.plugin.contacts.AbstractContactRelation.getRelatedId ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 40 of file AbstractContactRelation.java.

40  {
41  return getRelatedIContact().getId();
42  }
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: