org.kuali.rice.krad.uif.util
Class TestViewService

java.lang.Object
  extended by org.kuali.rice.krad.uif.util.TestViewService
All Implemented Interfaces:
Lifecycle, ViewService

public class TestViewService
extends Object
implements ViewService, Lifecycle

Simple view service implementation for supporting framework level UIF unit tests.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
TestViewService()
           
 
Method Summary
 DataDictionary getDataDictionary()
           
 View getViewById(String viewId)
           
 View getViewByType(UifConstants.ViewType viewType, Map<String,String> parameters)
           
 String getViewIdForViewType(UifConstants.ViewType viewType, Map<String,String> parameters)
           
 ViewTypeService getViewTypeService(UifConstants.ViewType viewType)
           
 boolean isStarted()
           
 void setDataDictionary(DataDictionary dataDictionary)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestViewService

public TestViewService()
Method Detail

getDataDictionary

public DataDictionary getDataDictionary()
Returns:
the dataDictionary

setDataDictionary

public void setDataDictionary(DataDictionary dataDictionary)
Parameters:
dataDictionary - the dataDictionary to set

start

public void start()
Specified by:
start in interface Lifecycle
See Also:
InitializingBean.afterPropertiesSet()

stop

public void stop()
Specified by:
stop in interface Lifecycle
See Also:
Lifecycle.stop()

isStarted

public boolean isStarted()
Specified by:
isStarted in interface Lifecycle
See Also:
Lifecycle.isRunning()

getViewById

public View getViewById(String viewId)
Specified by:
getViewById in interface ViewService
See Also:
ViewService.getViewById(java.lang.String)

getViewByType

public View getViewByType(UifConstants.ViewType viewType,
                          Map<String,String> parameters)
Specified by:
getViewByType in interface ViewService
See Also:
ViewService.getViewByType(org.kuali.rice.krad.uif.UifConstants.ViewType, java.util.Map)

getViewIdForViewType

public String getViewIdForViewType(UifConstants.ViewType viewType,
                                   Map<String,String> parameters)
Specified by:
getViewIdForViewType in interface ViewService
See Also:
ViewService.getViewIdForViewType(org.kuali.rice.krad.uif.UifConstants.ViewType, java.util.Map)

getViewTypeService

public ViewTypeService getViewTypeService(UifConstants.ViewType viewType)
Specified by:
getViewTypeService in interface ViewService
See Also:
ViewService.getViewTypeService(org.kuali.rice.krad.uif.UifConstants.ViewType)


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.