18 package org.turro.dossier.www;
20 import java.io.IOException;
21 import java.io.PrintWriter;
22 import java.util.List;
23 import javax.servlet.ServletException;
24 import org.turro.string.Strings;
25 import org.turro.auth.Authentication;
26 import org.turro.dashboard.AbstractDaoDashboard;
27 import org.turro.dossier.dossier.DossierCounter;
28 import org.turro.dossier.entity.Category;
29 import org.turro.elephant.context.ElephantContext;
30 import org.turro.elephant.web.ElContext;
31 import org.turro.indicator.Indicators;
32 import org.turro.jpa.iterator.DaoHtmlIterator;
33 import org.turro.jpa.search.DaoHtmlSearch;
34 import org.turro.jpa.search.DaoSearchKey;
35 import org.turro.phase.PhaseDefinitions;
43 protected String
categoryTemplate, orderBy, allowedCategories, issuePath, phaseTemplate;
44 protected List<String>
issueTypes, issueStatus, dossierTypes, dossierStatus, projectPhases;
55 dossierId =
getAttributes().getAttributeIntegerValue(
"attrib:dossierId", 0);
57 dossierTypes =
getAttributes().getAttributeListValue(
"attrib:dossierTypes",
null);
59 dossierStatus =
getAttributes().getAttributeListValue(
"attrib:dossierStatus",
null);
61 projectPhases =
getAttributes().getAttributeListValue(
"attrib:projectPhases",
null);
65 issueStatus =
getAttributes().getAttributeListValue(
"attrib:issueStatus",
"");
66 allowedCategories =
getAttributes().getAttributeValue(
"attrib:allowedCategories",
"");
68 onlyDossiers =
getAttributes().getAttributeBooleanValue(
"attrib:onlyDossiers",
false);
70 phaseTemplate =
getAttributes().getAttributeValue(
"attrib:phaseTemplate",
"");
71 orderBy =
getAttributes().getAttributeValue(
"attrib:orderBy",
"ORDER_BY_CATEGORY_DOSSIER_ISSUE");
72 issuePath =
getAttributes().getAttributeValue(
"attrib:issuePath",
"");
75 if(!Strings.isBlank(allowedCategories)) {
78 dossierTypes ==
null ?
null : dossierTypes.toArray(
new String[0]),
79 dossierStatus ==
null ?
null : dossierStatus.toArray(
new String[0]));
90 di.setDossierTypes(dossierTypes);
117 if(dsk !=
null && Strings.isBlank(dsk.
getValue())) {
120 dhs.put(
"point-of-view", dsk);
156 if(!Strings.isBlank(phaseTemplate)) {
160 phf.
setTypes(dossierTypes ==
null ?
null : dossierTypes.toArray(
new String[0]));
161 phf.
setStatus(dossierStatus ==
null ?
null : dossierStatus.toArray(
new String[0]));
181 dossierTypes =
getAttributes().getAttributeListValue(
"attrib:dossierTypes",
null);
183 dossierStatus =
getAttributes().getAttributeListValue(
"attrib:dossierStatus",
null);
184 allowedCategories =
getAttributes().getAttributeValue(
"attrib:allowedCategories",
"");
185 onlyDossiers =
getAttributes().getAttributeBooleanValue(
"attrib:onlyDossiers",
false);
187 if(!Strings.isBlank(allowedCategories)) {
190 dossierTypes ==
null ?
null : dossierTypes.toArray(
new String[0]),
191 dossierStatus ==
null ?
null : dossierStatus.toArray(
new String[0]));
static IContact getIContact()
boolean isAllowDescriptions()
boolean isAllowInterest()
boolean isAllowComments()
boolean isAllowAttachments()
DaoHtmlSearch getSearchEngine()
List< String > issueTypes
void setRootCategories(ElContext root)
DaoHtmlIterator initIterator()
void setAllowedCategories(String allowedCategories)
void setPhaseFilter(PhaseHtmlFilter phaseFilter)
void setProjectPhases(List< String > projectPhases)
void setCategoryId(long categoryId)
void setIssuePath(String issuePath)
void setDossierId(long dossierId)
void setDossierStatus(List< String > dossierStatus)
void setIssueStatus(List< String > issueStatus)
void setDossierStatus(List< String > dossierStatus)
void setOrderBy(IssueOrdering orderBy)
void setCategoryId(long categoryId)
void setDossierId(long dossierId)
void setIssueTypes(List< String > issueTypes)
void setAllowedCategories(String allowedCategories)
static PhaseHtmlFilter getInstance(IConstructor constructor, String context)
void setTypes(String[] types)
void setStatus(String[] status)
void setTemplate(String template)
static String getContextVariable(IConstructor constructor)
AttributeSupport getAttributes()
IConstructor getConstructor()
void generateCategoriesChildren(Tree tree, Function< Item, String > onParam)
static List< IndicatorVariable > getMatchingVariablesFinal(String root)
static List< IndicatorVariable > getRankingVariablesFinal(String root)
void setAllowAttachments(boolean allowAttachments)
void setAllowDescriptions(boolean allowDescriptions)
void setAllowComments(boolean allowComments)
static String getSelectionLink(String path)
void setAllowForum(boolean allowForum)
void setAllowInterest(boolean allowInterest)
void setRestricted(boolean restricted)
void setAllowVotes(boolean allowVotes)
void setNavigationTree(DaoHtmlTree navigationTree)
void setSearchEngine(DaoHtmlSearch searchEngine)
void setFullTemplate(String fullTemplate)
void fillTree(String path)
void setAttribute(IConstructor constructor, String attribute, Object value)
void setTagRoot(String tagRoot)
void setValue(String value)
static PhaseDefinitions instance()