18 package org.turro.dossier.util;
20 import java.util.ArrayList;
21 import java.util.Collection;
22 import java.util.Date;
23 import org.turro.string.Strings;
24 import org.turro.annotation.ElephantPlugin;
25 import org.turro.dossier.db.DossierPU;
26 import org.turro.dossier.dossier.DossierWrapper;
27 import org.turro.dossier.entity.Category;
28 import org.turro.dossier.entity.Dossier;
29 import org.turro.dossier.entity.DossierStatus;
30 import org.turro.dossier.zul.menu.DossierMenu;
31 import org.turro.elephant.entities.db.Related;
32 import org.turro.elephant.util.Images;
33 import org.turro.entities.Entities;
34 import org.turro.i18n.I_;
35 import org.turro.plugin.contacts.IContact;
36 import org.turro.plugin.dossier.ICategory;
37 import org.turro.plugin.dossier.IDossier;
38 import org.turro.plugin.dossier.IIssue;
39 import org.turro.related.AbstractAddRelated;
40 import org.turro.related.RelatedNew;
41 import org.turro.related.Relateds;
42 import org.zkoss.zk.ui.HtmlBasedComponent;
51 private Collection<ICategory> categories =
new ArrayList<>();
52 private Long idCategory;
54 private String path, description;
55 private Collection<IIssue> issues =
new ArrayList<>();
64 this.categories = categories;
74 this.description = description;
84 this.idCategory = idCategory;
114 this.subject = subject;
143 if(rp.getDestination().startsWith(
"/dossier")) {
159 if(Strings.isBlank(path))
return;
160 if(categories !=
null) {
170 if(dossier ==
null) {
void setCategory(Category category)
void setCreation(Date creation)
void setDescription(String description)
void setStatus(DossierStatus status)
void addSubject(IContact contact)
void setSubject(IContact subject)
void setCategories(Collection< ICategory > categories)
void saveRelation(boolean showForm)
void setPath(String path)
Collection< IIssue > getIssues()
void setDescription(String description)
static Dossier loadByPath(String path)
HtmlBasedComponent getComponent()
Collection< ICategory > getCategories()
void setIdCategory(Long idCategory)
void setIssues(Collection< IIssue > issues)
void setDossier(IDossier dossier)
static String getImage(String image)
static IElephantEntity getController(String path)
static String get(String msg)