|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface RendererManager
This is the main interface to the renderer components.
Method Summary | |
---|---|
List<JiraRendererPlugin> |
getAllActiveRenderers()
Gets all the renderers in the system that have a RenderConfiguration in which the renderer is set as active. |
String |
getRenderedContent(FieldLayoutItem fieldConfig,
Issue issue)
A convienience method that is the equivilant of calling the getRendererForField method and then invoking the render method on the returned renderer, using the value of the field that is associated with the issue. |
String |
getRenderedContent(FieldRenderContext fieldRenderContext)
|
String |
getRenderedContent(String rendererType,
String value,
IssueRenderContext renderContext)
A convienience method that is the equivilant of calling the getRendererForField method and then invoking the render method on the returned renderer, using the value of the field that is associated with the issue. |
JiraRendererPlugin |
getRendererForField(FieldLayoutItem fieldConfig)
This will returned the correct renderer for a provided field and a provided issue. |
JiraRendererPlugin |
getRendererForType(String rendererType)
Will return a field renderer for the given renderer type. |
Method Detail |
---|
List<JiraRendererPlugin> getAllActiveRenderers()
JiraRendererPlugin getRendererForType(String rendererType)
Note: if there happens to be two renderers in the system with the same name (for example due to conflicting plugins) then this method will return the first plugin encountered. Plugin developers beware!
rendererType
- a string identifier that uniquely identifies a renderer in the system.
JiraRendererPlugin getRendererForField(FieldLayoutItem fieldConfig)
fieldConfig
- is the configuration object for the given field.
String getRenderedContent(FieldLayoutItem fieldConfig, Issue issue)
fieldConfig
- identifies the configuration of the System or Custom field that is the object of the
renderering.issue
- identifies the unique instance container of the field that will be rendered.
String getRenderedContent(String rendererType, String value, IssueRenderContext renderContext)
rendererType
- is the renderer to use, if not resolved will fall back to the system default.value
- is the value to render.renderContext
- is the context to use for rendering.
String getRenderedContent(FieldRenderContext fieldRenderContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |