◆ 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.
36 IAttachFolder parent = folder.getParentFolder();
37 if(
"/dossier".equals(folder.getFolderPath())) {
38 folder.setFolderLabel(I_.get(
"Dossier"));
40 else if(
"/issue".equals(folder.getFolderPath())) {
41 folder.setFolderLabel(I_.get(
"Issue"));
43 else if(parent !=
null &&
"/dossier".equals(parent.getFolderPath())) {
44 Dossier dossier =
new DossierPU().find(Dossier.class, Long.valueOf(folder.getFolderLabel()));
46 folder.setFolderLabel(dossier.getId() +
" - " + StringParser.cutString(dossier.getDescription(), 50));
49 else if(parent !=
null &&
"/issue".equals(parent.getFolderPath())) {
50 Issue issue =
new DossierPU().find(Issue.class, Long.valueOf(folder.getFolderLabel()));
52 folder.setFolderLabel(issue.getId() +
" - " + StringParser.cutString(issue.getDescription(), 50));
The documentation for this class was generated from the following file: