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)
 
Object entityId ()
 
boolean isEmpty ()
 
boolean isSubject ()
 
HashSet< String > getStringRoles ()
 
IContact getIParticipant ()
 
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 ()
 
default Collection< Collection > collections ()
 

Detailed Description

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

Definition at line 40 of file Participant.java.

Member Function Documentation

◆ entityId()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 268 of file Participant.java.

268  {
269  return id;
270  }

◆ getCreation()

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

Definition at line 83 of file Participant.java.

83  {
84  return creation;
85  }
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 140 of file Participant.java.

140  {
141  return discriminator;
142  }
Here is the caller graph for this function:

◆ getDossier()

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

Definition at line 67 of file Participant.java.

67  {
68  return dossier;
69  }
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 298 of file Participant.java.

298  {
299  if(_contact == null) {
300  _contact = Contacts.getContact(idContact);
301  }
302  return _contact;
303  }
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 75 of file Participant.java.

75  {
76  return id;
77  }

◆ getIdContact()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 92 of file Participant.java.

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

◆ getIParticipant()

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

Definition at line 293 of file Participant.java.

293  {
294  return getIContact();
295  }
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 102 of file Participant.java.

102  {
103  return name;
104  }
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 120 of file Participant.java.

120  {
121  return role;
122  }
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 285 of file Participant.java.

285  {
286  return RoleUtil.getStringRoles(this);
287  }
Here is the call graph for this function:

◆ isAdmin()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 257 of file Participant.java.

257  {
258  return admin;
259  }

◆ isBeneficiary()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 203 of file Participant.java.

203  {
204  return beneficiary;
205  }
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 176 of file Participant.java.

176  {
177  return bindingVote && !role.equals(ParticipantRole.PARTICIPANT_SUBJECT);
178  }
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 248 of file Participant.java.

248  {
249  return consortium;
250  }

◆ isCoordinator()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 194 of file Participant.java.

194  {
195  return coordinator;
196  }
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 185 of file Participant.java.

185  {
186  return driver;
187  }
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 273 of file Participant.java.

273  {
274  return role == null || !getIContact().isValid();
275  }
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 230 of file Participant.java.

230  {
231  return funding;
232  }

◆ isOfferer()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 212 of file Participant.java.

212  {
213  return offerer;
214  }
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 111 of file Participant.java.

111  {
112  return receiveAllEmails;
113  }
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 221 of file Participant.java.

221  {
222  return research;
223  }

◆ isShowAllAttachments()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 149 of file Participant.java.

149  {
150  return showAllAttachments && !role.equals(ParticipantRole.PARTICIPANT_SUBJECT);
151  }
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 158 of file Participant.java.

158  {
159  return showAllIssues && !role.equals(ParticipantRole.PARTICIPANT_SUBJECT);
160  }
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 167 of file Participant.java.

167  {
168  return showParticipants && !role.equals(ParticipantRole.PARTICIPANT_SUBJECT);
169  }
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 280 of file Participant.java.

280  {
281  return ParticipantRole.PARTICIPANT_SUBJECT.equals(role);
282  }

◆ isSupport()

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

Implements org.turro.dossier.entity.IDossierParticipant.

Definition at line 239 of file Participant.java.

239  {
240  return support;
241  }

◆ setAdmin()

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

Definition at line 261 of file Participant.java.

261  {
262  this.admin = admin;
263  }

◆ setBeneficiary()

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

Definition at line 207 of file Participant.java.

207  {
208  this.beneficiary = beneficiary;
209  }

◆ setBindingVote()

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

Definition at line 180 of file Participant.java.

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

◆ setConsortium()

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

Definition at line 252 of file Participant.java.

252  {
253  this.consortium = consortium;
254  }

◆ setCoordinator()

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

Definition at line 198 of file Participant.java.

198  {
199  this.coordinator = coordinator;
200  }

◆ setCreation()

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

Definition at line 87 of file Participant.java.

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

◆ setDiscriminator()

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

Definition at line 144 of file Participant.java.

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

◆ setDossier()

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

Definition at line 71 of file Participant.java.

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

◆ setDriver()

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

Definition at line 189 of file Participant.java.

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

◆ setFunding()

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

Definition at line 234 of file Participant.java.

234  {
235  this.funding = funding;
236  }

◆ setIContact()

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

Definition at line 305 of file Participant.java.

305  {
306  _contact = contact;
307  idContact = _contact != null ? _contact.getId() : null;
308  name = _contact != null ? _contact.getName() : null;
309  }
Here is the call graph for this function:

◆ setId()

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

Definition at line 79 of file Participant.java.

79  {
80  this.id = id;
81  }

◆ setIdContact()

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

Definition at line 96 of file Participant.java.

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

◆ setName()

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

Definition at line 106 of file Participant.java.

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

◆ setOfferer()

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

Definition at line 216 of file Participant.java.

216  {
217  this.offerer = offerer;
218  }

◆ setReceiveAllEmails()

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

Definition at line 115 of file Participant.java.

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

◆ setResearch()

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

Definition at line 225 of file Participant.java.

225  {
226  this.research = research;
227  }

◆ setRole()

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

Definition at line 124 of file Participant.java.

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

◆ setShowAllAttachments()

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

Definition at line 153 of file Participant.java.

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

◆ setShowAllIssues()

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

Definition at line 162 of file Participant.java.

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

◆ setShowParticipants()

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

Definition at line 171 of file Participant.java.

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

◆ setSupport()

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

Definition at line 243 of file Participant.java.

243  {
244  this.support = support;
245  }

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