| java.lang.Object org.apache.roller.ui.rendering.velocity.deprecated.OldPageHelper
OldPageHelper | public class OldPageHelper (Code) | | Provides assistance to VelociMacros, filling in where Velocity falls.
|
Method Summary | |
public Hashtable | addParam(String key, String value, Hashtable map) Another stupid helper method to make up for the shortcomings of Velocity. | public String | evaluateString(String str) Evaluates the String as a Velocimacro, returning the results. | public String | getCommentAuthenticatorHtml() | public String | getEntryEditUrl(WeblogEntryDataWrapper entry) | public String | getPathInfo() | public Locale[] | getSupportedLanguages() This method used to return an array of supported locales based on some
of the old i18n work done in Roller, however, as of Roller 3.0 there is
no longer a list of supported languages. | public String | getToggleLinkbackDisplayHTML(RefererDataWrapper referer) | public boolean | isUserAuthorizedToEdit() | public String | renderPlugins(WeblogEntryDataWrapper entry, String str) Pass the String through any PagePlugins that have been
assigned to the PageHelper, as selected by the Entry.
Parameters: entry - Entry being rendered. Parameters: str - String to which plugins are to be applied. | public void | setContentType(String type) | public String | showBigWeblogCalendar() Display big weblog calendar, well suited for an archive page. | public String | showEditorNavBar(boolean vertical) Call hybrid EditorNavBarTag to render editor navbar.
Parameters: vertical - True for vertical navbar. | public String | showMenu(String model, String template) Call hybrid EditorNavBarTag to render editor navbar.
Parameters: model - Name of XML file in WEB-INF that contains XML for menu. Parameters: template - Name of Velocity template in classpath to display menu. | public String | showWeblogCalendar() Display weblog calendar. | public String | showWeblogCalendar(boolean big, String cat) Weblog calendar display implementation.
Parameters: big - Show big archive style calendar. | public String | strutsUrlHelper(boolean useIds, boolean isAction, String path, String val1, String val2) Convenience method, contrived helper for Velocity. | public String | strutsUrlHelper1(boolean useIds, boolean isAction, String path, String val1, String val2, Hashtable params) Very contrived helper method for Velocimacros generating Struts links. |
evaluateString | public String evaluateString(String str)(Code) | | Evaluates the String as a Velocimacro, returning the results.
Parameters: str - String String |
getCommentAuthenticatorHtml | public String getCommentAuthenticatorHtml()(Code) | | |
getEntryEditUrl | public String getEntryEditUrl(WeblogEntryDataWrapper entry)(Code) | | Build the URL for editing an WeblogEntry *
|
getPathInfo | public String getPathInfo()(Code) | | relative URL to page, starting with /username |
getSupportedLanguages | public Locale[] getSupportedLanguages()(Code) | | This method used to return an array of supported locales based on some
of the old i18n work done in Roller, however, as of Roller 3.0 there is
no longer a list of supported languages. The languages available to a
weblog are unbounded and are purely determined by the weblog author.
This method always returns null.
|
getToggleLinkbackDisplayHTML | public String getToggleLinkbackDisplayHTML(RefererDataWrapper referer)(Code) | | |
isUserAuthorizedToEdit | public boolean isUserAuthorizedToEdit()(Code) | | |
renderPlugins | public String renderPlugins(WeblogEntryDataWrapper entry, String str)(Code) | | Pass the String through any PagePlugins that have been
assigned to the PageHelper, as selected by the Entry.
Parameters: entry - Entry being rendered. Parameters: str - String to which plugins are to be applied. Result of applying plugins to str. |
showBigWeblogCalendar | public String showBigWeblogCalendar()(Code) | | Display big weblog calendar, well suited for an archive page.
HTML for calendar. |
showEditorNavBar | public String showEditorNavBar(boolean vertical)(Code) | | Call hybrid EditorNavBarTag to render editor navbar.
Parameters: vertical - True for vertical navbar. String HTML for navbar. |
showMenu | public String showMenu(String model, String template)(Code) | | Call hybrid EditorNavBarTag to render editor navbar.
Parameters: model - Name of XML file in WEB-INF that contains XML for menu. Parameters: template - Name of Velocity template in classpath to display menu. String HTML for menu. |
showWeblogCalendar | public String showWeblogCalendar()(Code) | | Display weblog calendar.
HTML for calendar. |
showWeblogCalendar | public String showWeblogCalendar(boolean big, String cat)(Code) | | Weblog calendar display implementation.
Parameters: big - Show big archive style calendar. HTML for calendar. |
strutsUrlHelper | public String strutsUrlHelper(boolean useIds, boolean isAction, String path, String val1, String val2)(Code) | | Convenience method, contrived helper for Velocity.
Parameters: useIds - Parameters: isAction - Parameters: path - Parameters: val1 - Parameters: val2 - String |
strutsUrlHelper1 | public String strutsUrlHelper1(boolean useIds, boolean isAction, String path, String val1, String val2, Hashtable params)(Code) | | Very contrived helper method for Velocimacros generating Struts links.
This is really only of use to the showNavBar macro.
Parameters: useIds - Parameters: isAction - Parameters: path - Parameters: val1 - Parameters: val2 - String |
|
|