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

Public Member Functions

Dossier getDossier ()
 
void setDossier (Dossier dossier)
 
Long getId ()
 
void setId (Long id)
 
Date getCreation ()
 
void setCreation (Date creation)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
String getName ()
 
void setName (String name)
 
boolean isReceiveAllEmails ()
 
void setReceiveAllEmails (boolean receiveAllEmails)
 
ParticipantRole getRole ()
 
void setRole (ParticipantRole role)
 
String getDiscriminator ()
 
void setDiscriminator (String discriminator)
 
boolean isShowAllAttachments ()
 
void setShowAllAttachments (boolean showAllAttachments)
 
boolean isShowAllIssues ()
 
void setShowAllIssues (boolean showAllIssues)
 
boolean isShowParticipants ()
 
void setShowParticipants (boolean showParticipants)
 
boolean isBindingVote ()
 
void setBindingVote (boolean bindingVote)
 
boolean isDriver ()
 
void setDriver (boolean driver)
 
boolean isCoordinator ()
 
void setCoordinator (boolean coordinator)
 
boolean isBeneficiary ()
 
void setBeneficiary (boolean beneficiary)
 
boolean isOfferer ()
 
void setOfferer (boolean offerer)
 
boolean isResearch ()
 
void setResearch (boolean research)
 
boolean isFunding ()
 
void setFunding (boolean funding)
 
boolean isSupport ()
 
void setSupport (boolean support)
 
boolean isConsortium ()
 
void setConsortium (boolean consortium)
 
boolean isAdmin ()
 
void setAdmin (boolean admin)
 
boolean hasRole ()
 
Object entityId ()
 
boolean isEmpty ()
 
boolean isSubject ()
 
HashSet< String > getStringRoles ()
 
IContact getIParticipant ()
 
IContact getIContact ()
 
void setIContact (IContact contact)
 
IContact getCompany ()
 
int hashCode ()
 
boolean equals (Object obj)
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Detailed Description

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

Definition at line 41 of file Participant.java.

Member Function Documentation

◆ entityId()

Object org.turro.dossier.entity.Participant.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 276 of file Participant.java.

276  {
277  return id;
278  }

◆ equals()

boolean org.turro.dossier.entity.Participant.equals ( Object  obj)

Definition at line 341 of file Participant.java.

341  {
342  if (this == obj) {
343  return true;
344  }
345  if (obj == null) {
346  return false;
347  }
348  if (getClass() != obj.getClass()) {
349  return false;
350  }
351  final Participant other = (Participant) obj;
352  return Objects.equals(this.id, other.id);
353  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCompany()

IContact org.turro.dossier.entity.Participant.getCompany ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 324 of file Participant.java.

324  {
325  if(_company == null) {
326  _company = getIContact().getCompanyRelations().getCompany();
327  }
328  return _company;
329  }
Here is the call graph for this function:

◆ getCreation()

Date org.turro.dossier.entity.Participant.getCreation ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 85 of file Participant.java.

85  {
86  return creation;
87  }
Here is the caller graph for this function:

◆ getDiscriminator()

String org.turro.dossier.entity.Participant.getDiscriminator ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 142 of file Participant.java.

142  {
143  return discriminator;
144  }
Here is the caller graph for this function:

◆ getDossier()

Dossier org.turro.dossier.entity.Participant.getDossier ( )

Definition at line 68 of file Participant.java.

68  {
69  return dossier;
70  }
Here is the caller graph for this function:

◆ getIContact()

IContact org.turro.dossier.entity.Participant.getIContact ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 306 of file Participant.java.

306  {
307  if(_contact == null) {
308  _contact = Contacts.getContactById(idContact);
309  }
310  return _contact;
311  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

Long org.turro.dossier.entity.Participant.getId ( )

Definition at line 76 of file Participant.java.

76  {
77  return id;
78  }

◆ getIdContact()

String org.turro.dossier.entity.Participant.getIdContact ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 94 of file Participant.java.

94  {
95  return idContact;
96  }
Here is the caller graph for this function:

◆ getIParticipant()

IContact org.turro.dossier.entity.Participant.getIParticipant ( )

Definition at line 301 of file Participant.java.

301  {
302  return getIContact();
303  }
Here is the call graph for this function:

◆ getName()

String org.turro.dossier.entity.Participant.getName ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 104 of file Participant.java.

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

◆ getRole()

ParticipantRole org.turro.dossier.entity.Participant.getRole ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 122 of file Participant.java.

122  {
123  return role;
124  }
Here is the caller graph for this function:

◆ getStringRoles()

HashSet<String> org.turro.dossier.entity.Participant.getStringRoles ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 293 of file Participant.java.

293  {
294  return RoleUtil.getStringRoles(this);
295  }
Here is the call graph for this function:

◆ hashCode()

int org.turro.dossier.entity.Participant.hashCode ( )

Definition at line 334 of file Participant.java.

334  {
335  int hash = 7;
336  hash = 71 * hash + Objects.hashCode(this.id);
337  return hash;
338  }

◆ hasRole()

boolean org.turro.dossier.entity.Participant.hasRole ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 268 of file Participant.java.

268  {
269  return driver || coordinator || beneficiary || offerer ||
270  research || funding || support || consortium || admin;
271  }

◆ isAdmin()

boolean org.turro.dossier.entity.Participant.isAdmin ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 259 of file Participant.java.

259  {
260  return admin;
261  }

◆ isBeneficiary()

boolean org.turro.dossier.entity.Participant.isBeneficiary ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 205 of file Participant.java.

205  {
206  return beneficiary;
207  }
Here is the caller graph for this function:

◆ isBindingVote()

boolean org.turro.dossier.entity.Participant.isBindingVote ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 178 of file Participant.java.

178  {
179  return bindingVote && !role.equals(ParticipantRole.PARTICIPANT_SUBJECT);
180  }
Here is the caller graph for this function:

◆ isConsortium()

boolean org.turro.dossier.entity.Participant.isConsortium ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 250 of file Participant.java.

250  {
251  return consortium;
252  }

◆ isCoordinator()

boolean org.turro.dossier.entity.Participant.isCoordinator ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 196 of file Participant.java.

196  {
197  return coordinator;
198  }
Here is the caller graph for this function:

◆ isDriver()

boolean org.turro.dossier.entity.Participant.isDriver ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 187 of file Participant.java.

187  {
188  return driver;
189  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.dossier.entity.Participant.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 281 of file Participant.java.

281  {
282  return role == null || !getIContact().isValid();
283  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isFunding()

boolean org.turro.dossier.entity.Participant.isFunding ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 232 of file Participant.java.

232  {
233  return funding;
234  }

◆ isOfferer()

boolean org.turro.dossier.entity.Participant.isOfferer ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 214 of file Participant.java.

214  {
215  return offerer;
216  }
Here is the caller graph for this function:

◆ isReceiveAllEmails()

boolean org.turro.dossier.entity.Participant.isReceiveAllEmails ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 113 of file Participant.java.

113  {
114  return receiveAllEmails;
115  }
Here is the caller graph for this function:

◆ isResearch()

boolean org.turro.dossier.entity.Participant.isResearch ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 223 of file Participant.java.

223  {
224  return research;
225  }

◆ isShowAllAttachments()

boolean org.turro.dossier.entity.Participant.isShowAllAttachments ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 151 of file Participant.java.

151  {
152  return showAllAttachments && !role.equals(ParticipantRole.PARTICIPANT_SUBJECT);
153  }
Here is the caller graph for this function:

◆ isShowAllIssues()

boolean org.turro.dossier.entity.Participant.isShowAllIssues ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 160 of file Participant.java.

160  {
161  return showAllIssues && !role.equals(ParticipantRole.PARTICIPANT_SUBJECT);
162  }
Here is the caller graph for this function:

◆ isShowParticipants()

boolean org.turro.dossier.entity.Participant.isShowParticipants ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 169 of file Participant.java.

169  {
170  return showParticipants && !role.equals(ParticipantRole.PARTICIPANT_SUBJECT);
171  }
Here is the caller graph for this function:

◆ isSubject()

boolean org.turro.dossier.entity.Participant.isSubject ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 288 of file Participant.java.

288  {
289  return ParticipantRole.PARTICIPANT_SUBJECT.equals(role);
290  }

◆ isSupport()

boolean org.turro.dossier.entity.Participant.isSupport ( )

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 241 of file Participant.java.

241  {
242  return support;
243  }

◆ setAdmin()

void org.turro.dossier.entity.Participant.setAdmin ( boolean  admin)

Definition at line 263 of file Participant.java.

263  {
264  this.admin = admin;
265  }

◆ setBeneficiary()

void org.turro.dossier.entity.Participant.setBeneficiary ( boolean  beneficiary)

Definition at line 209 of file Participant.java.

209  {
210  this.beneficiary = beneficiary;
211  }

◆ setBindingVote()

void org.turro.dossier.entity.Participant.setBindingVote ( boolean  bindingVote)

Definition at line 182 of file Participant.java.

182  {
183  this.bindingVote = bindingVote;
184  }
Here is the caller graph for this function:

◆ setConsortium()

void org.turro.dossier.entity.Participant.setConsortium ( boolean  consortium)

Definition at line 254 of file Participant.java.

254  {
255  this.consortium = consortium;
256  }

◆ setCoordinator()

void org.turro.dossier.entity.Participant.setCoordinator ( boolean  coordinator)

Definition at line 200 of file Participant.java.

200  {
201  this.coordinator = coordinator;
202  }

◆ setCreation()

void org.turro.dossier.entity.Participant.setCreation ( Date  creation)

Definition at line 89 of file Participant.java.

89  {
90  this.creation = creation;
91  }
Here is the caller graph for this function:

◆ setDiscriminator()

void org.turro.dossier.entity.Participant.setDiscriminator ( String  discriminator)

Definition at line 146 of file Participant.java.

146  {
147  this.discriminator = discriminator;
148  }
Here is the caller graph for this function:

◆ setDossier()

void org.turro.dossier.entity.Participant.setDossier ( Dossier  dossier)

Definition at line 72 of file Participant.java.

72  {
73  this.dossier = dossier;
74  }
Here is the caller graph for this function:

◆ setDriver()

void org.turro.dossier.entity.Participant.setDriver ( boolean  driver)

Definition at line 191 of file Participant.java.

191  {
192  this.driver = driver;
193  }
Here is the caller graph for this function:

◆ setFunding()

void org.turro.dossier.entity.Participant.setFunding ( boolean  funding)

Definition at line 236 of file Participant.java.

236  {
237  this.funding = funding;
238  }

◆ setIContact()

void org.turro.dossier.entity.Participant.setIContact ( IContact  contact)

Definition at line 313 of file Participant.java.

313  {
314  _contact = contact;
315  idContact = _contact != null ? _contact.getId() : null;
316  name = _contact != null ? _contact.getName() : null;
317  }
Here is the call graph for this function:

◆ setId()

void org.turro.dossier.entity.Participant.setId ( Long  id)

Definition at line 80 of file Participant.java.

80  {
81  this.id = id;
82  }

◆ setIdContact()

void org.turro.dossier.entity.Participant.setIdContact ( String  idContact)

Definition at line 98 of file Participant.java.

98  {
99  this.idContact = idContact;
100  resetIContact();
101  }
Here is the caller graph for this function:

◆ setName()

void org.turro.dossier.entity.Participant.setName ( String  name)

Definition at line 108 of file Participant.java.

108  {
109  this.name = name;
110  }
Here is the caller graph for this function:

◆ setOfferer()

void org.turro.dossier.entity.Participant.setOfferer ( boolean  offerer)

Definition at line 218 of file Participant.java.

218  {
219  this.offerer = offerer;
220  }

◆ setReceiveAllEmails()

void org.turro.dossier.entity.Participant.setReceiveAllEmails ( boolean  receiveAllEmails)

Definition at line 117 of file Participant.java.

117  {
118  this.receiveAllEmails = receiveAllEmails;
119  }
Here is the caller graph for this function:

◆ setResearch()

void org.turro.dossier.entity.Participant.setResearch ( boolean  research)

Definition at line 227 of file Participant.java.

227  {
228  this.research = research;
229  }

◆ setRole()

void org.turro.dossier.entity.Participant.setRole ( ParticipantRole  role)

Definition at line 126 of file Participant.java.

126  {
127  this.role = role;
128  if(role.equals(ParticipantRole.PARTICIPANT_OWNER)) {
129  showAllAttachments = true;
130  showAllIssues = true;
131  showParticipants = true;
132  } else if(role.equals(ParticipantRole.PARTICIPANT_SUBJECT)) {
133  showAllAttachments = false;
134  showAllIssues = false;
135  showParticipants = false;
136  receiveAllEmails = false;
137  bindingVote = false;
138  }
139  }
Here is the caller graph for this function:

◆ setShowAllAttachments()

void org.turro.dossier.entity.Participant.setShowAllAttachments ( boolean  showAllAttachments)

Definition at line 155 of file Participant.java.

155  {
156  this.showAllAttachments = showAllAttachments;
157  }
Here is the caller graph for this function:

◆ setShowAllIssues()

void org.turro.dossier.entity.Participant.setShowAllIssues ( boolean  showAllIssues)

Definition at line 164 of file Participant.java.

164  {
165  this.showAllIssues = showAllIssues;
166  }
Here is the caller graph for this function:

◆ setShowParticipants()

void org.turro.dossier.entity.Participant.setShowParticipants ( boolean  showParticipants)

Definition at line 173 of file Participant.java.

173  {
174  this.showParticipants = showParticipants;
175  }
Here is the caller graph for this function:

◆ setSupport()

void org.turro.dossier.entity.Participant.setSupport ( boolean  support)

Definition at line 245 of file Participant.java.

245  {
246  this.support = support;
247  }

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