- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 53 of file Dossier.java.
◆ addAssistant()
Definition at line 548 of file Dossier.java.
549 if(contact ==
null)
return null;
550 Participant p =
new Participant();
552 p.setCreation(
new Date());
553 p.setIdContact(contact.getId());
554 p.setName(contact.getName());
555 p.setRole(ParticipantRole.PARTICIPANT_ASSISTANT);
Set< Participant > getParticipants()
◆ addOrReturnAssistant()
Definition at line 560 of file Dossier.java.
562 if(p.getIdContact().equals(contact.getId())) {
Participant addAssistant(IContact contact)
◆ addOwner()
Definition at line 525 of file Dossier.java.
526 if(contact ==
null)
return null;
527 Participant p =
new Participant();
529 p.setCreation(
new Date());
530 p.setIdContact(contact.getId());
531 p.setName(contact.getName());
532 p.setRole(ParticipantRole.PARTICIPANT_OWNER);
◆ addSubject()
void org.turro.dossier.entity.Dossier.addSubject |
( |
IContact |
contact | ) |
|
Definition at line 537 of file Dossier.java.
538 if(contact ==
null)
return;
539 Participant p =
new Participant();
541 p.setCreation(
new Date());
542 p.setIdContact(contact.getId());
543 p.setName(contact.getName());
544 p.setRole(ParticipantRole.PARTICIPANT_SUBJECT);
◆ entityId()
Object org.turro.dossier.entity.Dossier.entityId |
( |
| ) |
|
◆ existsParticipant()
Definition at line 413 of file Dossier.java.
415 if(!Strings.isBlank(p.getIdContact()) && p.getIdContact().equals(participant.getIdContact())) {
◆ getActiveVersions()
Set<DossierVersion> org.turro.dossier.entity.Dossier.getActiveVersions |
( |
| ) |
|
Definition at line 269 of file Dossier.java.
270 TreeSet<DossierVersion> tdv =
new TreeSet<>();
271 for(DossierVersion dv : versions) {
◆ getAllIssues() [1/2]
Collection<Issue> org.turro.dossier.entity.Dossier.getAllIssues |
( |
| ) |
|
Definition at line 281 of file Dossier.java.
Collection< Issue > getAllIssues()
◆ getAllIssues() [2/2]
Collection<Issue> org.turro.dossier.entity.Dossier.getAllIssues |
( |
boolean |
publicOnly | ) |
|
Definition at line 289 of file Dossier.java.
290 Dao dao =
new DossierPU();
291 return dao.getResultList(
292 "select issue from Issue as issue " +
293 "where issue.dossier = ? " +
294 (publicOnly ?
"and issue.publishable = TRUE " :
"") +
295 "order by issue.issueDate",
◆ getAllPublishableIssues()
Collection<Issue> org.turro.dossier.entity.Dossier.getAllPublishableIssues |
( |
| ) |
|
◆ getCategory()
Category org.turro.dossier.entity.Dossier.getCategory |
( |
| ) |
|
◆ getClosedIssues() [1/2]
Collection<Issue> org.turro.dossier.entity.Dossier.getClosedIssues |
( |
| ) |
|
Definition at line 335 of file Dossier.java.
Collection< Issue > getClosedIssues()
◆ getClosedIssues() [2/2]
Collection<Issue> org.turro.dossier.entity.Dossier.getClosedIssues |
( |
boolean |
publicOnly | ) |
|
Definition at line 343 of file Dossier.java.
344 Dao dao =
new DossierPU();
345 return dao.getResultList(
346 "select issue from Issue as issue " +
347 "where issue.dossier = ? " +
348 (publicOnly ?
"and issue.publishable = TRUE " :
"") +
349 "and (issue.status = ? " +
350 "or issue.status = ? " +
351 "or issue.status = ?) " +
352 "order by issue.issueDate",
355 IssueStatus.STATUS_RESOLVED,
356 IssueStatus.STATUS_VERIFIED,
357 IssueStatus.STATUS_CLOSED
◆ getClosedPublishableIssues()
Collection<Issue> org.turro.dossier.entity.Dossier.getClosedPublishableIssues |
( |
| ) |
|
◆ getCreation()
Date org.turro.dossier.entity.Dossier.getCreation |
( |
| ) |
|
◆ getDefaultResponsible()
IContact org.turro.dossier.entity.Dossier.getDefaultResponsible |
( |
| ) |
|
Definition at line 620 of file Dossier.java.
622 if(p.getRole().equals(ParticipantRole.PARTICIPANT_OWNER)) {
623 return Contacts.getContactById(p.getIdContact());
628 if(contact !=
null && contact.isValid()) {
633 if(p.getRole().equals(ParticipantRole.PARTICIPANT_ASSISTANT)) {
634 return Contacts.getContactById(p.getIdContact());
639 if(contact !=
null && contact.isValid()) {
IContact getDefaultResponsible(ParticipantRole role)
◆ getDescription()
String org.turro.dossier.entity.Dossier.getDescription |
( |
| ) |
|
◆ getDescriptors()
Definition at line 231 of file Dossier.java.
232 Dao dao =
new DossierPU();
233 if(
id !=
null &&
id > 0 && dao.isNotLoaded(descriptors)) {
234 descriptors = dao.lazyLoader(Dossier.class,
this,
"descriptors").descriptors;
◆ getDescriptorSet()
DescriptorSet org.turro.dossier.entity.Dossier.getDescriptorSet |
( |
| ) |
|
Definition at line 650 of file Dossier.java.
651 if(_descriptors ==
null) {
652 _descriptors =
new DescriptorSet(
this);
◆ getDescriptorValueSet()
Definition at line 659 of file Dossier.java.
660 if(_descriptorValues ==
null) {
661 _descriptorValues =
new DescriptorValueSet(
this);
663 return _descriptorValues;
◆ getDirectOwners()
Definition at line 591 of file Dossier.java.
592 List<IDossierParticipant> list =
new ArrayList<>();
594 if(p.getRole().equals(ParticipantRole.PARTICIPANT_OWNER)) {
List< IDossierParticipant > getDirectOwners()
◆ getDossierURL()
String org.turro.dossier.entity.Dossier.getDossierURL |
( |
| ) |
|
Definition at line 689 of file Dossier.java.
692 path = (String)
getFieldMap().get(
"dossierOpenUrl");
694 path = (String)
getFieldMap().get(
"dossierClosedUrl");
696 return path ==
null ? null : path +
getId();
DossierStatus getStatus()
Map< String, Object > getFieldMap()
◆ getExtraDescription()
String org.turro.dossier.entity.Dossier.getExtraDescription |
( |
| ) |
|
Definition at line 486 of file Dossier.java.
489 if(!Strings.isEmpty(fv.getValue()) && fv.getFieldDef().isDescription()) {
490 if(s.length() != 0) s +=
", ";
491 s += fv.getObjectString(
false).trim();
Set< FieldValue > getFieldValues()
◆ getFieldMap()
Map<String, Object> org.turro.dossier.entity.Dossier.getFieldMap |
( |
| ) |
|
Definition at line 458 of file Dossier.java.
459 if(fieldMap ==
null) {
460 fieldMap =
new FieldValueMap(
this);
◆ getFieldValues()
Set<FieldValue> org.turro.dossier.entity.Dossier.getFieldValues |
( |
| ) |
|
◆ getFullDescription() [1/2]
String org.turro.dossier.entity.Dossier.getFullDescription |
( |
| ) |
|
◆ getFullDescription() [2/2]
String org.turro.dossier.entity.Dossier.getFullDescription |
( |
boolean |
withSubject | ) |
|
Definition at line 471 of file Dossier.java.
472 Participant subject = withSubject ?
getSubject() : null;
473 StringBuilder sb =
new StringBuilder();
474 if(subject !=
null) {
475 sb.append(subject.getName());
476 sb.append(Chars.forward().spaced());
478 sb.append(description);
479 if(category !=
null) {
480 sb.append(Chars.forward().spaced());
483 return sb.toString();
String getFullDescription()
◆ getFullParticipants()
Definition at line 399 of file Dossier.java.
400 if(_participants ==
null) {
402 if(category !=
null) {
406 return _participants;
ParticipantSet< IDossierParticipant > getFullParticipants()
◆ getFullRoleParticipants()
Definition at line 426 of file Dossier.java.
ParticipantSet< IDossierParticipant > getFullParticipants()
◆ getGroupings()
Collection<String> org.turro.dossier.entity.Dossier.getGroupings |
( |
| ) |
|
Definition at line 374 of file Dossier.java.
375 Dao dao =
new DossierPU();
376 return dao.getResultList(
377 "select distinct i.grouping " +
379 "where i.dossier = ?",
380 new Object[] {
this });
◆ getId()
Long org.turro.dossier.entity.Dossier.getId |
( |
| ) |
|
◆ getIssueGantt()
Definition at line 705 of file Dossier.java.
706 return new DossierGanttWrapper(
this);
◆ getIssueGraphModel()
IssueGraphModel org.turro.dossier.entity.Dossier.getIssueGraphModel |
( |
boolean |
onlyMilestones, |
|
|
boolean |
onlyOpen |
|
) |
| |
Definition at line 701 of file Dossier.java.
702 return new IssueGraphModel(
this, onlyMilestones, onlyOpen);
◆ getIssues()
Set<Issue> org.turro.dossier.entity.Dossier.getIssues |
( |
| ) |
|
◆ getIssuesByGrouping()
Collection<Issue> org.turro.dossier.entity.Dossier.getIssuesByGrouping |
( |
String |
grouping | ) |
|
Definition at line 383 of file Dossier.java.
384 Dao dao =
new DossierPU();
385 return dao.getResultList(
388 "where i.dossier = ? " +
389 "and i.grouping = ?",
390 new Object[] {
this, grouping });
◆ getIssuesByType()
Collection<Issue> org.turro.dossier.entity.Dossier.getIssuesByType |
( |
IssueType |
type | ) |
|
Definition at line 362 of file Dossier.java.
363 Dao dao =
new DossierPU();
364 return dao.getResultList(
367 "where i.dossier = ? " +
369 new Object[] {
this, type });
◆ getLabeledPublishableDescription()
String org.turro.dossier.entity.Dossier.getLabeledPublishableDescription |
( |
| ) |
|
Definition at line 510 of file Dossier.java.
513 if(!Strings.isEmpty(fv.getValue()) &&
514 fv.getFieldDef().isDescription() &&
515 fv.getFieldDef().isPublishable()) {
516 if(s.length() != 0 && !s.endsWith(
", ")) s +=
", ";
517 s += fv.getLabeledObjectString().trim();
◆ getLastActivity()
Date org.turro.dossier.entity.Dossier.getLastActivity |
( |
| ) |
|
Definition at line 739 of file Dossier.java.
741 if(project !=
null) {
745 last = assignLast(project.
getEndDate(), last);
Date getOppositingEndDate()
◆ getOffers()
Set<DossierOffer> org.turro.dossier.entity.Dossier.getOffers |
( |
| ) |
|
Definition at line 255 of file Dossier.java.
256 Dao dao =
new DossierPU();
257 if(
id !=
null &&
id > 0 && dao.isNotLoaded(offers)) {
258 offers = dao.lazyLoader(Dossier.class,
this,
"offers").offers;
◆ getOpenIssues() [1/2]
Collection<Issue> org.turro.dossier.entity.Dossier.getOpenIssues |
( |
| ) |
|
Definition at line 302 of file Dossier.java.
Collection< Issue > getOpenIssues()
◆ getOpenIssues() [2/2]
Collection<Issue> org.turro.dossier.entity.Dossier.getOpenIssues |
( |
boolean |
publicOnly | ) |
|
Definition at line 310 of file Dossier.java.
311 Dao dao =
new DossierPU();
312 return dao.getResultList(
313 "select issue from Issue as issue " +
314 "where issue.dossier = ? " +
315 (publicOnly ?
"and issue.publishable = TRUE " :
"") +
316 "and (issue.status = ? " +
317 "or issue.status = ? " +
318 "or issue.status = ? " +
319 "or issue.status = ? " +
320 "or issue.status = ? " +
321 "or issue.status = ?) " +
322 "order by issue.issueDate",
325 IssueStatus.STATUS_NEW,
326 IssueStatus.STATUS_INCOMPLETE,
327 IssueStatus.STATUS_STARTED,
328 IssueStatus.STATUS_REOPENED,
329 IssueStatus.STATUS_REUNION,
330 IssueStatus.STATUS_FROZEN
◆ getOpenPublishableIssues()
Collection<Issue> org.turro.dossier.entity.Dossier.getOpenPublishableIssues |
( |
| ) |
|
◆ getParticipants()
Set<Participant> org.turro.dossier.entity.Dossier.getParticipants |
( |
| ) |
|
Definition at line 175 of file Dossier.java.
176 Dao dao =
new DossierPU();
177 if(
id !=
null &&
id > 0 && dao.isNotLoaded(participants)) {
178 participants = dao.lazyLoader(Dossier.class,
this,
"participants").participants;
◆ getParticipationsList()
Definition at line 436 of file Dossier.java.
437 if(_participations ==
null) {
438 _participations =
new DossierParticipationsList(
this);
440 return _participations;
◆ getPossibleDiscriminators()
Collection<String> org.turro.dossier.entity.Dossier.getPossibleDiscriminators |
( |
| ) |
|
Definition at line 449 of file Dossier.java.
450 Dao dao =
new DossierPU();
451 return dao.getResultList(
"select distinct discriminator from Participant");
◆ getProject()
Project org.turro.dossier.entity.Dossier.getProject |
( |
| ) |
|
◆ getPublishableDescription()
String org.turro.dossier.entity.Dossier.getPublishableDescription |
( |
| ) |
|
Definition at line 497 of file Dossier.java.
500 if(!Strings.isEmpty(fv.getValue()) &&
501 fv.getFieldDef().isDescription() &&
502 fv.getFieldDef().isPublishable()) {
503 if(s.length() != 0 && !s.endsWith(
", ")) s +=
", ";
504 s += fv.getObjectString(
false).trim();
◆ getRelated()
RelatedItem org.turro.dossier.entity.Dossier.getRelated |
( |
| ) |
|
◆ getReport()
Definition at line 681 of file Dossier.java.
682 if(_report ==
null) {
683 _report =
new DossierDWReport();
void setReportValues(Dossier dossier)
◆ getRoleParticipants()
Definition at line 422 of file Dossier.java.
423 return new ParticipantSet<IDossierParticipant>(
getParticipants()).stream().filter(p -> p.hasRole()).toList();
◆ getSearching()
String org.turro.dossier.entity.Dossier.getSearching |
( |
| ) |
|
◆ getSerializerMappings()
MappingSet org.turro.dossier.entity.Dossier.getSerializerMappings |
( |
| ) |
|
Definition at line 760 of file Dossier.java.
761 MappingSet
set =
new MappingSet();
762 set.addMapping(Dossier.class, 1,
763 new String[] {
"id",
"description",
"creation",
"type",
"status",
"publishable" },
764 new String[] {
"category",
"versions",
"participants",
"fieldValues",
765 "project",
"descriptors" });
766 set.addMapping(Category.class, 2,
767 new String[] {
"id",
"description" },
769 set.addMapping(DossierVersion.class, 2,
770 new String[] {
"versionId",
"releaseDate",
"active" },
772 set.addMapping(Participant.class, 2,
773 new String[] {
"name",
"idContact",
"role",
"showAllAttachments",
"showParticipants",
774 "showAllIssues",
"receiveAllEmails",
"bindingVote",
"discriminator",
"driver",
"coordinator",
775 "beneficiary",
"offerer",
"research",
"funding",
"support",
"consortium",
"admin" },
777 set.addMapping(FieldValue.class, 2,
778 new String[] {
"value" },
780 set.addMapping(Project.class, 2,
781 new String[] {
"projectCode",
"projectTitle",
"phase",
"estimatedBudget",
782 "assignedBudget",
"startDate",
"approvedDate",
"oppositingEndDate",
"endDate",
"goal" },
783 new String[] {
"matchCriteria" });
784 set.addMapping(GrantMatchCriteria.class, 3,
785 new String[] {
"hiring",
"idi",
"investment",
"startUp" },
787 set.addMapping(DescriptorValue.class, 2,
788 new String[] {
"wiki" },
◆ getStageWrapper()
Definition at line 730 of file Dossier.java.
734 return new DossierStageWrapper(
this);
◆ getStatus()
◆ getSubject()
Participant org.turro.dossier.entity.Dossier.getSubject |
( |
| ) |
|
Definition at line 602 of file Dossier.java.
604 if(p.getRole().equals(ParticipantRole.PARTICIPANT_SUBJECT)) {
◆ getType()
DossierType org.turro.dossier.entity.Dossier.getType |
( |
| ) |
|
◆ getUniquePath()
String org.turro.dossier.entity.Dossier.getUniquePath |
( |
| ) |
|
◆ getVersions()
◆ getWorths()
Set<WorthValue> org.turro.dossier.entity.Dossier.getWorths |
( |
| ) |
|
Definition at line 243 of file Dossier.java.
244 Dao dao =
new DossierPU();
245 if(
id !=
null &&
id > 0 && dao.isNotLoaded(worths)) {
246 worths = dao.lazyLoader(Dossier.class,
this,
"worths").worths;
◆ getWorthSet()
WorthSet org.turro.dossier.entity.Dossier.getWorthSet |
( |
| ) |
|
Definition at line 670 of file Dossier.java.
671 if(_worths ==
null) {
672 _worths =
new WorthSet(
this);
◆ isBranchAdmin()
boolean org.turro.dossier.entity.Dossier.isBranchAdmin |
( |
IContact |
contact | ) |
|
Definition at line 580 of file Dossier.java.
582 if(p.getRole().equals(ParticipantRole.PARTICIPANT_OWNER) &&
583 contact.getId().equals(p.getIdContact()) &&
DossierParticipationsList getParticipationsList()
◆ isDirectOwner()
boolean org.turro.dossier.entity.Dossier.isDirectOwner |
( |
IContact |
contact | ) |
|
Definition at line 569 of file Dossier.java.
571 if(p.getRole().equals(ParticipantRole.PARTICIPANT_OWNER)) {
572 if(contact.getId().equals(p.getIdContact())) {
boolean isDirectOwner(IContact contact)
List< IDossierParticipant > getDirectOwners()
◆ isEmpty()
boolean org.turro.dossier.entity.Dossier.isEmpty |
( |
| ) |
|
◆ isKnowledgeBase()
boolean org.turro.dossier.entity.Dossier.isKnowledgeBase |
( |
| ) |
|
Definition at line 723 of file Dossier.java.
724 if(category !=
null) {
boolean isKnowledgeBase()
◆ isPublishable()
boolean org.turro.dossier.entity.Dossier.isPublishable |
( |
| ) |
|
◆ resetParticipants()
void org.turro.dossier.entity.Dossier.resetParticipants |
( |
| ) |
|
◆ resetParticipations()
void org.turro.dossier.entity.Dossier.resetParticipations |
( |
| ) |
|
◆ setCategory()
void org.turro.dossier.entity.Dossier.setCategory |
( |
Category |
category | ) |
|
◆ setCreation()
void org.turro.dossier.entity.Dossier.setCreation |
( |
Date |
creation | ) |
|
◆ setDescription()
void org.turro.dossier.entity.Dossier.setDescription |
( |
String |
description | ) |
|
Definition at line 147 of file Dossier.java.
148 this.description = description;
◆ setDescriptors()
void org.turro.dossier.entity.Dossier.setDescriptors |
( |
Set< DescriptorValue > |
descriptors | ) |
|
Definition at line 239 of file Dossier.java.
240 this.descriptors = descriptors;
◆ setFieldValues()
void org.turro.dossier.entity.Dossier.setFieldValues |
( |
Set< FieldValue > |
fieldValues | ) |
|
Definition at line 155 of file Dossier.java.
156 this.fieldValues = fieldValues;
◆ setId()
void org.turro.dossier.entity.Dossier.setId |
( |
Long |
id | ) |
|
◆ setIssues()
void org.turro.dossier.entity.Dossier.setIssues |
( |
Set< Issue > |
issues | ) |
|
◆ setOffers()
void org.turro.dossier.entity.Dossier.setOffers |
( |
Set< DossierOffer > |
offers | ) |
|
◆ setParticipants()
void org.turro.dossier.entity.Dossier.setParticipants |
( |
Set< Participant > |
participants | ) |
|
Definition at line 183 of file Dossier.java.
184 this.participants = participants;
◆ setProject()
void org.turro.dossier.entity.Dossier.setProject |
( |
Project |
project | ) |
|
◆ setPublishable()
void org.turro.dossier.entity.Dossier.setPublishable |
( |
boolean |
publishable | ) |
|
Definition at line 203 of file Dossier.java.
204 this.publishable = publishable;
◆ setSearching()
void org.turro.dossier.entity.Dossier.setSearching |
( |
String |
searching | ) |
|
Definition at line 223 of file Dossier.java.
224 this.searching = searching;
◆ setStatus()
void org.turro.dossier.entity.Dossier.setStatus |
( |
DossierStatus |
status | ) |
|
◆ setSubject()
void org.turro.dossier.entity.Dossier.setSubject |
( |
IContact |
subject | ) |
|
Definition at line 611 of file Dossier.java.
614 p.setIdContact(subject.getId());
void addSubject(IContact contact)
◆ setType()
void org.turro.dossier.entity.Dossier.setType |
( |
DossierType |
type | ) |
|
◆ setUniquePath()
void org.turro.dossier.entity.Dossier.setUniquePath |
( |
String |
uniquePath | ) |
|
Definition at line 123 of file Dossier.java.
124 this.uniquePath = uniquePath;
◆ setVersions()
void org.turro.dossier.entity.Dossier.setVersions |
( |
Set< DossierVersion > |
versions | ) |
|
◆ setWorths()
void org.turro.dossier.entity.Dossier.setWorths |
( |
Set< WorthValue > |
worths | ) |
|
The documentation for this class was generated from the following file: