Interface WorkItemPropertyDisplayerManager


@Role public interface WorkItemPropertyDisplayerManager
Offers a centralized way of accessing a subset/all the existing WorkItemPropertyDisplayer.
Version:
$Id$
  • Method Details

    • displayProperty

      List<org.xwiki.rendering.block.Block> displayProperty(String propertyName, Object propertyValue, Map<String,Object> parameters)
      Finds the WorkItemPropertyDisplayer associated with the given property and passes the parameters to it.
      Parameters:
      propertyName - the name of the property that needs displaying.
      propertyValue - the value of the said property.
      parameters - any additional parameters that might be needed by the WorkItemPropertyDisplayer implementation.
      Returns:
      a list of blocks that represent how the property should be displayed.
    • getDisplayerForProperty

      WorkItemPropertyDisplayer getDisplayerForProperty(String property)
      Provides a way to check if the manager has any displayer registered for a given property.
      Parameters:
      property - the name of the property that might or might not have a displayer associated.
      Returns:
      the WorkItemPropertyDisplayer associated with the property or null.