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(DashboardState state, GadgetRequestContext gadgetRequestContext)
          Creates a Dashboard from a DashboardState
 Gadget convertStateToGadget(GadgetState state, GadgetRequestContext gadgetRequestContext)
          Creates a Gadget from a GadgetState
 

Method Detail

convertStateToDashboard

Dashboard convertStateToDashboard(DashboardState state,
                                  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(GadgetState state,
                            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 © 2011 Atlassian. All Rights Reserved.