Interface ProjectManagementLiveDataDisplayer
@Role
public interface ProjectManagementLiveDataDisplayer
Iterates over a work item collection and prepares them for display.
- Since:
- 1.0
- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisplay(Collection<WorkItem> workItems) Prepares the work items for displaying.voiddisplayProperty(Map.Entry<String, Object> itemProperty, WorkItem workItem, org.xwiki.rendering.renderer.PrintRenderer renderer, WorkItemPropertyDisplayerManager displayerManager) Handles a single work item property.
-
Method Details
-
display
Prepares the work items for displaying. It can either add new properties to each work item or change the values of the properties completely (i.e. iterate the assignees and generate a html structure ready for display).- Parameters:
workItems- a collection of work items.
-
displayProperty
void displayProperty(Map.Entry<String, Object> itemProperty, WorkItem workItem, org.xwiki.rendering.renderer.PrintRenderer renderer, WorkItemPropertyDisplayerManager displayerManager) Handles a single work item property.- Parameters:
itemProperty- a map entry representing a work item property. It can be updated into a value that is accepted by the livedata displayer.workItem- the workitem where the item property comes from.renderer- the renderer that will be used to transform any blocks generated by the eventualWorkItemPropertyDisplayerManagerinto html.displayerManager- displayer manager that will be used to generate the work item properties style.
-