- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 60 of file AxProject.java.
◆ entityId()
Object org.turro.alliance.db.entities.AxProject.entityId |
( |
| ) |
|
◆ equals()
boolean org.turro.alliance.db.entities.AxProject.equals |
( |
Object |
obj | ) |
|
Definition at line 385 of file AxProject.java.
392 if (getClass() != obj.getClass()) {
395 final AxProject other = (AxProject) obj;
396 return Objects.equals(this.projectId, other.projectId);
◆ from() [1/2]
static AxProject org.turro.alliance.db.entities.AxProject.from |
( |
long |
memberId, |
|
|
ImporterRegister |
register |
|
) |
| |
|
static |
Definition at line 330 of file AxProject.java.
331 AxProject axp =
new AxProject();
332 ProcedenceId
id =
new ProcedenceId();
333 id.setMemberId(memberId);
334 id.setEntityId(
register.getString(
"projectId"));
335 axp.setProjectId(
id);
336 axp.setCreation(
register.getDate(
"creation"));
337 axp.setPhaseIndex(
register.getInteger(
"phaseIndex"));
338 axp.setCode(
register.getString(
"projectCode"));
339 axp.setName(
register.getString(
"name"));
340 axp.setSummary(
register.getString(
"summary"));
341 axp.setCategoryId(
register.getLong(
"categoryId"));
342 axp.setSourceLink(
register.getString(
"source"));
◆ from() [2/2]
Definition at line 311 of file AxProject.java.
312 AxProject axp =
new AxProject();
313 ProcedenceId
id =
new ProcedenceId();
314 id.setMemberId(memberId);
315 id.setEntityId(Long.toString(dossier.getId()));
316 axp.setProjectId(
id);
317 axp.setCreation(dossier.getCreation());
318 axp.setPhaseIndex(PhaseDefinitions.instance().getMapping(dossier.getProject().getPhase(), server.getServerStrId()));
319 axp.setCode(dossier.getProject().getProjectCode());
320 axp.setName(dossier.getProject().getProjectTitle());
321 axp.setSummary(dossier.getProject().getGoal());
322 axp.setSearching(dossier.getSearching());
323 axp.setCategoryId(pc.getCategoryId());
324 axp.setSourceLink(ElephantContext.getServerUrl(
"http") + Entities.getController(dossier).getEntityUrl());
325 axp.setParticipations(AxParticipation.from(memberId, dossier));
326 axp.setDescriptors(AxDescriptor.from(axp, dossier));
◆ fromJson()
static AxProject org.turro.alliance.db.entities.AxProject.fromJson |
( |
JsonValue |
value | ) |
|
|
static |
Definition at line 371 of file AxProject.java.
372 return IJSONizable.fromJson(value.toString(), AxProject.class);
◆ getAllianceParticipations()
Definition at line 280 of file AxProject.java.
281 if(allianceParticipations ==
null) {
282 allianceParticipations = SqlClause.select(
"p").from(
"AxAllianceParticipation p")
283 .where().equal(
"mainEntityId", projectId.
getEntityId())
284 .and().equal(
"mainMemberId", projectId.
getMemberId())
285 .dao(
new AlliancePU())
286 .resultList(AxAllianceParticipation.class);
288 return allianceParticipations;
◆ getBeneficiaries()
List<AxContact> org.turro.alliance.db.entities.AxProject.getBeneficiaries |
( |
| ) |
|
Definition at line 209 of file AxProject.java.
211 .map(p -> p.getContact()).toList();
Set< AxParticipation > getParticipations()
◆ getBeneficiaryAxParticipations()
Definition at line 291 of file AxProject.java.
List< AxAllianceParticipation > getAllianceParticipations()
◆ getBeneficiaryParticipations()
List<AxParticipation> org.turro.alliance.db.entities.AxProject.getBeneficiaryParticipations |
( |
| ) |
|
◆ getCategory()
AxCategory org.turro.alliance.db.entities.AxProject.getCategory |
( |
| ) |
|
Definition at line 176 of file AxProject.java.
177 return new AlliancePU().find(AxCategory.class, categoryId);
◆ getCategoryId()
Long org.turro.alliance.db.entities.AxProject.getCategoryId |
( |
| ) |
|
◆ getCode()
String org.turro.alliance.db.entities.AxProject.getCode |
( |
| ) |
|
◆ getConsortium()
List<AxContact> org.turro.alliance.db.entities.AxProject.getConsortium |
( |
| ) |
|
Definition at line 219 of file AxProject.java.
221 .map(p -> p.getContact()).toList();
◆ getConsortiumAxParticipations()
◆ getConsortiumParticipations()
List<AxParticipation> org.turro.alliance.db.entities.AxProject.getConsortiumParticipations |
( |
| ) |
|
◆ getCoordinatorParticipations()
List<AxParticipation> org.turro.alliance.db.entities.AxProject.getCoordinatorParticipations |
( |
| ) |
|
◆ getCoordinators()
List<AxContact> org.turro.alliance.db.entities.AxProject.getCoordinators |
( |
| ) |
|
Definition at line 224 of file AxProject.java.
226 .map(p -> p.getContact()).toList();
◆ getCreation()
Date org.turro.alliance.db.entities.AxProject.getCreation |
( |
| ) |
|
◆ getDescriptors()
Set<AxDescriptor> org.turro.alliance.db.entities.AxProject.getDescriptors |
( |
| ) |
|
◆ getDriverParticipations()
List<AxParticipation> org.turro.alliance.db.entities.AxProject.getDriverParticipations |
( |
| ) |
|
◆ getDrivers()
List<AxContact> org.turro.alliance.db.entities.AxProject.getDrivers |
( |
| ) |
|
Definition at line 204 of file AxProject.java.
206 .map(p -> p.getContact()).toList();
◆ getFriendlyName()
String org.turro.alliance.db.entities.AxProject.getFriendlyName |
( |
| ) |
|
Definition at line 192 of file AxProject.java.
193 return Phrases.start(code, name).toString();
◆ getFunding()
List<AxContact> org.turro.alliance.db.entities.AxProject.getFunding |
( |
| ) |
|
Definition at line 229 of file AxProject.java.
231 .map(p -> p.getContact()).toList();
◆ getFundingParticipations()
List<AxParticipation> org.turro.alliance.db.entities.AxProject.getFundingParticipations |
( |
| ) |
|
◆ getId()
String org.turro.alliance.db.entities.AxProject.getId |
( |
| ) |
|
◆ getName()
String org.turro.alliance.db.entities.AxProject.getName |
( |
| ) |
|
◆ getOffererAxParticipations()
◆ getOffererParticipations()
List<AxParticipation> org.turro.alliance.db.entities.AxProject.getOffererParticipations |
( |
| ) |
|
◆ getOfferers()
List<AxContact> org.turro.alliance.db.entities.AxProject.getOfferers |
( |
| ) |
|
Definition at line 214 of file AxProject.java.
216 .map(p -> p.getContact()).toList();
◆ getParticipations()
Set<AxParticipation> org.turro.alliance.db.entities.AxProject.getParticipations |
( |
| ) |
|
◆ getPhase()
Definition at line 305 of file AxProject.java.
306 return AlliancePhaseDefinitions.instance().get(phaseIndex);
◆ getPhaseIndex()
int org.turro.alliance.db.entities.AxProject.getPhaseIndex |
( |
| ) |
|
◆ getProjectId()
ProcedenceId org.turro.alliance.db.entities.AxProject.getProjectId |
( |
| ) |
|
◆ getResearch()
List<AxContact> org.turro.alliance.db.entities.AxProject.getResearch |
( |
| ) |
|
Definition at line 234 of file AxProject.java.
236 .map(p -> p.getContact()).toList();
◆ getResearchParticipations()
List<AxParticipation> org.turro.alliance.db.entities.AxProject.getResearchParticipations |
( |
| ) |
|
◆ getSearching()
String org.turro.alliance.db.entities.AxProject.getSearching |
( |
| ) |
|
◆ getSortedDescriptors()
Set<AxDescriptor> org.turro.alliance.db.entities.AxProject.getSortedDescriptors |
( |
| ) |
|
Definition at line 198 of file AxProject.java.
199 return new TreeSet<>(descriptors);
◆ getSourceLink()
String org.turro.alliance.db.entities.AxProject.getSourceLink |
( |
| ) |
|
◆ getSummary()
String org.turro.alliance.db.entities.AxProject.getSummary |
( |
| ) |
|
◆ getSupport()
List<AxContact> org.turro.alliance.db.entities.AxProject.getSupport |
( |
| ) |
|
Definition at line 239 of file AxProject.java.
241 .map(p -> p.getContact()).toList();
◆ getSupportParticipations()
List<AxParticipation> org.turro.alliance.db.entities.AxProject.getSupportParticipations |
( |
| ) |
|
◆ hashCode()
int org.turro.alliance.db.entities.AxProject.hashCode |
( |
| ) |
|
Definition at line 378 of file AxProject.java.
380 hash = 79 * hash + Objects.hashCode(this.projectId);
◆ isEmpty()
boolean org.turro.alliance.db.entities.AxProject.isEmpty |
( |
| ) |
|
◆ setCategory()
void org.turro.alliance.db.entities.AxProject.setCategory |
( |
AxCategory |
category | ) |
|
Definition at line 180 of file AxProject.java.
181 categoryId = category.getCategoryId();
◆ setCategoryId()
void org.turro.alliance.db.entities.AxProject.setCategoryId |
( |
Long |
categoryId | ) |
|
◆ setCode()
void org.turro.alliance.db.entities.AxProject.setCode |
( |
String |
code | ) |
|
◆ setCreation()
void org.turro.alliance.db.entities.AxProject.setCreation |
( |
Date |
creation | ) |
|
◆ setDescriptors()
void org.turro.alliance.db.entities.AxProject.setDescriptors |
( |
Set< AxDescriptor > |
descriptors | ) |
|
◆ setName()
void org.turro.alliance.db.entities.AxProject.setName |
( |
String |
name | ) |
|
◆ setParticipations()
void org.turro.alliance.db.entities.AxProject.setParticipations |
( |
Set< AxParticipation > |
participations | ) |
|
Definition at line 164 of file AxProject.java.
165 this.participations = participations;
◆ setPhaseIndex()
void org.turro.alliance.db.entities.AxProject.setPhaseIndex |
( |
int |
phaseIndex | ) |
|
◆ setProjectId()
void org.turro.alliance.db.entities.AxProject.setProjectId |
( |
ProcedenceId |
projectId | ) |
|
◆ setSearching()
void org.turro.alliance.db.entities.AxProject.setSearching |
( |
String |
searching | ) |
|
◆ setSourceLink()
void org.turro.alliance.db.entities.AxProject.setSourceLink |
( |
String |
sourceLink | ) |
|
◆ setSummary()
void org.turro.alliance.db.entities.AxProject.setSummary |
( |
String |
summary | ) |
|
◆ toJson() [1/2]
String org.turro.alliance.db.entities.AxProject.toJson |
( |
| ) |
|
◆ toJson() [2/2]
String org.turro.alliance.db.entities.AxProject.toJson |
( |
Map< String, Object > |
properties | ) |
|
The documentation for this class was generated from the following file: