19 package org.turro.dossier.command;
21 import java.util.EnumSet;
22 import java.util.List;
24 import org.turro.action.IUserSummary;
25 import org.turro.action.UserSummaries;
26 import org.turro.annotation.UserSummary;
27 import org.turro.auth.Authentication;
28 import org.turro.charts.Data;
29 import org.turro.dossier.db.DossierPU;
30 import org.turro.dossier.dw.DWDossierModel;
31 import org.turro.dossier.dw.DWIssueModel;
32 import org.turro.dossier.dw.DWWebChart;
33 import org.turro.dossier.entity.IssueResolution;
34 import org.turro.dossier.entity.IssueStatus;
35 import org.turro.dossier.entity.IssueType;
36 import org.turro.dossier.kb.PendingRevisionQuery;
37 import org.turro.dossier.www.KnowledgeBaseDashboard;
38 import org.turro.elephant.context.ElephantContext;
39 import org.turro.elephant.context.IConstructor;
40 import org.turro.i18n.I_;
41 import org.turro.jpa.Dao;
42 import org.turro.marker.ElephantMarker;
43 import org.turro.phase.PhaseDefinitions;
44 import org.turro.plugin.contacts.IContact;
45 import org.turro.util.CompareUtil;
61 return marker.
parse(
"dossier",
"userSummary");
81 if(dossierModel ==
null) {
101 protected void onCreate(
Data data, Object[] pars) {
105 protected void loadData() {
108 setData(
I_.
get(
"Status"),
116 protected void onCreate(
Data data, Object[] pars) {
120 protected void loadData() {
124 for(Object[] obj : data) {
127 setData(
I_.
get(
"Phase"), data);
138 if(issueModel ==
null) {
158 protected void onCreate(
Data data, Object[] pars) {
160 (Set<IssueType>) EnumSet.of((
IssueType) pars[0]),
null,
null, 0L));
163 protected void loadData() {
166 setData(
I_.
get(
"Type"),
173 protected void onCreate(
Data data, Object[] pars) {
175 (Set<IssueStatus>) EnumSet.of((
IssueStatus) pars[0]),
null, 0L));
178 protected void loadData() {
181 setData(
I_.
get(
"Status"),
188 protected void onCreate(
Data data, Object[] pars) {
193 protected void loadData() {
196 setData(
I_.
get(
"Resolution"),
206 private long pending() {
209 "select count(a) from ParticipantRequest as a");
211 "select count(a) from CategoryRequest as a");
224 result = CompareUtil.compare(getClass().getName(), o.getClass().getName());
static boolean isNotZero(String attribute)
static void setAttribute(String attribute, Object value)
static Map< String, Object > getAttributes()
static Object getAttribute(String attribute)
static IContact getIContact()
void setLink(String link)
int compareTo(IUserSummary o)
String render(IConstructor constructor)
void init(IConstructor constructor)
void setIParticipant(IContact contact)
Long getParticipantsCount()
void setIParticipant(IContact contact)
Long getParticipantsCount()
static String createLink(String searchValue, boolean onlyTitle, Set< IssueType > type, Set< IssueStatus > status, Set< IssueResolution > resolution, Long dossierId)
static String getRootWebPath()
static String get(String msg)
Object getSingleResultOrNull(SqlClause sc)
String parse(String rootTmpl, String tmpl)
static PhaseDefinitions instance()
PhaseDefinition get(int index)