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(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
 
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(com.atlassian.gadgets.dashboard.DashboardState state,
                                         com.atlassian.gadgets.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(com.atlassian.gadgets.GadgetState state,
                                   com.atlassian.gadgets.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 © 2013 Atlassian. All Rights Reserved.