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

java.lang.Object
  extended by com.atlassian.gadgets.dashboard.internal.rest.ChangeGadgetColorHandlerImpl
All Implemented Interfaces:
ChangeGadgetColorHandler

public class ChangeGadgetColorHandlerImpl
extends Object
implements ChangeGadgetColorHandler

Default implementation that changes the color of a live gadget on a dashboard.


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

Constructor Detail

ChangeGadgetColorHandlerImpl

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

Parameters:
repository - the repository to retrieve dashboards
i18n - the lookup to resolve i18n messages
Method Detail

setGadgetColor

public javax.ws.rs.core.Response setGadgetColor(DashboardId dashboardId,
                                                GadgetRequestContext gadgetRequestContext,
                                                GadgetId gadgetId,
                                                Color color)
Description copied from interface: ChangeGadgetColorHandler
Sets the color of the specified gadget to the specified color.

Specified by:
setGadgetColor in interface ChangeGadgetColorHandler
Parameters:
dashboardId - the dashboard hosting the gadget
gadgetRequestContext - the context of this request
gadgetId - the ID of the gadget to change
color - the new color of the gadget
Returns:
a Response for the client with details on the success or failure


Copyright © 2014 Atlassian. All Rights Reserved.