19 package org.turro.issue.wizard;
21 import org.turro.string.Strings;
22 import org.turro.auth.Authentication;
23 import org.turro.dossier.dossier.DossierCombobox;
24 import org.turro.dossier.entity.IssueParticipant;
25 import org.turro.dossier.issue.IssueWrapper;
26 import org.turro.dossier.zul.dossier.DossierVersionListbox;
27 import org.turro.dossier.zul.issue.GroupingCombobox;
28 import org.turro.dossier.zul.issue.IssuePriorityListbox;
29 import org.turro.dossier.zul.issue.IssueTypeListbox;
30 import org.turro.elephant.context.Application;
31 import org.turro.i18n.I_;
32 import org.turro.registry.BooleanChange;
33 import org.turro.registry.ChangeCategory;
34 import org.turro.registry.EnumChange;
35 import org.turro.registry.StringChange;
36 import org.turro.registry.UniqueString;
37 import org.turro.zkoss.wizard.WizardPanelComposer;
38 import org.zkoss.zul.Checkbox;
39 import org.zkoss.zul.Textbox;
53 private Checkbox publishable, milestone;
60 dossier.setReadonly(!app.
isInRole(
"issue:dossier"));
75 public boolean doLeave(
boolean forwards) {
76 ChangeCategory issueCat =
new ChangeCategory(2,
I_.
get(
"Changes"));
78 ChangeCategory cc =
new ChangeCategory(4,
I_.
get(
"Participants"));
81 iw.
changes.addChange(
new StringChange(issueCat,
I_.
get(
"Dossier"),
85 iw.
changes.addChange(
new StringChange(issueCat,
I_.
get(
"Version"),
89 iw.
changes.addChange(
new StringChange(issueCat,
I_.
get(
"Description"),
92 iw.
changes.addChange(
new EnumChange(issueCat,
I_.
get(
"Type"),
95 iw.
changes.addChange(
new StringChange(issueCat,
I_.
get(
"Grouping"),
98 iw.
changes.addChange(
new EnumChange(issueCat,
I_.
get(
"Priority"),
113 if(app.
isInRole(
"issue:participants")) {
122 return !forwards || (
static IContact getIContact()
IContact getDefaultResponsible()
IssueParticipantRole getRole()
void setPublishable(boolean publishable)
void setMilestone(boolean milestone)
void setType(IssueType type)
IssuePriority getPriority()
void setDescription(String description)
IssueParticipant addReporter(Object contact)
void setVersion(DossierVersion version)
void setDossier(Dossier dossier)
void setPriority(IssuePriority priority)
IssueParticipant addResponsible(Object contact)
DossierVersion getVersion()
void setGrouping(String grouping)
void setDossier(Dossier dossier)
boolean isInRole(String role)
static Application getApplication()
static String byKey(String key)
static String get(String msg)
boolean doLeave(boolean forwards)