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

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.RiceApplicationConfigurationMediationServiceImpl
All Implemented Interfaces:
RiceApplicationConfigurationMediationService

public class RiceApplicationConfigurationMediationServiceImpl
extends Object
implements RiceApplicationConfigurationMediationService


Field Summary
protected  ConcurrentMap<String,String> configurationParameterCache
           
protected  int configurationParameterCacheMaxAgeSeconds
           
protected  int configurationParameterCacheMaxSize
           
private static org.apache.log4j.Logger LOG
           
protected  ConcurrentMap<String,List<Component>> nonDatabaseComponentsCache
           
protected  int nonDatabaseComponentsCacheMaxAgeSeconds
           
protected  int nonDatabaseComponentsCacheMaxSize
           
protected  ConcurrentMap<String,RiceApplicationConfigurationService> responsibleServiceByPackageClass
           
 
Constructor Summary
RiceApplicationConfigurationMediationServiceImpl()
           
 
Method Summary
protected  Set<QName> findApplicationConfigurationServices()
           
protected  RiceApplicationConfigurationService findRiceApplicationConfigurationService(QName serviceName)
           
protected  RiceApplicationConfigurationService findRiceApplicationConfigurationService(String namespace)
           
protected  RiceApplicationConfigurationService findServiceResponsibleForPackageOrClass(String packageOrClassName)
          Call each available service to see if it's responsible for the given package.
 String getBaseHelpUrl(String businessObjectClassName)
           
 String getBaseInquiryUrl(String businessObjectClassName)
           
 String getBaseLookupUrl(String businessObjectClassName)
           
 AttributeDefinition getBusinessObjectAttributeDefinition(String businessObjectClassName, String attributeName)
          This method will return the attribute definition from the local data dictionary of the application which supports that business object.
protected  List<Component> getComponentListFromNonDatabaseComponentsCache(String nonDatabaseServiceNameKey)
           
 String getConfigurationParameter(String namespaceCode, String parameterName)
          Returns the configuration parameter value for the given applicationId and parameterName.
 List<Component> getNonDatabaseComponents()
          Returns the non-database components that have been published by all Rice client applications.
protected  String getParameterValueFromConfigurationParameterCache(String parameterKey)
           
 void setConfigurationParameterCacheMaxAgeSeconds(int configurationParameterCacheMaxAgeSeconds)
           
 void setConfigurationParameterCacheMaxSize(int configurationParameterCacheMaxSize)
           
 void setNonDatabaseComponentsCacheMaxAgeSeconds(int nonDatabaseComponentsCacheMaxAgeSeconds)
           
 void setNonDatabaseComponentsCacheMaxSize(int nonDatabaseComponentsCacheMaxSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

configurationParameterCacheMaxSize

protected int configurationParameterCacheMaxSize

configurationParameterCacheMaxAgeSeconds

protected int configurationParameterCacheMaxAgeSeconds

nonDatabaseComponentsCacheMaxSize

protected int nonDatabaseComponentsCacheMaxSize

nonDatabaseComponentsCacheMaxAgeSeconds

protected int nonDatabaseComponentsCacheMaxAgeSeconds

configurationParameterCache

protected final ConcurrentMap<String,String> configurationParameterCache

nonDatabaseComponentsCache

protected final ConcurrentMap<String,List<Component>> nonDatabaseComponentsCache

responsibleServiceByPackageClass

protected final ConcurrentMap<String,RiceApplicationConfigurationService> responsibleServiceByPackageClass
Constructor Detail

RiceApplicationConfigurationMediationServiceImpl

public RiceApplicationConfigurationMediationServiceImpl()
Method Detail

getConfigurationParameter

public String getConfigurationParameter(String namespaceCode,
                                        String parameterName)
Description copied from interface: RiceApplicationConfigurationMediationService
Returns the configuration parameter value for the given applicationId and parameterName. The applicationId is used to determine which RiceApplicationConfigurationService to call by looking up the applicationNamespaceCode associated with it's applicationId.

Specified by:
getConfigurationParameter in interface RiceApplicationConfigurationMediationService
Returns:

getParameterValueFromConfigurationParameterCache

protected String getParameterValueFromConfigurationParameterCache(String parameterKey)

getComponentListFromNonDatabaseComponentsCache

protected List<Component> getComponentListFromNonDatabaseComponentsCache(String nonDatabaseServiceNameKey)

getNonDatabaseComponents

public List<Component> getNonDatabaseComponents()
Description copied from interface: RiceApplicationConfigurationMediationService
Returns the non-database components that have been published by all Rice client applications.

Specified by:
getNonDatabaseComponents in interface RiceApplicationConfigurationMediationService

findApplicationConfigurationServices

protected Set<QName> findApplicationConfigurationServices()

findRiceApplicationConfigurationService

protected RiceApplicationConfigurationService findRiceApplicationConfigurationService(QName serviceName)

findRiceApplicationConfigurationService

protected RiceApplicationConfigurationService findRiceApplicationConfigurationService(String namespace)

setConfigurationParameterCacheMaxSize

public void setConfigurationParameterCacheMaxSize(int configurationParameterCacheMaxSize)

setConfigurationParameterCacheMaxAgeSeconds

public void setConfigurationParameterCacheMaxAgeSeconds(int configurationParameterCacheMaxAgeSeconds)

setNonDatabaseComponentsCacheMaxSize

public void setNonDatabaseComponentsCacheMaxSize(int nonDatabaseComponentsCacheMaxSize)

setNonDatabaseComponentsCacheMaxAgeSeconds

public void setNonDatabaseComponentsCacheMaxAgeSeconds(int nonDatabaseComponentsCacheMaxAgeSeconds)

findServiceResponsibleForPackageOrClass

protected RiceApplicationConfigurationService findServiceResponsibleForPackageOrClass(String packageOrClassName)
Call each available service to see if it's responsible for the given package. When found, cache the result to prevent need for future service lookups for the same package.


getBaseInquiryUrl

public String getBaseInquiryUrl(String businessObjectClassName)
Specified by:
getBaseInquiryUrl in interface RiceApplicationConfigurationMediationService
See Also:
RiceApplicationConfigurationMediationService.getBaseInquiryUrl(java.lang.String)

getBaseLookupUrl

public String getBaseLookupUrl(String businessObjectClassName)
Specified by:
getBaseLookupUrl in interface RiceApplicationConfigurationMediationService
See Also:
RiceApplicationConfigurationMediationService.getBaseLookupUrl(java.lang.String)

getBaseHelpUrl

public String getBaseHelpUrl(String businessObjectClassName)
Specified by:
getBaseHelpUrl in interface RiceApplicationConfigurationMediationService
See Also:
RiceApplicationConfigurationMediationService.getBaseHelpUrl(java.lang.String)

getBusinessObjectAttributeDefinition

public AttributeDefinition getBusinessObjectAttributeDefinition(String businessObjectClassName,
                                                                String attributeName)
Description copied from interface: RiceApplicationConfigurationMediationService
This method will return the attribute definition from the local data dictionary of the application which supports that business object. If not present in any application attached to the bus, this method will return null. This method also returns null if the given attribute definition can not be found on the business object.

Specified by:
getBusinessObjectAttributeDefinition in interface RiceApplicationConfigurationMediationService
See Also:
RiceApplicationConfigurationMediationService.getBusinessObjectAttributeDefinition(java.lang.String, java.lang.String)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.