◆ doExecute()
boolean org.turro.parser.StudentsParser.doExecute |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.parser.AbstractParser.
Definition at line 43 of file StudentsParser.java.
47 ChallengeContentIterator cci =
new ChallengeContentIterator(
constructor,
null,
48 Authentication.getIContact(),
false, ElephantContext.getRootWebPath() +
getToken(1));
49 cci.setPage((Integer) ObjectString.parseNativeString(
getToken(2), Integer.class,
true));
50 cci.setAllowInterest(
true);
51 cci.setAllowVotes(
true);
52 cci.setAllowComments(
true);
53 cci.setAllowAttachments(
true);
54 cci.setAllowFiles(
true);
55 cci.setAllowDescriptions(
true);
58 cci.setRestricted(
getMacroName().contains(
"mychallenges"));
60 cci.setNavigatorTop(
false);
61 cci.setNavigatorBottom(
false);
70 PracticalWorkContentIterator csci =
new PracticalWorkContentIterator(
constructor,
out, Authentication.getIContact(),
false,
71 Strings.isBlank(
getToken(3)) ?
null : ElephantContext.getRootWebPath() +
getToken(3));
73 csci.setRole(
"all".equals(role) ?
null : PracticalWorkRole.valueOf(role));
75 csci.setType(
"all".equals(type) ?
null : type);
76 csci.setPage((Integer) ObjectString.parseNativeString(
getToken(4), Integer.class,
true));
77 csci.setAllowAttachments(
true);
78 csci.setAllowComments(
true);
79 csci.setSummaryTemplate(
getToken(5));
81 csci.setNavigatorTop(
false);
82 csci.setNavigatorBottom(
false);
85 csci.setRestricted(
true);
88 csci.setLastEntries(
true);
89 csci.setForceSummary(
true);
String getToken(String name)
◆ explainMacros()
void org.turro.parser.StudentsParser.explainMacros |
( |
ParserMacroSet |
macros | ) |
|
|
protected |
Reimplemented from org.turro.parser.AbstractParser.
Definition at line 99 of file StudentsParser.java.
100 macros.addMacro(
"challenges")
101 .addParameter(
"context",
false)
102 .addParameter(
"count",
true,
"10")
103 .addParameter(
"summaryTemplate",
true,
"summary")
104 .addParameter(
"fullTemplate",
true,
"full");
105 macros.addMacro(
"challenges-summary")
106 .copyParametersFrom(
"challenges", macros);
107 macros.addMacro(
"mychallenges")
108 .copyParametersFrom(
"challenges", macros);
109 macros.addMacro(
"mychallenges-summary")
110 .copyParametersFrom(
"challenges", macros);
111 macros.addMacro(
"jobboard")
112 .addParameter(
"role",
false)
113 .addPossibleValue(
"SERVICE_SUPPLY")
114 .addPossibleValue(
"SERVICE_DEMAND")
115 .addParameter(
"type",
false)
116 .addParameter(
"context",
true)
117 .addParameter(
"count",
true,
"10")
118 .addParameter(
"template",
true,
"summary");
119 macros.addMacro(
"jobboard-summary")
120 .copyParametersFrom(
"jobboard", macros);
121 macros.addMacro(
"myjobboard")
122 .copyParametersFrom(
"jobboard", macros);
123 macros.addMacro(
"myjobboard-summary")
124 .copyParametersFrom(
"jobboard", macros);
125 macros.addMacro(
"lastjobboard")
126 .copyParametersFrom(
"jobboard", macros);
127 macros.addMacro(
"lastjobboard-summary")
128 .copyParametersFrom(
"jobboard", macros);
129 macros.addMacro(
"mylastjobboard")
130 .copyParametersFrom(
"jobboard", macros);
131 macros.addMacro(
"mylastjobboard-summary")
132 .copyParametersFrom(
"jobboard", macros);
◆ getParserName()
String org.turro.parser.StudentsParser.getParserName |
( |
| ) |
|
The documentation for this class was generated from the following file: