|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AddGadgetHandler
Interface for adding a gadget spec URI to a dashboard.
Method Summary | |
---|---|
javax.ws.rs.core.Response |
addGadget(DashboardId dashboardId,
GadgetRequestContext gadgetRequestContext,
String gadgetUrl)
Adds the specified gadget to the specified dashboard. |
javax.ws.rs.core.Response |
addGadget(DashboardId dashboardId,
GadgetRequestContext gadgetRequestContext,
String gadgetUrl,
DashboardState.ColumnIndex columnIndex)
Adds the specified gadget to the specified dashboard in the specified column. |
javax.ws.rs.core.Response |
moveGadget(DashboardId targetDashboardId,
GadgetId gadgetId,
DashboardId sourceDashboardId,
DashboardState.ColumnIndex columnIndex,
int rowIndexAsInt,
GadgetRequestContext gadgetRequestContext)
Moves the gadget specified by id from the source dashboard to the target dashboard. |
Method Detail |
---|
javax.ws.rs.core.Response addGadget(DashboardId dashboardId, GadgetRequestContext gadgetRequestContext, String gadgetUrl)
dashboardId
- the ID of the dashboard to add togadgetRequestContext
- the context of this requestgadgetUrl
- the URL to the gadget spec
Response
for the client with details on the success
or failurejavax.ws.rs.core.Response addGadget(DashboardId dashboardId, GadgetRequestContext gadgetRequestContext, String gadgetUrl, DashboardState.ColumnIndex columnIndex)
dashboardId
- the ID of the dashboard to add togadgetRequestContext
- the context of this requestgadgetUrl
- the URL to the gadget speccolumnIndex
- the column index to add the gadget to
Response
for the client with details on the success
or failurejavax.ws.rs.core.Response moveGadget(DashboardId targetDashboardId, GadgetId gadgetId, DashboardId sourceDashboardId, DashboardState.ColumnIndex columnIndex, int rowIndexAsInt, GadgetRequestContext gadgetRequestContext)
targetDashboardId
- The dashboard to move the gadget togadgetId
- The gadget to movesourceDashboardId
- The source dashboard where the gadget will be deletedcolumnIndex
- The column to add the gadget torowIndexAsInt
- The row to insert the gadget ingadgetRequestContext
- the context of this request
Response
for the client with details on the success or failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |