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.
Method Summary |
javax.ws.rs.core.Response |
deleteGadget(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext,
com.atlassian.gadgets.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 |
DeleteGadgetHandlerImpl
public DeleteGadgetHandlerImpl(DashboardRepository repository,
com.atlassian.sal.api.message.I18nResolver i18n,
com.atlassian.event.api.EventPublisher eventPublisher)
- Constructor.
- Parameters:
repository
- the DashboardRepository
for getting/saving
dashboardsi18n
- the I18nResolver
implementation to useeventPublisher
-
deleteGadget
public javax.ws.rs.core.Response deleteGadget(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext,
com.atlassian.gadgets.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 © 2013 Atlassian. All Rights Reserved.