|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepresentationFactory
Factory to construct new REST representations given the required domain objects.
Method Summary | |
---|---|
DashboardRepresentation |
createDashboardRepresentation(Dashboard dashboard,
GadgetRequestContext gadgetRequestContext,
boolean writable)
Given a Dashboard , this creates a new JAXB dashboard representation. |
GadgetRepresentation |
createGadgetRepresentation(DashboardId dashboardId,
Gadget gadget,
GadgetRequestContext gadgetRequestContext,
boolean writable,
DashboardState.ColumnIndex column)
Given a Gadget , this creates a new JAXB gadget representation |
Method Detail |
---|
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 dashboard
DashboardRepresentation
containing all the dashboard information, as well as all
GadgetRepresentation
s for this dashboardGadgetRepresentation createGadgetRepresentation(DashboardId dashboardId, Gadget gadget, GadgetRequestContext gadgetRequestContext, boolean writable, DashboardState.ColumnIndex column)
Gadget
, this creates a new JAXB gadget representation
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 gadget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |