BrightSide Workbench Full Report + Source Code
org.turro.financials.model.contract.ContactRelationAdapter Class Reference
Inheritance diagram for org.turro.financials.model.contract.ContactRelationAdapter:
Collaboration diagram for org.turro.financials.model.contract.ContactRelationAdapter:

Public Member Functions

 ContactRelationAdapter (boolean asWorker, ContractParticipant contractParticipant)
 
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.financials.model.contract.ContactRelationAdapter.ContactRelationAdapter ( boolean  asWorker,
ContractParticipant  contractParticipant 
)

Definition at line 37 of file BrightSide/bsfinancials-core/src/main/java/org/turro/financials/model/contract/ContactRelationAdapter.java.

37  {
38  super(asWorker ? Contacts.getContact(contractParticipant.getContract().getContractor()) :
39  Contacts.getContact(contractParticipant.getIdContact()));
40  this.asWorker = asWorker;
41  this.contractParticipant = contractParticipant;
42  }
Here is the call graph for this function:

Member Function Documentation

◆ asWorker()

boolean org.turro.financials.model.contract.ContactRelationAdapter.asWorker ( )

◆ getDue()

String org.turro.financials.model.contract.ContactRelationAdapter.getDue ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 45 of file BrightSide/bsfinancials-core/src/main/java/org/turro/financials/model/contract/ContactRelationAdapter.java.

45  {
46  return I_.byKey(contractParticipant.getInterventionType().toString()) +
47  " (" + contractParticipant.getContract().getContractDefinition().getName() + ")";
48  }
ContractDefinition getContractDefinition()
Definition: Contract.java:125
Here is the call graph for this function:

◆ getEndDate()

Date org.turro.financials.model.contract.ContactRelationAdapter.getEndDate ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 86 of file BrightSide/bsfinancials-core/src/main/java/org/turro/financials/model/contract/ContactRelationAdapter.java.

86  {
87  return contractParticipant.getContract().getEndDate();
88  }
Here is the call graph for this function:

◆ getImage()

String org.turro.financials.model.contract.ContactRelationAdapter.getImage ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 76 of file BrightSide/bsfinancials-core/src/main/java/org/turro/financials/model/contract/ContactRelationAdapter.java.

76  {
77  return Images.getImage("contract");
78  }
Here is the call graph for this function:

◆ getRelation()

Object org.turro.financials.model.contract.ContactRelationAdapter.getRelation ( )

◆ getStartDate()

Date org.turro.financials.model.contract.ContactRelationAdapter.getStartDate ( )

Implements org.turro.plugin.contacts.IContactRelation.

Definition at line 81 of file BrightSide/bsfinancials-core/src/main/java/org/turro/financials/model/contract/ContactRelationAdapter.java.

81  {
82  return contractParticipant.getContract().getStartDate();
83  }
Here is the call graph for this function:

◆ getStrong()

boolean org.turro.financials.model.contract.ContactRelationAdapter.getStrong ( )

◆ getValidated()

boolean org.turro.financials.model.contract.ContactRelationAdapter.getValidated ( )

◆ isHHRR()

boolean org.turro.financials.model.contract.ContactRelationAdapter.isHHRR ( )

◆ isWorker()

boolean org.turro.financials.model.contract.ContactRelationAdapter.isWorker ( )

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