19 package org.turro.parser;
21 import java.io.IOException;
22 import java.util.Arrays;
23 import java.util.logging.Level;
24 import java.util.logging.Logger;
25 import org.turro.string.ObjectString;
26 import org.turro.string.Strings;
27 import org.turro.annotation.ExternalParser;
28 import org.turro.auth.Authentication;
29 import org.turro.dossier.entity.IssueType;
30 import org.turro.dossier.www.AddInformationCtrl;
31 import org.turro.dossier.www.CategoriesTree;
32 import org.turro.dossier.www.CreateIssueCtrl;
33 import org.turro.dossier.www.DossierIterator;
34 import org.turro.dossier.www.EditDossierCtrl;
35 import org.turro.dossier.www.IssueIterator;
36 import org.turro.dossier.www.IssueOrdering;
37 import org.turro.dossier.www.QuestionCtrl;
38 import org.turro.elephant.context.ElephantContext;
39 import org.turro.elephant.context.IConstructor;
40 import org.turro.path.Path;
41 import org.turro.util.IdGenerator;
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))) {
71 ii.
setPage((Integer) ObjectString.parseNativeString(
getToken(5), Integer.class,
true));
99 IdGenerator.generate());
101 di.
setDossierStatus(Arrays.asList(
"DOSSIER_OPENED,DOSSIER_FROZEN".split(
",")));
102 }
else if(
"closed".equals(
getToken(1))) {
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))) {
111 di.
setPage((Integer) ObjectString.parseNativeString(
getToken(5), Integer.class,
true));
133 IdGenerator.generate());
135 di.
setDossierStatus(Arrays.asList(
"DOSSIER_OPENED,DOSSIER_FROZEN".split(
",")));
136 }
else if(
"closed".equals(
getToken(1))) {
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))) {
144 di.
setPage((Integer) ObjectString.parseNativeString(
getToken(4), Integer.class,
true));
169 IdGenerator.generate());
172 di.
setPage((Integer) ObjectString.parseNativeString(
getToken(5), Integer.class,
true));
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());
244 macros.
addMacro(
"assisted-issue-summary")
264 macros.
addMacro(
"mydossier-summary")
279 macros.
addMacro(
"direct-dossier-summary")
283 macros.
addMacro(
"related-dossier-summary")
332 }
catch (IOException ex) {
static IContact getIContact()
static String createIssue(String link, String dossierId, String template)
void setAllowedCategories(String allowedCategories)
void setProjectPhases(List< String > projectPhases)
void setDirect(boolean direct)
void setRelated(Collection< IContact > related)
void setDossierId(long dossierId)
void setPendingWorths(String pendingWorths)
void setDossierStatus(List< String > dossierStatus)
static String editDossier(String dossierId, String link, String template)
void setIssueStatus(List< String > issueStatus)
void setOnlyAssists(boolean onlyAssists)
void setOrderBy(IssueOrdering orderBy)
void setCategoryId(long categoryId)
void setDossierId(long dossierId)
static String editQuestion(String issueId, String link, IssueType type, String template)
static String getRootWebPath()
static String logMsg(String msg)
void setAllowAttachments(boolean allowAttachments)
void setAllowInterest(boolean allowInterest)
void setAllowDescriptions(boolean allowDescriptions)
void setRestricted(boolean restricted)
void setAllowComments(boolean allowComments)
void setNavigatorBottom(boolean navigatorBottom)
void setSummaryTemplate(String summaryTemplate)
void setNavigatorTop(boolean navigatorTop)
void setAllowVotes(boolean allowVotes)
void fillTree(String path)
String getToken(String name)
void explainMacros(ParserMacroSet macros)
String getCategories(IConstructor constructor, String summaryTemplate, String fullTemplate, String context, String categories)
ParserMacro addMacro(String macroName)
ParserMacro addPossibleValue(String value)
void copyParametersFrom(String macroName, ParserMacroSet macros)
ParserMacro addParameter(String name, boolean optional)
void setOut(PrintWriter out)