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

Public Member Functions

void processFolder (IAttachFolder folder)
 

Detailed Description

Member Function Documentation

◆ processFolder()

void org.turro.dossier.tree.AttachProcessor.processFolder ( IAttachFolder  folder)

Implements org.turro.plugin.attach.IAttachProcessor.

Definition at line 35 of file elephant-dossier/src/main/java/org/turro/dossier/tree/AttachProcessor.java.

35  {
36  IAttachFolder parent = folder.getParentFolder();
37  if("/dossier".equals(folder.getFolderPath())) {
38  folder.setFolderLabel(I_.get("Dossier"));
39  }
40  else if("/issue".equals(folder.getFolderPath())) {
41  folder.setFolderLabel(I_.get("Issue"));
42  }
43  else if(parent != null && "/dossier".equals(parent.getFolderPath())) {
44  Dossier dossier = new DossierPU().find(Dossier.class, Long.valueOf(folder.getFolderLabel()));
45  if(dossier != null) {
46  folder.setFolderLabel(dossier.getId() + " - " + StringParser.cutString(dossier.getDescription(), 50));
47  }
48  }
49  else if(parent != null && "/issue".equals(parent.getFolderPath())) {
50  Issue issue = new DossierPU().find(Issue.class, Long.valueOf(folder.getFolderLabel()));
51  if(issue != null) {
52  folder.setFolderLabel(issue.getId() + " - " + StringParser.cutString(issue.getDescription(), 50));
53  }
54  }
55  }
Here is the call graph for this function:

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