com.atlassian.gadgets.dashboard.internal
Interface StateConverter

All Known Implementing Classes:
StateConverterImpl

public interface StateConverter

Converts stored states into usable objects


Method Summary
 Dashboard convertStateToDashboard(com.atlassian.gadgets.dashboard.DashboardState state, com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
          Creates a Dashboard from a DashboardState
 Gadget convertStateToGadget(com.atlassian.gadgets.GadgetState state, com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
          Creates a Gadget from a GadgetState
 

Method Detail

convertStateToDashboard

Dashboard convertStateToDashboard(com.atlassian.gadgets.dashboard.DashboardState state,
                                  com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
Creates a Dashboard from a DashboardState

Parameters:
state - the state to convert
gadgetRequestContext - the context of this request
Returns:
the created Dashboard

convertStateToGadget

Gadget convertStateToGadget(com.atlassian.gadgets.GadgetState state,
                            com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
Creates a Gadget from a GadgetState

Parameters:
state - the state to convert
gadgetRequestContext - the context of this request
Returns:
the created Gadget


Copyright © 2012 Atlassian. All Rights Reserved.