com.atlassian.gadgets.dashboard.internal.rest
Class ChangeGadgetColorHandlerImpl
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChangeGadgetColorHandlerImpl
public ChangeGadgetColorHandlerImpl(DashboardRepository repository,
com.atlassian.sal.api.message.I18nResolver i18n)
- Constructor.
- Parameters:
repository
- the repository to retrieve dashboardsi18n
- the lookup to resolve i18n messages
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 gadgetgadgetRequestContext
- the context of this requestgadgetId
- the ID of the gadget to changecolor
- the new color of the gadget
- Returns:
- a
Response
for the client with details on the success
or failure
Copyright © 2010 Atlassian. All Rights Reserved.