|
||||||||||
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(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext,
String gadgetUrl)
Adds the specified gadget to the specified dashboard. |
javax.ws.rs.core.Response |
addGadget(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext,
String gadgetUrl,
com.atlassian.gadgets.dashboard.DashboardState.ColumnIndex columnIndex)
Adds the specified gadget to the specified dashboard in the specified column. |
javax.ws.rs.core.Response |
moveGadget(com.atlassian.gadgets.dashboard.DashboardId targetDashboardId,
com.atlassian.gadgets.GadgetId gadgetId,
com.atlassian.gadgets.dashboard.DashboardId sourceDashboardId,
com.atlassian.gadgets.dashboard.DashboardState.ColumnIndex columnIndex,
int rowIndexAsInt,
com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
Moves the gadget specified by id from the source dashboard to the target dashboard. |
Method Detail |
---|
javax.ws.rs.core.Response addGadget(com.atlassian.gadgets.dashboard.DashboardId dashboardId, com.atlassian.gadgets.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(com.atlassian.gadgets.dashboard.DashboardId dashboardId, com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext, String gadgetUrl, com.atlassian.gadgets.dashboard.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(com.atlassian.gadgets.dashboard.DashboardId targetDashboardId, com.atlassian.gadgets.GadgetId gadgetId, com.atlassian.gadgets.dashboard.DashboardId sourceDashboardId, com.atlassian.gadgets.dashboard.DashboardState.ColumnIndex columnIndex, int rowIndexAsInt, com.atlassian.gadgets.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 |