com.atlassian.gadgets.dashboard.internal.rest
Class DeleteGadgetHandlerImpl
java.lang.Object
com.atlassian.gadgets.dashboard.internal.rest.DeleteGadgetHandlerImpl
- All Implemented Interfaces:
- DeleteGadgetHandler
public class DeleteGadgetHandlerImpl
- extends Object
- implements DeleteGadgetHandler
Default implementation that removes a gadget from a live dashboard.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteGadgetHandlerImpl
public DeleteGadgetHandlerImpl(DashboardRepository repository,
com.atlassian.sal.api.message.I18nResolver i18n)
- Constructor.
- Parameters:
repository - the DashboardRepository for getting/saving
dashboardsi18n - the I18nResolver implementation to use
deleteGadget
public javax.ws.rs.core.Response deleteGadget(DashboardId dashboardId,
GadgetRequestContext gadgetRequestContext,
GadgetId gadgetId)
- Description copied from interface:
DeleteGadgetHandler
- Removes the specified gadget from the specified dashboard.
- Specified by:
deleteGadget in interface DeleteGadgetHandler
- Parameters:
dashboardId - the dashboard hosting the gadgetgadgetRequestContext - the context of this requestgadgetId - the gadget to remove
- Returns:
- a
Response for the client with details on success or
failure
Copyright © 2009 Atlassian. All Rights Reserved.