Class ProjectManagementChartMacroParameters
java.lang.Object
com.xwiki.projectmanagement.macro.ProjectManagementChartMacroParameters
Bean that represents the parameters used by the
AbstractProjectManagementChartMacro implementers.- Since:
- 1.2.0-rc-1
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLimit()getType()voidvoidsetDatasetsLabels(String datasetsLabels) voidsetFilters(String filters) voidvoidvoidsetProperty(String property) voidvoidsetTypeParams(String typeParams)
-
Constructor Details
-
ProjectManagementChartMacroParameters
public ProjectManagementChartMacroParameters()
-
-
Method Details
-
getClient
- Returns:
- the client id. The client being the project management implementor. i.e. openproject.
-
setClient
- Parameters:
client- seegetClient().
-
getType
- Returns:
- the type of the chart. This value is associated to a chart type implementation that handles the displaying for the given filter.
-
setType
- Parameters:
type- seegetType().
-
getProperty
- Returns:
- the work item property that will be used in displaying the chart.
-
setProperty
- Parameters:
property- seegetProperty().
-
getFilters
- Returns:
- a JSON representing the filters applied on the work items dataset. The JSON is the serialized version of
the
LiveDataConfiguration.
-
setFilters
- Parameters:
filters- seegetFilters().
-
getLimit
- Returns:
- the limit applied of the work items resulting list.
-
setLimit
- Parameters:
limit- seegetLimit().
-
getOffset
- Returns:
- the offset of the work items resulting list.
-
setOffset
- Parameters:
offset- seegetOffset().
-
getTypeParams
- Returns:
- a JSON representation of the chart type implementor configuration object. A
ChartTypeDisplayerwill return the configuration type by callingChartTypeDisplayer.getParameterTypeTemplate()()}.
-
setTypeParams
- Parameters:
typeParams- seegetTypeParams().
-
getDatasetsLabels
- Returns:
- a JSON array of labels used to describe each dataset displayed.
-
setDatasetsLabels
- Parameters:
datasetsLabels- seegetDatasetsLabels().
-