BrightSide Workbench Full Report + Source Code
org.turro.alliance.db.entities.AxProjectGrant Class Reference
Inheritance diagram for org.turro.alliance.db.entities.AxProjectGrant:
Collaboration diagram for org.turro.alliance.db.entities.AxProjectGrant:

Public Member Functions

ProcedenceId getProjectGrantId ()
 
void setProjectGrantId (ProcedenceId projectGrantId)
 
String getId ()
 
String getTitle ()
 
void setTitle (String title)
 
Date getEndDate ()
 
void setEndDate (Date endDate)
 
boolean isRecurrent ()
 
void setRecurrent (boolean recurrent)
 
boolean isEndOfBudget ()
 
void setEndOfBudget (boolean endOfBudget)
 
boolean isMicro ()
 
void setMicro (boolean micro)
 
boolean isSmall ()
 
void setSmall (boolean small)
 
boolean isMedium ()
 
void setMedium (boolean medium)
 
boolean isBig ()
 
void setBig (boolean big)
 
boolean isOtherOrgs ()
 
void setOtherOrgs (boolean otherOrgs)
 
double getBudget ()
 
void setBudget (double budget)
 
boolean isSubvention ()
 
void setSubvention (boolean subvention)
 
boolean isLoan ()
 
void setLoan (boolean loan)
 
boolean isInKind ()
 
void setInKind (boolean inKind)
 
boolean isCollaboration ()
 
void setCollaboration (boolean collaboration)
 
boolean isMinimis ()
 
void setMinimis (boolean minimis)
 
String getSource ()
 
void setSource (String source)
 
String getConvocation ()
 
void setConvocation (String convocation)
 
String getBasis ()
 
void setBasis (String basis)
 
boolean isHiring ()
 
void setHiring (boolean hiring)
 
boolean isIdi ()
 
void setIdi (boolean idi)
 
boolean isInvestment ()
 
void setInvestment (boolean investment)
 
boolean isStartUp ()
 
void setStartUp (boolean startUp)
 
boolean isFormation ()
 
void setFormation (boolean formation)
 
String getGoal ()
 
void setGoal (String goal)
 
String getDeadline ()
 
void setDeadline (String deadline)
 
String getElegible ()
 
void setElegible (String elegible)
 
String getBeneficiaries ()
 
void setBeneficiaries (String beneficiaries)
 
String getFeatures ()
 
void setFeatures (String features)
 
String getIntensity ()
 
void setIntensity (String intensity)
 
String getSourceLink ()
 
void setSourceLink (String sourceLink)
 
Object entityId ()
 
boolean isEmpty ()
 
String toJson ()
 
String toJson (Map< String, Object > properties)
 
String getName ()
 
String getDescription ()
 
boolean isCompanyType ()
 
boolean isActive ()
 
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 ()
 

Static Public Member Functions

static AxProjectGrant from (long memberId, ProjectGrant projectGrant)
 
static AxProjectGrant fromJson (JsonValue value)
 

Detailed Description

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

Definition at line 47 of file AxProjectGrant.java.

Member Function Documentation

◆ entityId()

Object org.turro.alliance.db.entities.AxProjectGrant.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 403 of file AxProjectGrant.java.

403  {
404  return projectGrantId;
405  }

◆ equals()

boolean org.turro.alliance.db.entities.AxProjectGrant.equals ( Object  obj)

Definition at line 457 of file AxProjectGrant.java.

457  {
458  if (this == obj) {
459  return true;
460  }
461  if (obj == null) {
462  return false;
463  }
464  if (getClass() != obj.getClass()) {
465  return false;
466  }
467  final AxProjectGrant other = (AxProjectGrant) obj;
468  return Objects.equals(this.projectGrantId, other.projectGrantId);
469  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ from()

static AxProjectGrant org.turro.alliance.db.entities.AxProjectGrant.from ( long  memberId,
ProjectGrant  projectGrant 
)
static

Definition at line 357 of file AxProjectGrant.java.

357  {
358  AxProjectGrant axpg = new AxProjectGrant();
359  ProcedenceId id = new ProcedenceId();
360  id.setMemberId(memberId);
361  id.setEntityId(Long.toString(projectGrant.getId()));
362  axpg.setProjectGrantId(id);
363  axpg.setBasis(projectGrant.getBasis());
364  axpg.setBeneficiaries(getTextFromWiki(projectGrant.getBeneficiaries()));
365  axpg.setBig(projectGrant.isBig());
366  axpg.setBudget(projectGrant.getBudget());
367  axpg.setCollaboration(projectGrant.isCollaboration());
368  axpg.setConvocation(projectGrant.getConvocation());
369  axpg.setDeadline(getTextFromWiki(projectGrant.getDeadline()));
370  axpg.setElegible(getTextFromWiki(projectGrant.getElegible()));
371  axpg.setEndDate(projectGrant.getEndDate());
372  axpg.setEndOfBudget(projectGrant.isEndOfBudget());
373  axpg.setFeatures(getTextFromWiki(projectGrant.getFeatures()));
374  axpg.setGoal(getTextFromWiki(projectGrant.getGoal()));
375  axpg.setHiring(projectGrant.getMatchCriteria().isHiring());
376  axpg.setIdi(projectGrant.getMatchCriteria().isIdi());
377  axpg.setInKind(projectGrant.isInKind());
378  axpg.setInvestment(projectGrant.getMatchCriteria().isInvestment());
379  axpg.setStartUp(projectGrant.getMatchCriteria().isStartUp());
380  axpg.setFormation(projectGrant.getMatchCriteria().isFormation());
381  axpg.setIntensity(getTextFromWiki(projectGrant.getIntensity()));
382  axpg.setLoan(projectGrant.isLoan());
383  axpg.setMedium(projectGrant.isMedium());
384  axpg.setMicro(projectGrant.isMicro());
385  axpg.setMinimis(projectGrant.isMinimis());
386  axpg.setOtherOrgs(projectGrant.isOtherOrgs());
387  axpg.setRecurrent(projectGrant.isRecurrent());
388  axpg.setSmall(projectGrant.isSmall());
389  axpg.setSource(projectGrant.getSource());
390  axpg.setSubvention(projectGrant.isSubvention());
391  axpg.setTitle(projectGrant.getTitle());
392  axpg.setSourceLink(ElephantContext.getServerUrl("http") + Entities.getController(projectGrant).getEntityUrl());
393  return axpg;
394  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromJson()

static AxProjectGrant org.turro.alliance.db.entities.AxProjectGrant.fromJson ( JsonValue  value)
static

Definition at line 425 of file AxProjectGrant.java.

425  {
426  return IJSONizable.fromJson(value.toString(), AxProjectGrant.class);
427  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBasis()

String org.turro.alliance.db.entities.AxProjectGrant.getBasis ( )

Definition at line 251 of file AxProjectGrant.java.

251  {
252  return basis;
253  }

◆ getBeneficiaries()

String org.turro.alliance.db.entities.AxProjectGrant.getBeneficiaries ( )

Definition at line 323 of file AxProjectGrant.java.

323  {
324  return beneficiaries;
325  }

◆ getBudget()

double org.turro.alliance.db.entities.AxProjectGrant.getBudget ( )

Definition at line 187 of file AxProjectGrant.java.

187  {
188  return budget;
189  }

◆ getConvocation()

String org.turro.alliance.db.entities.AxProjectGrant.getConvocation ( )

Definition at line 243 of file AxProjectGrant.java.

243  {
244  return convocation;
245  }

◆ getDeadline()

String org.turro.alliance.db.entities.AxProjectGrant.getDeadline ( )

Definition at line 307 of file AxProjectGrant.java.

307  {
308  return deadline;
309  }

◆ getDescription()

String org.turro.alliance.db.entities.AxProjectGrant.getDescription ( )

Definition at line 435 of file AxProjectGrant.java.

435  {
436  return goal == null ? "!***" : HtmlContent.plain(goal, 250);
437  }
Here is the caller graph for this function:

◆ getElegible()

String org.turro.alliance.db.entities.AxProjectGrant.getElegible ( )

Definition at line 315 of file AxProjectGrant.java.

315  {
316  return elegible;
317  }

◆ getEndDate()

Date org.turro.alliance.db.entities.AxProjectGrant.getEndDate ( )

Definition at line 123 of file AxProjectGrant.java.

123  {
124  return endDate;
125  }

◆ getFeatures()

String org.turro.alliance.db.entities.AxProjectGrant.getFeatures ( )

Definition at line 331 of file AxProjectGrant.java.

331  {
332  return features;
333  }

◆ getGoal()

String org.turro.alliance.db.entities.AxProjectGrant.getGoal ( )

Definition at line 299 of file AxProjectGrant.java.

299  {
300  return goal;
301  }
Here is the caller graph for this function:

◆ getId()

String org.turro.alliance.db.entities.AxProjectGrant.getId ( )

Definition at line 110 of file AxProjectGrant.java.

110  {
111  // Workaround for self-cached grants
112  return id == null ? projectGrantId.stringify() : id;
113  }
Here is the caller graph for this function:

◆ getIntensity()

String org.turro.alliance.db.entities.AxProjectGrant.getIntensity ( )

Definition at line 339 of file AxProjectGrant.java.

339  {
340  return intensity;
341  }

◆ getName()

String org.turro.alliance.db.entities.AxProjectGrant.getName ( )

Definition at line 431 of file AxProjectGrant.java.

431  {
432  return title == null ? "!***" : title;
433  }
Here is the caller graph for this function:

◆ getProjectGrantId()

ProcedenceId org.turro.alliance.db.entities.AxProjectGrant.getProjectGrantId ( )

Definition at line 102 of file AxProjectGrant.java.

102  {
103  return projectGrantId;
104  }
Here is the caller graph for this function:

◆ getSource()

String org.turro.alliance.db.entities.AxProjectGrant.getSource ( )

Definition at line 235 of file AxProjectGrant.java.

235  {
236  return source;
237  }

◆ getSourceLink()

String org.turro.alliance.db.entities.AxProjectGrant.getSourceLink ( )

Definition at line 347 of file AxProjectGrant.java.

347  {
348  return sourceLink;
349  }

◆ getTitle()

String org.turro.alliance.db.entities.AxProjectGrant.getTitle ( )

Definition at line 115 of file AxProjectGrant.java.

115  {
116  return title;
117  }
Here is the caller graph for this function:

◆ hashCode()

int org.turro.alliance.db.entities.AxProjectGrant.hashCode ( )

Definition at line 450 of file AxProjectGrant.java.

450  {
451  int hash = 3;
452  hash = 79 * hash + Objects.hashCode(this.projectGrantId);
453  return hash;
454  }

◆ isActive()

boolean org.turro.alliance.db.entities.AxProjectGrant.isActive ( )

Definition at line 443 of file AxProjectGrant.java.

443  {
444  return endDate == null || endDate.toInstant().isAfter(Instant.now());
445  }

◆ isBig()

boolean org.turro.alliance.db.entities.AxProjectGrant.isBig ( )

Definition at line 171 of file AxProjectGrant.java.

171  {
172  return big;
173  }

◆ isCollaboration()

boolean org.turro.alliance.db.entities.AxProjectGrant.isCollaboration ( )

Definition at line 219 of file AxProjectGrant.java.

219  {
220  return collaboration;
221  }

◆ isCompanyType()

boolean org.turro.alliance.db.entities.AxProjectGrant.isCompanyType ( )

Definition at line 439 of file AxProjectGrant.java.

439  {
440  return micro | small | medium | big;
441  }

◆ isEmpty()

boolean org.turro.alliance.db.entities.AxProjectGrant.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 408 of file AxProjectGrant.java.

408  {
409  return projectGrantId.isEmpty() ||
410  Strings.isBlank(title);
411  }

◆ isEndOfBudget()

boolean org.turro.alliance.db.entities.AxProjectGrant.isEndOfBudget ( )

Definition at line 139 of file AxProjectGrant.java.

139  {
140  return endOfBudget;
141  }

◆ isFormation()

boolean org.turro.alliance.db.entities.AxProjectGrant.isFormation ( )

Definition at line 291 of file AxProjectGrant.java.

291  {
292  return formation;
293  }

◆ isHiring()

boolean org.turro.alliance.db.entities.AxProjectGrant.isHiring ( )

Definition at line 259 of file AxProjectGrant.java.

259  {
260  return hiring;
261  }

◆ isIdi()

boolean org.turro.alliance.db.entities.AxProjectGrant.isIdi ( )

Definition at line 267 of file AxProjectGrant.java.

267  {
268  return idi;
269  }

◆ isInKind()

boolean org.turro.alliance.db.entities.AxProjectGrant.isInKind ( )

Definition at line 211 of file AxProjectGrant.java.

211  {
212  return inKind;
213  }

◆ isInvestment()

boolean org.turro.alliance.db.entities.AxProjectGrant.isInvestment ( )

Definition at line 275 of file AxProjectGrant.java.

275  {
276  return investment;
277  }

◆ isLoan()

boolean org.turro.alliance.db.entities.AxProjectGrant.isLoan ( )

Definition at line 203 of file AxProjectGrant.java.

203  {
204  return loan;
205  }

◆ isMedium()

boolean org.turro.alliance.db.entities.AxProjectGrant.isMedium ( )

Definition at line 163 of file AxProjectGrant.java.

163  {
164  return medium;
165  }

◆ isMicro()

boolean org.turro.alliance.db.entities.AxProjectGrant.isMicro ( )

Definition at line 147 of file AxProjectGrant.java.

147  {
148  return micro;
149  }

◆ isMinimis()

boolean org.turro.alliance.db.entities.AxProjectGrant.isMinimis ( )

Definition at line 227 of file AxProjectGrant.java.

227  {
228  return minimis;
229  }

◆ isOtherOrgs()

boolean org.turro.alliance.db.entities.AxProjectGrant.isOtherOrgs ( )

Definition at line 179 of file AxProjectGrant.java.

179  {
180  return otherOrgs;
181  }

◆ isRecurrent()

boolean org.turro.alliance.db.entities.AxProjectGrant.isRecurrent ( )

Definition at line 131 of file AxProjectGrant.java.

131  {
132  return recurrent;
133  }

◆ isSmall()

boolean org.turro.alliance.db.entities.AxProjectGrant.isSmall ( )

Definition at line 155 of file AxProjectGrant.java.

155  {
156  return small;
157  }

◆ isStartUp()

boolean org.turro.alliance.db.entities.AxProjectGrant.isStartUp ( )

Definition at line 283 of file AxProjectGrant.java.

283  {
284  return startUp;
285  }

◆ isSubvention()

boolean org.turro.alliance.db.entities.AxProjectGrant.isSubvention ( )

Definition at line 195 of file AxProjectGrant.java.

195  {
196  return subvention;
197  }

◆ setBasis()

void org.turro.alliance.db.entities.AxProjectGrant.setBasis ( String  basis)

Definition at line 255 of file AxProjectGrant.java.

255  {
256  this.basis = basis;
257  }
Here is the caller graph for this function:

◆ setBeneficiaries()

void org.turro.alliance.db.entities.AxProjectGrant.setBeneficiaries ( String  beneficiaries)

Definition at line 327 of file AxProjectGrant.java.

327  {
328  this.beneficiaries = beneficiaries;
329  }
Here is the caller graph for this function:

◆ setBig()

void org.turro.alliance.db.entities.AxProjectGrant.setBig ( boolean  big)

Definition at line 175 of file AxProjectGrant.java.

175  {
176  this.big = big;
177  }
Here is the caller graph for this function:

◆ setBudget()

void org.turro.alliance.db.entities.AxProjectGrant.setBudget ( double  budget)

Definition at line 191 of file AxProjectGrant.java.

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

◆ setCollaboration()

void org.turro.alliance.db.entities.AxProjectGrant.setCollaboration ( boolean  collaboration)

Definition at line 223 of file AxProjectGrant.java.

223  {
224  this.collaboration = collaboration;
225  }
Here is the caller graph for this function:

◆ setConvocation()

void org.turro.alliance.db.entities.AxProjectGrant.setConvocation ( String  convocation)

Definition at line 247 of file AxProjectGrant.java.

247  {
248  this.convocation = convocation;
249  }
Here is the caller graph for this function:

◆ setDeadline()

void org.turro.alliance.db.entities.AxProjectGrant.setDeadline ( String  deadline)

Definition at line 311 of file AxProjectGrant.java.

311  {
312  this.deadline = deadline;
313  }
Here is the caller graph for this function:

◆ setElegible()

void org.turro.alliance.db.entities.AxProjectGrant.setElegible ( String  elegible)

Definition at line 319 of file AxProjectGrant.java.

319  {
320  this.elegible = elegible;
321  }
Here is the caller graph for this function:

◆ setEndDate()

void org.turro.alliance.db.entities.AxProjectGrant.setEndDate ( Date  endDate)

Definition at line 127 of file AxProjectGrant.java.

127  {
128  this.endDate = endDate;
129  }
Here is the caller graph for this function:

◆ setEndOfBudget()

void org.turro.alliance.db.entities.AxProjectGrant.setEndOfBudget ( boolean  endOfBudget)

Definition at line 143 of file AxProjectGrant.java.

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

◆ setFeatures()

void org.turro.alliance.db.entities.AxProjectGrant.setFeatures ( String  features)

Definition at line 335 of file AxProjectGrant.java.

335  {
336  this.features = features;
337  }
Here is the caller graph for this function:

◆ setFormation()

void org.turro.alliance.db.entities.AxProjectGrant.setFormation ( boolean  formation)

Definition at line 295 of file AxProjectGrant.java.

295  {
296  this.formation = formation;
297  }
Here is the caller graph for this function:

◆ setGoal()

void org.turro.alliance.db.entities.AxProjectGrant.setGoal ( String  goal)

Definition at line 303 of file AxProjectGrant.java.

303  {
304  this.goal = goal;
305  }
Here is the caller graph for this function:

◆ setHiring()

void org.turro.alliance.db.entities.AxProjectGrant.setHiring ( boolean  hiring)

Definition at line 263 of file AxProjectGrant.java.

263  {
264  this.hiring = hiring;
265  }
Here is the caller graph for this function:

◆ setIdi()

void org.turro.alliance.db.entities.AxProjectGrant.setIdi ( boolean  idi)

Definition at line 271 of file AxProjectGrant.java.

271  {
272  this.idi = idi;
273  }
Here is the caller graph for this function:

◆ setInKind()

void org.turro.alliance.db.entities.AxProjectGrant.setInKind ( boolean  inKind)

Definition at line 215 of file AxProjectGrant.java.

215  {
216  this.inKind = inKind;
217  }
Here is the caller graph for this function:

◆ setIntensity()

void org.turro.alliance.db.entities.AxProjectGrant.setIntensity ( String  intensity)

Definition at line 343 of file AxProjectGrant.java.

343  {
344  this.intensity = intensity;
345  }
Here is the caller graph for this function:

◆ setInvestment()

void org.turro.alliance.db.entities.AxProjectGrant.setInvestment ( boolean  investment)

Definition at line 279 of file AxProjectGrant.java.

279  {
280  this.investment = investment;
281  }
Here is the caller graph for this function:

◆ setLoan()

void org.turro.alliance.db.entities.AxProjectGrant.setLoan ( boolean  loan)

Definition at line 207 of file AxProjectGrant.java.

207  {
208  this.loan = loan;
209  }
Here is the caller graph for this function:

◆ setMedium()

void org.turro.alliance.db.entities.AxProjectGrant.setMedium ( boolean  medium)

Definition at line 167 of file AxProjectGrant.java.

167  {
168  this.medium = medium;
169  }
Here is the caller graph for this function:

◆ setMicro()

void org.turro.alliance.db.entities.AxProjectGrant.setMicro ( boolean  micro)

Definition at line 151 of file AxProjectGrant.java.

151  {
152  this.micro = micro;
153  }
Here is the caller graph for this function:

◆ setMinimis()

void org.turro.alliance.db.entities.AxProjectGrant.setMinimis ( boolean  minimis)

Definition at line 231 of file AxProjectGrant.java.

231  {
232  this.minimis = minimis;
233  }
Here is the caller graph for this function:

◆ setOtherOrgs()

void org.turro.alliance.db.entities.AxProjectGrant.setOtherOrgs ( boolean  otherOrgs)

Definition at line 183 of file AxProjectGrant.java.

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

◆ setProjectGrantId()

void org.turro.alliance.db.entities.AxProjectGrant.setProjectGrantId ( ProcedenceId  projectGrantId)

Definition at line 106 of file AxProjectGrant.java.

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

◆ setRecurrent()

void org.turro.alliance.db.entities.AxProjectGrant.setRecurrent ( boolean  recurrent)

Definition at line 135 of file AxProjectGrant.java.

135  {
136  this.recurrent = recurrent;
137  }
Here is the caller graph for this function:

◆ setSmall()

void org.turro.alliance.db.entities.AxProjectGrant.setSmall ( boolean  small)

Definition at line 159 of file AxProjectGrant.java.

159  {
160  this.small = small;
161  }
Here is the caller graph for this function:

◆ setSource()

void org.turro.alliance.db.entities.AxProjectGrant.setSource ( String  source)

Definition at line 239 of file AxProjectGrant.java.

239  {
240  this.source = source;
241  }
Here is the caller graph for this function:

◆ setSourceLink()

void org.turro.alliance.db.entities.AxProjectGrant.setSourceLink ( String  sourceLink)

Definition at line 351 of file AxProjectGrant.java.

351  {
352  this.sourceLink = sourceLink;
353  }
Here is the caller graph for this function:

◆ setStartUp()

void org.turro.alliance.db.entities.AxProjectGrant.setStartUp ( boolean  startUp)

Definition at line 287 of file AxProjectGrant.java.

287  {
288  this.startUp = startUp;
289  }
Here is the caller graph for this function:

◆ setSubvention()

void org.turro.alliance.db.entities.AxProjectGrant.setSubvention ( boolean  subvention)

Definition at line 199 of file AxProjectGrant.java.

199  {
200  this.subvention = subvention;
201  }
Here is the caller graph for this function:

◆ setTitle()

void org.turro.alliance.db.entities.AxProjectGrant.setTitle ( String  title)

Definition at line 119 of file AxProjectGrant.java.

119  {
120  this.title = title;
121  }
Here is the caller graph for this function:

◆ toJson() [1/2]

String org.turro.alliance.db.entities.AxProjectGrant.toJson ( )

Definition at line 416 of file AxProjectGrant.java.

416  {
417  return toJson(this);
418  }
Here is the caller graph for this function:

◆ toJson() [2/2]

String org.turro.alliance.db.entities.AxProjectGrant.toJson ( Map< String, Object >  properties)

Definition at line 421 of file AxProjectGrant.java.

421  {
422  return toJson(this, properties);
423  }
Here is the call graph for this function:

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