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

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

public class ChangeLayoutHandlerImpl
extends Object
implements ChangeLayoutHandler

Default implementation.


Nested Class Summary
static class ChangeLayoutHandlerImpl.LayoutChangedEvent
           
 
Constructor Summary
ChangeLayoutHandlerImpl(DashboardRepository repository, com.atlassian.sal.api.message.I18nResolver i18n, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 javax.ws.rs.core.Response changeLayout(DashboardId dashboardId, GadgetRequestContext gadgetRequestContext, org.json.JSONObject newLayout)
          Attempts to change the layout of the specified dashboard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeLayoutHandlerImpl

public ChangeLayoutHandlerImpl(DashboardRepository repository,
                               com.atlassian.sal.api.message.I18nResolver i18n,
                               com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

changeLayout

public javax.ws.rs.core.Response changeLayout(DashboardId dashboardId,
                                              GadgetRequestContext gadgetRequestContext,
                                              org.json.JSONObject newLayout)
Description copied from interface: ChangeLayoutHandler
Attempts to change the layout of the specified dashboard.

Specified by:
changeLayout in interface ChangeLayoutHandler
Parameters:
dashboardId - the ID of the dashboard to change
gadgetRequestContext - the context of this request
newLayout - parameters sent along with the request
Returns:
a Response for the client with details on the success or failure


Copyright © 2013 Atlassian. All Rights Reserved.