org.kuali.rice.kns.service.impl
Class RiceApplicationConfigurationServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.service.impl.RiceApplicationConfigurationServiceImpl
All Implemented Interfaces:
RiceApplicationConfigurationService

public class RiceApplicationConfigurationServiceImpl
extends Object
implements RiceApplicationConfigurationService


Field Summary
protected  List<ParameterDetailType> components
           
private  DataDictionaryService dataDictionaryService
           
private  KualiConfigurationService kualiConfigurationService
           
private static org.apache.log4j.Logger LOG
           
protected  List<String> packagePrefixes
           
private  ParameterService parameterService
           
 
Constructor Summary
RiceApplicationConfigurationServiceImpl()
           
 
Method Summary
 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.
 String getConfigurationParameter(String parameterName)
          Given a property name (parameterName), returns the value associated with it.
protected  DataDictionaryService getDataDictionaryService()
           
protected  String getDetailTypeName(Class documentOrStepClass)
           
protected  KualiConfigurationService getKualiConfigurationService()
           
 List<ParameterDetailType> getNonDatabaseComponents()
          This method derived ParameterDetailedTypes from the DataDictionary for all BusinessObjects and Documents and from Spring for all batch Steps.
 List<String> getPackagePrefixes()
           
protected  ParameterDetailType getParameterDetailType(Class documentOrStepClass)
           
protected  ParameterService getParameterService()
           
 boolean isResponsibleForPackage(String packageName)
          Checks whether this application is responsible for the package given.
 void setPackagePrefixes(List<String> packagePrefixes)
           
 boolean supportsBusinessObjectClass(String businessObjectClassName)
          Checks whether this application supports the given business object (whether it is defined in the data dictionary)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static org.apache.log4j.Logger LOG

components

protected List<ParameterDetailType> components

packagePrefixes

protected List<String> packagePrefixes

kualiConfigurationService

private KualiConfigurationService kualiConfigurationService

parameterService

private ParameterService parameterService

dataDictionaryService

private DataDictionaryService dataDictionaryService
Constructor Detail

RiceApplicationConfigurationServiceImpl

public RiceApplicationConfigurationServiceImpl()
Method Detail

getConfigurationParameter

public String getConfigurationParameter(String parameterName)
Description copied from interface: RiceApplicationConfigurationService
Given a property name (parameterName), returns the value associated with it.

Specified by:
getConfigurationParameter in interface RiceApplicationConfigurationService
Returns:
String associated with the given parameterName

getNonDatabaseComponents

public List<ParameterDetailType> getNonDatabaseComponents()
This method derived ParameterDetailedTypes from the DataDictionary for all BusinessObjects and Documents and from Spring for all batch Steps.

Specified by:
getNonDatabaseComponents in interface RiceApplicationConfigurationService
Returns:
List containing the detailed types derived from the data dictionary and Spring

getParameterDetailType

protected ParameterDetailType getParameterDetailType(Class documentOrStepClass)

getDetailTypeName

protected String getDetailTypeName(Class documentOrStepClass)

getKualiConfigurationService

protected KualiConfigurationService getKualiConfigurationService()

getParameterService

protected ParameterService getParameterService()

getDataDictionaryService

protected DataDictionaryService getDataDictionaryService()

getBaseInquiryUrl

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

getBaseLookupUrl

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

getBaseHelpUrl

public String getBaseHelpUrl(String businessObjectClassName)
Specified by:
getBaseHelpUrl in interface RiceApplicationConfigurationService

isResponsibleForPackage

public boolean isResponsibleForPackage(String packageName)
Description copied from interface: RiceApplicationConfigurationService
Checks whether this application is responsible for the package given. It will ensure that it falls within a set of configured parent packages.

Specified by:
isResponsibleForPackage in interface RiceApplicationConfigurationService
See Also:
RiceApplicationConfigurationService.isResponsibleForPackage(java.lang.String)

supportsBusinessObjectClass

public boolean supportsBusinessObjectClass(String businessObjectClassName)
Description copied from interface: RiceApplicationConfigurationService
Checks whether this application supports the given business object (whether it is defined in the data dictionary)

Specified by:
supportsBusinessObjectClass in interface RiceApplicationConfigurationService
See Also:
RiceApplicationConfigurationService.supportsBusinessObjectClass(java.lang.String)

getBusinessObjectAttributeDefinition

public AttributeDefinition getBusinessObjectAttributeDefinition(String businessObjectClassName,
                                                                String attributeName)
Description copied from interface: RiceApplicationConfigurationService
This method will return the attribute definition from the local data dictionary. It assumes that the #supportsBusinessObjectClass(java.lang.String) method has already been checked to make sure that this service will handle that class. If not present, 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 RiceApplicationConfigurationService
See Also:
RiceApplicationConfigurationService.getBusinessObjectAttributeDefinition(java.lang.String, java.lang.String)

getPackagePrefixes

public List<String> getPackagePrefixes()
Returns:
the packagePrefixes

setPackagePrefixes

public void setPackagePrefixes(List<String> packagePrefixes)
Parameters:
packagePrefixes - the packagePrefixes to set


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