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

Public Member Functions

Category getCategory ()
 
void setCategory (Category category)
 
Long getId ()
 
void setId (Long id)
 
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 ()
 
Date getCreation ()
 
Object entityId ()
 
boolean isEmpty ()
 
boolean isSubject ()
 
HashSet< String > getStringRoles ()
 
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 CategoryParticipant.java.

Member Function Documentation

◆ entityId()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 263 of file CategoryParticipant.java.

263  {
264  return id;
265  }

◆ equals()

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

Definition at line 324 of file CategoryParticipant.java.

324  {
325  if (this == obj) {
326  return true;
327  }
328  if (obj == null) {
329  return false;
330  }
331  if (getClass() != obj.getClass()) {
332  return false;
333  }
334  final CategoryParticipant other = (CategoryParticipant) obj;
335  return Objects.equals(this.id, other.id);
336  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCategory()

Category org.turro.dossier.entity.CategoryParticipant.getCategory ( )

Definition at line 65 of file CategoryParticipant.java.

65  {
66  return category;
67  }
Here is the caller graph for this function:

◆ getCompany()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 307 of file CategoryParticipant.java.

307  {
308  if(_company == null) {
309  _company = getIContact().getCompanyRelations().getCompany();
310  }
311  return _company;
312  }
Here is the call graph for this function:

◆ getCreation()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 256 of file CategoryParticipant.java.

256  {
257  return null;
258  }

◆ getDiscriminator()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 124 of file CategoryParticipant.java.

124  {
125  return discriminator;
126  }
Here is the caller graph for this function:

◆ getIContact()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 289 of file CategoryParticipant.java.

289  {
290  if(_contact == null) {
291  _contact = Contacts.getContactById(idContact);
292  }
293  return _contact;
294  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

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

Definition at line 73 of file CategoryParticipant.java.

73  {
74  return id;
75  }
Here is the caller graph for this function:

◆ getIdContact()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 82 of file CategoryParticipant.java.

82  {
83  return idContact;
84  }
Here is the caller graph for this function:

◆ getName()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 92 of file CategoryParticipant.java.

92  {
93  return name;
94  }
Here is the caller graph for this function:

◆ getRole()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 110 of file CategoryParticipant.java.

110  {
111  return role;
112  }
Here is the caller graph for this function:

◆ getStringRoles()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 280 of file CategoryParticipant.java.

280  {
281  return RoleUtil.getStringRoles(this);
282  }
Here is the call graph for this function:

◆ hashCode()

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

Definition at line 317 of file CategoryParticipant.java.

317  {
318  int hash = 3;
319  hash = 53 * hash + Objects.hashCode(this.id);
320  return hash;
321  }

◆ hasRole()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 250 of file CategoryParticipant.java.

250  {
251  return driver || coordinator || beneficiary || offerer ||
252  research || funding || support || consortium || admin;
253  }

◆ isAdmin()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 241 of file CategoryParticipant.java.

241  {
242  return admin;
243  }

◆ isBeneficiary()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 187 of file CategoryParticipant.java.

187  {
188  return beneficiary;
189  }

◆ isBindingVote()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 160 of file CategoryParticipant.java.

160  {
161  return bindingVote;
162  }
Here is the caller graph for this function:

◆ isConsortium()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 232 of file CategoryParticipant.java.

232  {
233  return consortium;
234  }

◆ isCoordinator()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 178 of file CategoryParticipant.java.

178  {
179  return coordinator;
180  }

◆ isDriver()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 169 of file CategoryParticipant.java.

169  {
170  return driver;
171  }

◆ isEmpty()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 268 of file CategoryParticipant.java.

268  {
269  return Strings.isBlank(idContact) || role == null;
270  }
Here is the caller graph for this function:

◆ isFunding()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 214 of file CategoryParticipant.java.

214  {
215  return funding;
216  }

◆ isOfferer()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 196 of file CategoryParticipant.java.

196  {
197  return offerer;
198  }

◆ isReceiveAllEmails()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 101 of file CategoryParticipant.java.

101  {
102  return receiveAllEmails;
103  }
Here is the caller graph for this function:

◆ isResearch()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 205 of file CategoryParticipant.java.

205  {
206  return research;
207  }

◆ isShowAllAttachments()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 133 of file CategoryParticipant.java.

133  {
134  return showAllAttachments;
135  }
Here is the caller graph for this function:

◆ isShowAllIssues()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 142 of file CategoryParticipant.java.

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

◆ isShowParticipants()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 151 of file CategoryParticipant.java.

151  {
152  return showParticipants;
153  }
Here is the caller graph for this function:

◆ isSubject()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 275 of file CategoryParticipant.java.

275  {
276  return ParticipantRole.PARTICIPANT_SUBJECT.equals(role);
277  }

◆ isSupport()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 223 of file CategoryParticipant.java.

223  {
224  return support;
225  }

◆ setAdmin()

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

Definition at line 245 of file CategoryParticipant.java.

245  {
246  this.admin = admin;
247  }

◆ setBeneficiary()

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

Definition at line 191 of file CategoryParticipant.java.

191  {
192  this.beneficiary = beneficiary;
193  }

◆ setBindingVote()

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

Definition at line 164 of file CategoryParticipant.java.

164  {
165  this.bindingVote = bindingVote;
166  }

◆ setCategory()

void org.turro.dossier.entity.CategoryParticipant.setCategory ( Category  category)

Definition at line 69 of file CategoryParticipant.java.

69  {
70  this.category = category;
71  }
Here is the caller graph for this function:

◆ setConsortium()

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

Definition at line 236 of file CategoryParticipant.java.

236  {
237  this.consortium = consortium;
238  }

◆ setCoordinator()

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

Definition at line 182 of file CategoryParticipant.java.

182  {
183  this.coordinator = coordinator;
184  }

◆ setDiscriminator()

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

Definition at line 128 of file CategoryParticipant.java.

128  {
129  this.discriminator = discriminator;
130  }

◆ setDriver()

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

Definition at line 173 of file CategoryParticipant.java.

173  {
174  this.driver = driver;
175  }

◆ setFunding()

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

Definition at line 218 of file CategoryParticipant.java.

218  {
219  this.funding = funding;
220  }

◆ setIContact()

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

Definition at line 296 of file CategoryParticipant.java.

296  {
297  _contact = contact;
298  idContact = _contact != null ? _contact.getId() : null;
299  name = _contact != null ? _contact.getName() : null;
300  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setId()

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

Definition at line 77 of file CategoryParticipant.java.

77  {
78  this.id = id;
79  }

◆ setIdContact()

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

Definition at line 86 of file CategoryParticipant.java.

86  {
87  this.idContact = idContact;
88  resetIContact();
89  }
Here is the caller graph for this function:

◆ setName()

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

Definition at line 96 of file CategoryParticipant.java.

96  {
97  this.name = name;
98  }
Here is the caller graph for this function:

◆ setOfferer()

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

Definition at line 200 of file CategoryParticipant.java.

200  {
201  this.offerer = offerer;
202  }

◆ setReceiveAllEmails()

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

Definition at line 105 of file CategoryParticipant.java.

105  {
106  this.receiveAllEmails = receiveAllEmails;
107  }

◆ setResearch()

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

Definition at line 209 of file CategoryParticipant.java.

209  {
210  this.research = research;
211  }

◆ setRole()

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

Definition at line 114 of file CategoryParticipant.java.

114  {
115  this.role = role;
116  if(role.equals(ParticipantRole.PARTICIPANT_OWNER)) {
117  showAllAttachments = true;
118  showAllIssues = true;
119  showParticipants = true;
120  }
121  }
Here is the caller graph for this function:

◆ setShowAllAttachments()

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

Definition at line 137 of file CategoryParticipant.java.

137  {
138  this.showAllAttachments = showAllAttachments;
139  }

◆ setShowAllIssues()

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

Definition at line 146 of file CategoryParticipant.java.

146  {
147  this.showAllIssues = showAllIssues;
148  }

◆ setShowParticipants()

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

Definition at line 155 of file CategoryParticipant.java.

155  {
156  this.showParticipants = showParticipants;
157  }

◆ setSupport()

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

Definition at line 227 of file CategoryParticipant.java.

227  {
228  this.support = support;
229  }

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