BrightSide Workbench Full Report + Source Code
org.turro.crm.entity.Customer Class Reference
Inheritance diagram for org.turro.crm.entity.Customer:
Collaboration diagram for org.turro.crm.entity.Customer:

Public Member Functions

Set< ActivitySectorgetActivitySectors ()
 
void setActivitySectors (Set< ActivitySector > activitySectors)
 
Set< ActivitySectorgetCustomerSectors ()
 
void setCustomerSectors (Set< ActivitySector > customerSectors)
 
long getId ()
 
void setId (long id)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
String getName ()
 
void setName (String name)
 
Set< CustomerOwnergetOwnedBy ()
 
void setOwnedBy (Set< CustomerOwner > ownedBy)
 
Set< SaleProspectgetSaleProspects ()
 
void setSaleProspects (Set< SaleProspect > saleProspects)
 
Set< TechnologygetTechnologies ()
 
void setTechnologies (Set< Technology > technologies)
 
Object entityId ()
 
boolean isEmpty ()
 
Collection< Collection > collections ()
 
IContact getIContact ()
 
void setIContact (IContact contact)
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 

Detailed Description

Author
llturro

Definition at line 18 of file Customer.java.

Member Function Documentation

◆ collections()

Collection<Collection> org.turro.crm.entity.Customer.collections ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 125 of file Customer.java.

125  {
126  return List.of(ownedBy);
127  }

◆ entityId()

Object org.turro.crm.entity.Customer.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 115 of file Customer.java.

115  {
116  return id;
117  }

◆ getActivitySectors()

Set<ActivitySector> org.turro.crm.entity.Customer.getActivitySectors ( )

Definition at line 46 of file Customer.java.

46  {
47  return activitySectors;
48  }
Here is the caller graph for this function:

◆ getCustomerSectors()

Set<ActivitySector> org.turro.crm.entity.Customer.getCustomerSectors ( )

Definition at line 54 of file Customer.java.

54  {
55  return customerSectors;
56  }
Here is the caller graph for this function:

◆ getIContact()

IContact org.turro.crm.entity.Customer.getIContact ( )

Definition at line 133 of file Customer.java.

133  {
134  if(_contact == null) {
135  _contact = Contacts.getContactById(idContact);
136  }
137  return _contact;
138  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

long org.turro.crm.entity.Customer.getId ( )

Definition at line 62 of file Customer.java.

62  {
63  return id;
64  }
Here is the caller graph for this function:

◆ getIdContact()

String org.turro.crm.entity.Customer.getIdContact ( )

Definition at line 70 of file Customer.java.

70  {
71  return idContact;
72  }

◆ getName()

String org.turro.crm.entity.Customer.getName ( )

Definition at line 80 of file Customer.java.

80  {
81  return name;
82  }
Here is the caller graph for this function:

◆ getOwnedBy()

Set<CustomerOwner> org.turro.crm.entity.Customer.getOwnedBy ( )

Definition at line 88 of file Customer.java.

88  {
89  return ownedBy;
90  }
Here is the caller graph for this function:

◆ getSaleProspects()

Set<SaleProspect> org.turro.crm.entity.Customer.getSaleProspects ( )

Definition at line 96 of file Customer.java.

96  {
97  return saleProspects;
98  }

◆ getTechnologies()

Set<Technology> org.turro.crm.entity.Customer.getTechnologies ( )

Definition at line 104 of file Customer.java.

104  {
105  return technologies;
106  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.crm.entity.Customer.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 120 of file Customer.java.

120  {
121  return Strings.isBlank(idContact);
122  }

◆ setActivitySectors()

void org.turro.crm.entity.Customer.setActivitySectors ( Set< ActivitySector activitySectors)

Definition at line 50 of file Customer.java.

50  {
51  this.activitySectors = activitySectors;
52  }

◆ setCustomerSectors()

void org.turro.crm.entity.Customer.setCustomerSectors ( Set< ActivitySector customerSectors)

Definition at line 58 of file Customer.java.

58  {
59  this.customerSectors = customerSectors;
60  }

◆ setIContact()

void org.turro.crm.entity.Customer.setIContact ( IContact  contact)

Definition at line 140 of file Customer.java.

140  {
141  _contact = contact;
142  idContact = _contact != null ? _contact.getId() : null;
143  name = _contact != null ? _contact.getName() : null;
144  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setId()

void org.turro.crm.entity.Customer.setId ( long  id)

Definition at line 66 of file Customer.java.

66  {
67  this.id = id;
68  }

◆ setIdContact()

void org.turro.crm.entity.Customer.setIdContact ( String  idContact)

Definition at line 74 of file Customer.java.

74  {
75  this.idContact = idContact;
76  resetIContact();
78  }
void setIContact(IContact contact)
Definition: Customer.java:140
Here is the call graph for this function:

◆ setName()

void org.turro.crm.entity.Customer.setName ( String  name)

Definition at line 84 of file Customer.java.

84  {
85  this.name = name;
86  }

◆ setOwnedBy()

void org.turro.crm.entity.Customer.setOwnedBy ( Set< CustomerOwner ownedBy)

Definition at line 92 of file Customer.java.

92  {
93  this.ownedBy = ownedBy;
94  }

◆ setSaleProspects()

void org.turro.crm.entity.Customer.setSaleProspects ( Set< SaleProspect saleProspects)

Definition at line 100 of file Customer.java.

100  {
101  this.saleProspects = saleProspects;
102  }

◆ setTechnologies()

void org.turro.crm.entity.Customer.setTechnologies ( Set< Technology technologies)

Definition at line 108 of file Customer.java.

108  {
109  this.technologies = technologies;
110  }

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