62 Strings.isBlank(
getToken(2)) ?
null : ElephantContext.getRootWebPath() +
getToken(2),
63 IdGenerator.generate());
65 ii.setIssueStatus(Arrays.asList(
"STATUS_NEW,STATUS_STARTED,STATUS_INCOMPLETE,STATUS_REOPENED,STATUS_REUNION,STATUS_FROZEN,STATUS_RESOLVED,STATUS_VERIFIED".split(
",")));
66 }
else if(
"closed".equals(
getToken(1))) {
67 ii.setIssueStatus(Arrays.asList(
"STATUS_CLOSED".split(
",")));
69 ii.setCategoryId((Integer) ObjectString.parseNativeString(
getToken(3), Integer.class,
true));
70 ii.setDossierId((Integer) ObjectString.parseNativeString(
getToken(4), Integer.class,
true));
71 ii.setPage((Integer) ObjectString.parseNativeString(
getToken(5), Integer.class,
true));
72 ii.setAllowAttachments(
true);
73 ii.setAllowDescriptions(
true);
74 ii.setAllowInterest(
true);
75 ii.setAllowVotes(
true);
76 ii.setAllowComments(
true);
77 ii.setRestricted(
false);
80 ii.setOrderBy(IssueOrdering.ORDER_BY_ACTIVITY);
81 ii.setNavigatorTop(
false);
82 ii.setNavigatorBottom(
false);
85 ii.setRestricted(
true);
88 ii.setRestricted(
true);
89 ii.setOnlyAssists(
true);
97 DossierIterator di =
new DossierIterator(
constructor,
98 Strings.isBlank(
getToken(2)) ?
null : ElephantContext.getRootWebPath() +
getToken(2),
99 IdGenerator.generate());
101 di.setDossierStatus(Arrays.asList(
"DOSSIER_OPENED,DOSSIER_FROZEN".split(
",")));
102 }
else if(
"closed".equals(
getToken(1))) {
103 di.setDossierStatus(Arrays.asList(
"DOSSIER_CLOSED".split(
",")));
104 }
else if(
"not-frozen".equals(
getToken(1))) {
105 di.setDossierStatus(Arrays.asList(
"DOSSIER_OPENED,DOSSIER_CLOSED".split(
",")));
106 }
else if(
"frozen".equals(
getToken(1))) {
107 di.setDossierStatus(Arrays.asList(
"DOSSIER_FROZEN".split(
",")));
109 di.setAllowedCategories(
getToken(3));
110 di.setDossierId((Integer) ObjectString.parseNativeString(
getToken(4), Integer.class,
true));
111 di.setPage((Integer) ObjectString.parseNativeString(
getToken(5), Integer.class,
true));
112 di.setAllowAttachments(
true);
113 di.setAllowDescriptions(
true);
114 di.setAllowInterest(
true);
115 di.setAllowVotes(
true);
116 di.setAllowComments(
true);
117 di.setRestricted(
false);
120 di.setNavigatorTop(
false);
121 di.setNavigatorBottom(
false);
124 di.setRestricted(
true);
131 DossierIterator di =
new DossierIterator(
constructor,
132 Strings.isBlank(
getToken(2)) ?
null : ElephantContext.getRootWebPath() +
getToken(2),
133 IdGenerator.generate());
135 di.setDossierStatus(Arrays.asList(
"DOSSIER_OPENED,DOSSIER_FROZEN".split(
",")));
136 }
else if(
"closed".equals(
getToken(1))) {
137 di.setDossierStatus(Arrays.asList(
"DOSSIER_CLOSED".split(
",")));
138 }
else if(
"not-frozen".equals(
getToken(1))) {
139 di.setDossierStatus(Arrays.asList(
"DOSSIER_OPENED,DOSSIER_CLOSED".split(
",")));
140 }
else if(
"frozen".equals(
getToken(1))) {
141 di.setDossierStatus(Arrays.asList(
"DOSSIER_FROZEN".split(
",")));
143 di.setAllowedCategories(
getToken(3));
144 di.setPage((Integer) ObjectString.parseNativeString(
getToken(4), Integer.class,
true));
145 di.setAllowAttachments(
true);
146 di.setAllowDescriptions(
true);
147 di.setAllowInterest(
true);
148 di.setAllowVotes(
true);
149 di.setAllowComments(
true);
151 di.setRestricted(
true);
155 di.setRestricted(
false);
156 di.setRelated(Authentication.getIContact().getCoworkers());
160 di.setNavigatorTop(
false);
161 di.setNavigatorBottom(
false);
167 DossierIterator di =
new DossierIterator(
constructor,
168 Strings.isBlank(
getToken(1)) ?
null : ElephantContext.getRootWebPath() +
getToken(1),
169 IdGenerator.generate());
170 di.setProjectPhases(Arrays.asList(
new String[] { getToken(2) }));
171 di.setAllowedCategories(
getToken(4));
172 di.setPage((Integer) ObjectString.parseNativeString(
getToken(5), Integer.class,
true));
173 di.setAllowAttachments(
true);
174 di.setAllowDescriptions(
true);
175 di.setAllowInterest(
true);
176 di.setAllowVotes(
true);
177 di.setAllowComments(
true);
178 di.setRestricted(
false);
181 di.setNavigatorTop(
false);
182 di.setNavigatorBottom(
false);
194 if(
getToken(1).startsWith(
"/dossier/")) {
196 out.write(
"/user/mydossiers/?item=" + path.getLastNode());
198 }
else if(
getToken(1).startsWith(
"/issue/")) {
200 out.write(
"/user/myissues/?item=" + path.getLastNode());
String getToken(String name)
String getCategories(IConstructor constructor, String summaryTemplate, String fullTemplate, String context, String categories)