com.atlassian.gadgets.dashboard.internal.rest
Class UpdateGadgetUserPrefsHandlerImpl
java.lang.Object
com.atlassian.gadgets.dashboard.internal.rest.UpdateGadgetUserPrefsHandlerImpl
- All Implemented Interfaces:
- UpdateGadgetUserPrefsHandler
public class UpdateGadgetUserPrefsHandlerImpl
- extends Object
- implements UpdateGadgetUserPrefsHandler
Default implementation that updates the prefs in a live gadget.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateGadgetUserPrefsHandlerImpl
public UpdateGadgetUserPrefsHandlerImpl(DashboardRepository repository,
com.atlassian.sal.api.message.I18nResolver i18n)
- Constructor.
- Parameters:
repository - the DashboardRepository for getting/saving
dashboardsi18n - the I18nResolver to use for looking up i18n messages
updateUserPrefs
public javax.ws.rs.core.Response updateUserPrefs(DashboardId dashboardId,
GadgetRequestContext gadgetRequestContext,
GadgetId gadgetId,
Map<String,String> prefs)
- Description copied from interface:
UpdateGadgetUserPrefsHandler
- Changes the user prefs on the specified gadget and dashboard to the values
supplied by the query.
- Specified by:
updateUserPrefs in interface UpdateGadgetUserPrefsHandler
- Parameters:
dashboardId - the ID of the dashboard hosting the gadgetgadgetRequestContext - the context of this requestgadgetId - the gadget to change the prefs forprefs - the user prefs with their updated values
- Returns:
- a
Response for the client with details on the success or
failure
Copyright © 2011 Atlassian. All Rights Reserved.