BrightSide Workbench Full Report + Source Code
org.turro.contacts.relation.ContactRelationAdapter Class Reference
Inheritance diagram for org.turro.contacts.relation.ContactRelationAdapter:
Collaboration diagram for org.turro.contacts.relation.ContactRelationAdapter:

Public Member Functions

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

Detailed Description

Constructor & Destructor Documentation

◆ ContactRelationAdapter()

org.turro.contacts.relation.ContactRelationAdapter.ContactRelationAdapter ( boolean  asWorker,
BusinessRelation  relation 
)

Definition at line 38 of file BrightSide/contacts/src/main/java/org/turro/contacts/relation/ContactRelationAdapter.java.

38  {
39  super(asWorker ? Contacts.getContact(relation.getBusiness()) : Contacts.getContact(relation.getContact()));
40  this.asWorker = asWorker;
41  this.relation = relation;
42  }
Here is the call graph for this function:

Member Function Documentation

◆ asWorker()

boolean org.turro.contacts.relation.ContactRelationAdapter.asWorker ( )

◆ getDue()

String org.turro.contacts.relation.ContactRelationAdapter.getDue ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 45 of file BrightSide/contacts/src/main/java/org/turro/contacts/relation/ContactRelationAdapter.java.

45  {
46  return relation.getFormattedDescription();
47  }
Here is the call graph for this function:

◆ getEndDate()

Date org.turro.contacts.relation.ContactRelationAdapter.getEndDate ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 91 of file BrightSide/contacts/src/main/java/org/turro/contacts/relation/ContactRelationAdapter.java.

91  {
92  return relation.getEndDate();
93  }
Here is the call graph for this function:

◆ getImage()

String org.turro.contacts.relation.ContactRelationAdapter.getImage ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 75 of file BrightSide/contacts/src/main/java/org/turro/contacts/relation/ContactRelationAdapter.java.

75  {
76  if(!Strings.isBlank(relation.getRelationType())) {
77  RelationType rt = RelationType.getFromString(relation.getRelationType());
78  if(rt != null) {
79  return rt.getImage();
80  }
81  }
82  return Images.getBlankImage();
83  }
Here is the call graph for this function:

◆ getRelation()

Object org.turro.contacts.relation.ContactRelationAdapter.getRelation ( )

◆ getStartDate()

Date org.turro.contacts.relation.ContactRelationAdapter.getStartDate ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 86 of file BrightSide/contacts/src/main/java/org/turro/contacts/relation/ContactRelationAdapter.java.

86  {
87  return relation.getStartDate();
88  }
Here is the call graph for this function:

◆ getStrong()

boolean org.turro.contacts.relation.ContactRelationAdapter.getStrong ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 65 of file BrightSide/contacts/src/main/java/org/turro/contacts/relation/ContactRelationAdapter.java.

65  {
66  return relation.isPreferential();
67  }
Here is the call graph for this function:

◆ getValidated()

boolean org.turro.contacts.relation.ContactRelationAdapter.getValidated ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 70 of file BrightSide/contacts/src/main/java/org/turro/contacts/relation/ContactRelationAdapter.java.

70  {
71  return relation.isValidated();
72  }
Here is the call graph for this function:

◆ isHHRR()

boolean org.turro.contacts.relation.ContactRelationAdapter.isHHRR ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 55 of file BrightSide/contacts/src/main/java/org/turro/contacts/relation/ContactRelationAdapter.java.

55  {
56  return relation.isHHRR();
57  }
Here is the call graph for this function:

◆ isWorker()

boolean org.turro.contacts.relation.ContactRelationAdapter.isWorker ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 50 of file BrightSide/contacts/src/main/java/org/turro/contacts/relation/ContactRelationAdapter.java.

50  {
51  return relation.isWorker();
52  }
Here is the call graph for this function:

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