@Component public class RepresentationFactoryImpl extends Object implements RepresentationFactory
Constructor and Description |
---|
RepresentationFactoryImpl(RenderedGadgetUriBuilder renderedGadgetUriBuilder,
DashboardUrlBuilder dashboardUrlBuilder) |
Modifier and Type | Method and Description |
---|---|
DashboardRepresentation |
createDashboardRepresentation(Dashboard dashboard,
GadgetRequestContext gadgetRequestContext,
boolean writable)
Given a
Dashboard , this creates a new JAXB dashboard representation. |
com.atlassian.fugue.Option<GadgetRepresentation> |
createGadgetRepresentation(DashboardId dashboardId,
Gadget gadget,
GadgetRequestContext gadgetRequestContext,
boolean writable,
DashboardState.ColumnIndex column)
Given a
Gadget , this creates a new JAXB gadget representation |
public RepresentationFactoryImpl(RenderedGadgetUriBuilder renderedGadgetUriBuilder, DashboardUrlBuilder dashboardUrlBuilder)
public DashboardRepresentation createDashboardRepresentation(Dashboard dashboard, GadgetRequestContext gadgetRequestContext, boolean writable)
RepresentationFactory
Dashboard
, this creates a new JAXB dashboard representation.createDashboardRepresentation
in interface RepresentationFactory
dashboard
- The dashboard state for the JAXB representationgadgetRequestContext
- request contextwritable
- If the user has permission to udpate this dashboardDashboardRepresentation
containing all the dashboard information, as well as all
GadgetRepresentation
s for this dashboardpublic com.atlassian.fugue.Option<GadgetRepresentation> createGadgetRepresentation(DashboardId dashboardId, Gadget gadget, GadgetRequestContext gadgetRequestContext, boolean writable, DashboardState.ColumnIndex column)
RepresentationFactory
Gadget
, this creates a new JAXB gadget representationcreateGadgetRepresentation
in interface RepresentationFactory
dashboardId
- The dashboard this gadget is ongadget
- The gadet state for the JAXB representationgadgetRequestContext
- request contextwritable
- If the user has permission to update this dashboardcolumn
- The column in which this gadget resides on the dashbaord.GadgetRepresentation
containing all information required to render the gadgetCopyright © 2018 Atlassian. All rights reserved.