BrightSide Workbench Full Report + Source Code
org.turro.contacts.relation.ValidationStatus Class Reference

Public Member Functions

 ValidationStatus (BusinessRelation relation)
 
ValidationRule getRule ()
 
boolean isValidated ()
 
boolean isPending ()
 
boolean hasHHRR ()
 

Detailed Description

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

Definition at line 38 of file ValidationStatus.java.

Constructor & Destructor Documentation

◆ ValidationStatus()

org.turro.contacts.relation.ValidationStatus.ValidationStatus ( BusinessRelation  relation)

Definition at line 44 of file ValidationStatus.java.

44  {
45  this.relation = relation;
46  this.workers = relation.getBusiness().getWorkerSet();
47  this.validation = RelationValidation.getFrom(relation);
48  updateRule();
49  }
static RelationValidation getFrom(BusinessRelation relation)
Here is the call graph for this function:

Member Function Documentation

◆ getRule()

ValidationRule org.turro.contacts.relation.ValidationStatus.getRule ( )

Definition at line 51 of file ValidationStatus.java.

51  {
52  return validation.getRule();
53  }
Here is the call graph for this function:

◆ hasHHRR()

boolean org.turro.contacts.relation.ValidationStatus.hasHHRR ( )

Definition at line 63 of file ValidationStatus.java.

63  {
64  return workers.stream().anyMatch(r -> RelationType.REL_HHRR.equals(r.getType()));
65  }

◆ isPending()

boolean org.turro.contacts.relation.ValidationStatus.isPending ( )

Definition at line 59 of file ValidationStatus.java.

59  {
60  return validation != null && !validation.isValidated();
61  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isValidated()

boolean org.turro.contacts.relation.ValidationStatus.isValidated ( )

Definition at line 55 of file ValidationStatus.java.

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

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