com.atlassian.gadgets.dashboard.internal.impl
Class StateConverterImpl

java.lang.Object
  extended by com.atlassian.gadgets.dashboard.internal.impl.StateConverterImpl
All Implemented Interfaces:
StateConverter

public class StateConverterImpl
extends Object
implements StateConverter


Constructor Summary
StateConverterImpl(GadgetFactory gadgetFactory)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateConverterImpl

public StateConverterImpl(GadgetFactory gadgetFactory)
Method Detail

convertStateToDashboard

public Dashboard convertStateToDashboard(DashboardState state,
                                         GadgetRequestContext gadgetRequestContext)
Description copied from interface: StateConverter
Creates a Dashboard from a DashboardState

Specified by:
convertStateToDashboard in interface StateConverter
Parameters:
state - the state to convert
gadgetRequestContext - the context of this request
Returns:
the created Dashboard

convertStateToGadget

public Gadget convertStateToGadget(GadgetState state,
                                   GadgetRequestContext gadgetRequestContext)
Description copied from interface: StateConverter
Creates a Gadget from a GadgetState

Specified by:
convertStateToGadget in interface StateConverter
Parameters:
state - the state to convert
gadgetRequestContext - the context of this request
Returns:
the created Gadget


Copyright © 2011 Atlassian. All Rights Reserved.