Interface ProjectDescriptionRenderer
- All Known Implementing Classes:
FullHtmlProjectDescriptionRenderer,ProjectDescriptionRendererImpl,WikiMarkupProjectDescriptionRenderer
public interface ProjectDescriptionRenderer
Renderes the project's description depending on the current security settings.
- Since:
- 5.0.5
-
Method Summary
Modifier and TypeMethodDescriptionReturns the i18n key containing the description of the edit field.getEditHtml(Project project) Returns the rendered html to edit the project description.getEditHtml(String description) Returns the rendered html to edit the project description.getViewHtml(Project project) Returns the rendered html to view the project description.getViewHtml(String description) Returns the rendered html to view the project description.booleanIndicates whether the renderer uses wiki markup or not.
-
Method Details
-
getViewHtml
Returns the rendered html to view the project description.- Parameters:
project- the project for which the description should be returned; notnull- Returns:
- the project description, escaping may be already applied (depending on the security settings).
-
getEditHtml
Returns the rendered html to edit the project description.- Parameters:
project- the project which is going to be edited; notnull- Returns:
- the rendered html to edit the project description
-
getViewHtml
Returns the rendered html to view the project description.- Parameters:
description- the raw project description- Returns:
- the project description, escaping may be already applied (depending on the security settings).
-
getEditHtml
Returns the rendered html to edit the project description.- Parameters:
description- the raw project description- Returns:
- the rendered html to edit the project description
-
getDescriptionI18nKey
Returns the i18n key containing the description of the edit field.- Returns:
- the i18n key containing the description of the edit field
-
isUseWikiMarkup
boolean isUseWikiMarkup()Indicates whether the renderer uses wiki markup or not.- Returns:
- true if the renderer uses wiki markup, false if otherwise
-