◆ doExecute()
boolean org.turro.parser.ElephantParser.doExecute |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.parser.AbstractParser.
Definition at line 48 of file ElephantParser.java.
52 PollIterator pi =
new PollIterator(
constructor, ElephantContext.getRootWebPath() +
"/user/mypolls");
53 pi.setNavigatorTop(grouped);
54 pi.setNavigatorBottom(grouped);
55 pi.setPublicOnly(
"true".equals(
getToken(2)));
56 pi.setRestricted(
true);
57 pi.setPage((Integer) ObjectString.parseNativeString(
getToken(1), Integer.class,
true));
62 TimeTrackerCtrl ttc =
new TimeTrackerCtrl();
64 out.write(ttc.createRightNowURL(
"redir=/user/timetracker;type=entity;entityPath=" +
getToken(1)));
70 AnonymousCtrl anonymous =
new AnonymousCtrl();
74 IContact contact = Authentication.getIContact();
75 LastActivityIterator dci =
new LastActivityIterator(
constructor,
out, contact,
76 LastActivities.getLastActivity(contact),
77 false, Strings.isBlank(
getToken(1)) ?
null : ElephantContext.getRootWebPath() +
getToken(2));
78 dci.setPage((Integer) ObjectString.parseNativeString(
getToken(2), Integer.class,
true));
80 dci.setNavigatorTop(
false);
81 dci.setNavigatorBottom(
false);
String getToken(String name)
◆ explainMacros()
void org.turro.parser.ElephantParser.explainMacros |
( |
ParserMacroSet |
macros | ) |
|
|
protected |
Reimplemented from org.turro.parser.AbstractParser.
Definition at line 97 of file ElephantParser.java.
98 macros.addMacro(
"polls")
99 .addParameter(
"count",
true,
"10")
100 .addParameter(
"public",
true,
"true");
101 macros.addMacro(
"poll-list")
102 .copyParametersFrom(
"polls", macros);
103 macros.addMacro(
"time-tracker")
104 .addParameter(
"entityPath",
true);
105 macros.addMacro(
"anonymous");
106 macros.addMacro(
"last-activity")
107 .addParameter(
"context",
true)
108 .addParameter(
"count",
true,
"10")
109 .addParameter(
"template",
true,
"summary");
110 macros.addMacro(
"last-activity-summary")
111 .copyParametersFrom(
"last-activity", macros);
◆ getParserName()
String org.turro.parser.ElephantParser.getParserName |
( |
| ) |
|
The documentation for this class was generated from the following file: