com.atlassian.gadgets.dashboard.internal.rest
Class DeleteGadgetHandlerImpl

java.lang.Object
  extended by 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.


Constructor Summary
DeleteGadgetHandlerImpl(DashboardRepository repository, com.atlassian.sal.api.message.I18nResolver i18n)
          Constructor.
 
Method Summary
 javax.ws.rs.core.Response deleteGadget(DashboardId dashboardId, GadgetRequestContext gadgetRequestContext, GadgetId gadgetId)
          Removes the specified gadget from the specified dashboard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteGadgetHandlerImpl

public DeleteGadgetHandlerImpl(DashboardRepository repository,
                               com.atlassian.sal.api.message.I18nResolver i18n)
Constructor.

Parameters:
repository - the DashboardRepository for getting/saving dashboards
i18n - the I18nResolver implementation to use
Method Detail

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 gadget
gadgetRequestContext - the context of this request
gadgetId - the gadget to remove
Returns:
a Response for the client with details on success or failure


Copyright © 2010 Atlassian. All Rights Reserved.