public interface RepresentationFactory
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 |
DashboardRepresentation createDashboardRepresentation(Dashboard dashboard, GadgetRequestContext gadgetRequestContext, boolean writable)
Dashboard
, this creates a new JAXB dashboard representation.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 dashboardcom.atlassian.fugue.Option<GadgetRepresentation> createGadgetRepresentation(DashboardId dashboardId, Gadget gadget, GadgetRequestContext gadgetRequestContext, boolean writable, DashboardState.ColumnIndex column)
Gadget
, this creates a new JAXB gadget representationdashboardId
- 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.