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

java.lang.Object
  extended by org.kuali.rice.krad.uif.util.MockKualiModuleService
All Implemented Interfaces:
KualiModuleService, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class MockKualiModuleService
extends Object
implements KualiModuleService, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean

Mock module service for supporting UIF calls.

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

Constructor Summary
MockKualiModuleService()
           
 
Method Summary
 void afterPropertiesSet()
           
 String getComponentCode(Class<?> documentOrStepClass)
           
 List<String> getDataDictionaryPackages()
           
 List<ModuleService> getInstalledModuleServices()
           
 ModuleService getModuleService(String moduleId)
           
 ModuleService getModuleServiceByNamespaceCode(String namespaceCode)
           
 String getNamespaceCode(Class<?> documentOrStepClass)
           
 String getNamespaceName(String namespaceCode)
           
 ModuleService getResponsibleModuleService(Class boClass)
           
 boolean isModuleServiceInstalled(String namespaceCode)
           
static
<T extends ExternalizableBusinessObject>
void
registerModuleService(String moduleId, String namespaceCode, Class<T> boClass, boolean lookupable, boolean inquirable, List<T> instances)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setInstalledModuleServices(List<ModuleService> moduleServices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockKualiModuleService

public MockKualiModuleService()
Method Detail

registerModuleService

public static <T extends ExternalizableBusinessObject> void registerModuleService(String moduleId,
                                                                                  String namespaceCode,
                                                                                  Class<T> boClass,
                                                                                  boolean lookupable,
                                                                                  boolean inquirable,
                                                                                  List<T> instances)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception
See Also:
InitializingBean.afterPropertiesSet()

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException
See Also:
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)

getInstalledModuleServices

public List<ModuleService> getInstalledModuleServices()
Specified by:
getInstalledModuleServices in interface KualiModuleService
See Also:
KualiModuleService.getInstalledModuleServices()

getModuleService

public ModuleService getModuleService(String moduleId)
Specified by:
getModuleService in interface KualiModuleService
See Also:
KualiModuleService.getModuleService(java.lang.String)

getModuleServiceByNamespaceCode

public ModuleService getModuleServiceByNamespaceCode(String namespaceCode)
Specified by:
getModuleServiceByNamespaceCode in interface KualiModuleService
See Also:
KualiModuleService.getModuleServiceByNamespaceCode(java.lang.String)

isModuleServiceInstalled

public boolean isModuleServiceInstalled(String namespaceCode)
Specified by:
isModuleServiceInstalled in interface KualiModuleService
See Also:
KualiModuleService.isModuleServiceInstalled(java.lang.String)

getResponsibleModuleService

public ModuleService getResponsibleModuleService(Class boClass)
Specified by:
getResponsibleModuleService in interface KualiModuleService
See Also:
KualiModuleService.getResponsibleModuleService(java.lang.Class)

setInstalledModuleServices

public void setInstalledModuleServices(List<ModuleService> moduleServices)
Specified by:
setInstalledModuleServices in interface KualiModuleService
See Also:
KualiModuleService.setInstalledModuleServices(java.util.List)

getDataDictionaryPackages

public List<String> getDataDictionaryPackages()
Specified by:
getDataDictionaryPackages in interface KualiModuleService
See Also:
KualiModuleService.getDataDictionaryPackages()

getNamespaceName

public String getNamespaceName(String namespaceCode)
Specified by:
getNamespaceName in interface KualiModuleService
See Also:
KualiModuleService.getNamespaceName(java.lang.String)

getNamespaceCode

public String getNamespaceCode(Class<?> documentOrStepClass)
Specified by:
getNamespaceCode in interface KualiModuleService
See Also:
KualiModuleService.getNamespaceCode(java.lang.Class)

getComponentCode

public String getComponentCode(Class<?> documentOrStepClass)
Specified by:
getComponentCode in interface KualiModuleService
See Also:
KualiModuleService.getComponentCode(java.lang.Class)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.