org.kuali.rice.krad.service.impl
Class KualiModuleServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.KualiModuleServiceImpl
All Implemented Interfaces:
KualiModuleService, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

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

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

Constructor Summary
KualiModuleServiceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 String getComponentCode(Class<?> documentClass)
           
 List<String> getDataDictionaryPackages()
           
 List<ModuleService> getInstalledModuleServices()
          get the list of all installed module services
 ModuleService getModuleService(String moduleId)
          Returns the module service with the given ID or null if the module ID is not found.
 ModuleService getModuleServiceByNamespaceCode(String namespaceCode)
          Returns the module service with the given moduleCode or null if the moduleCode is not found.
 String getNamespaceCode(Class<?> documentClass)
           
 String getNamespaceName(String namespaceCode)
          This method gets namespace name for the given namespace code
 ModuleService getResponsibleModuleService(Class boClass)
          Given a class, this method will return the module service which is responsible for authorizing access to it.
 boolean isModuleServiceInstalled(String namespaceCode)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setInstalledModuleServices(List<ModuleService> installedModuleServices)
           
 void setLoadRiceInstalledModuleServices(boolean loadRiceInstalledModuleServices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KualiModuleServiceImpl

public KualiModuleServiceImpl()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Parameters:
applicationContext - the applicationContext to set

getInstalledModuleServices

public List<ModuleService> getInstalledModuleServices()
Description copied from interface: KualiModuleService
get the list of all installed module services

Specified by:
getInstalledModuleServices in interface KualiModuleService
Returns:
list of installed module services

getModuleService

public ModuleService getModuleService(String moduleId)
Description copied from interface: KualiModuleService
Returns the module service with the given ID or null if the module ID is not found.

Specified by:
getModuleService in interface KualiModuleService
Returns:
module service

getModuleServiceByNamespaceCode

public ModuleService getModuleServiceByNamespaceCode(String namespaceCode)
Description copied from interface: KualiModuleService
Returns the module service with the given moduleCode or null if the moduleCode is not found.

Specified by:
getModuleServiceByNamespaceCode in interface KualiModuleService
Returns:
module service

isModuleServiceInstalled

public boolean isModuleServiceInstalled(String namespaceCode)
Specified by:
isModuleServiceInstalled in interface KualiModuleService

getResponsibleModuleService

public ModuleService getResponsibleModuleService(Class boClass)
Description copied from interface: KualiModuleService
Given a class, this method will return the module service which is responsible for authorizing access to it. It returns null if no module is found.

Specified by:
getResponsibleModuleService in interface KualiModuleService
Returns:
ModuleService representing the service responsible for the passed in Class

setInstalledModuleServices

public void setInstalledModuleServices(List<ModuleService> installedModuleServices)
Specified by:
setInstalledModuleServices in interface KualiModuleService

getDataDictionaryPackages

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

getNamespaceName

public String getNamespaceName(String namespaceCode)
Description copied from interface: KualiModuleService
This method gets namespace name for the given namespace code

Specified by:
getNamespaceName in interface KualiModuleService
Parameters:
namespaceCode - namespace code
Returns:
namespace name

setLoadRiceInstalledModuleServices

public void setLoadRiceInstalledModuleServices(boolean loadRiceInstalledModuleServices)
Parameters:
loadRiceInstalledModuleServices - the loadRiceInstalledModuleServices to set

afterPropertiesSet

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

getNamespaceCode

public String getNamespaceCode(Class<?> documentClass)
Specified by:
getNamespaceCode in interface KualiModuleService

getComponentCode

public String getComponentCode(Class<?> documentClass)
Specified by:
getComponentCode in interface KualiModuleService


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