◆ doExecute()
boolean org.turro.parser.PublicationParser.doExecute |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.parser.AbstractParser.
Definition at line 42 of file PublicationParser.java.
45 PublicationIterator pi =
new PublicationIterator(
constructor,
46 Strings.isBlank(
tokens[1]) ?
null : ElephantContext.getRootWebPath() +
tokens[1],
47 IdGenerator.generate());
48 pi.setGroupId((Integer) ObjectString.parseNativeString(
getToken(2), Integer.class,
true));
49 pi.setCategoryId((Integer) ObjectString.parseNativeString(
getToken(3), Integer.class,
true));
50 pi.setPage((Integer) ObjectString.parseNativeString(
getToken(4), Integer.class,
true));
53 pi.setLang(Strings.isBlank(lang,
"_" + I_.api().used().getLanguage()));
55 pi.setNavigatorTop(
false);
56 pi.setNavigatorBottom(
false);
57 pi.setSearchOption(
false);
63 PublicationIterator pi =
new PublicationIterator(
constructor,
65 IdGenerator.generate());
67 pi.forceItem(Long.parseLong(
getToken(1)));
String getToken(String name)
◆ explainMacros()
void org.turro.parser.PublicationParser.explainMacros |
( |
ParserMacroSet |
macros | ) |
|
|
protected |
Reimplemented from org.turro.parser.AbstractParser.
Definition at line 75 of file PublicationParser.java.
76 macros.addMacro(
"publication")
77 .addParameter(
"context",
false)
78 .addParameter(
"groupId",
true,
"0")
79 .addParameter(
"categoryId",
true,
"0")
80 .addParameter(
"count",
true,
"10")
81 .addParameter(
"template",
true,
"summary")
82 .addPossibleValue(
"entry")
83 .addPossibleValue(
"entryTitle")
84 .addPossibleValue(
"entryTitleImage")
85 .addPossibleValue(
"event")
86 .addPossibleValue(
"eventTitle")
87 .addPossibleValue(
"eventTitleImage")
88 .addPossibleValue(
"grid")
89 .addParameter(
"lang",
true,
null);
90 macros.addMacro(
"publication-summary")
91 .copyParametersFrom(
"publication", macros);
92 macros.addMacro(
"single-publication")
93 .addParameter(
"id",
false)
94 .addParameter(
"template",
true,
"full");
◆ getParserName()
String org.turro.parser.PublicationParser.getParserName |
( |
| ) |
|
The documentation for this class was generated from the following file: