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

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.RemoteModuleServiceBase
      extended by org.kuali.rice.krad.service.impl.ModuleServiceBase
All Implemented Interfaces:
ModuleService, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
CoreServiceModuleService, KEWModuleService, KimModuleService, KRADModuleService, KSBModuleService, LocationModuleService

public class ModuleServiceBase
extends RemoteModuleServiceBase
implements ModuleService

This class implements ModuleService interface.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.krad.service.impl.RemoteModuleServiceBase
RemoteModuleServiceBase.BaseLookupUrlsHolder
 
Field Summary
protected  BusinessObjectDictionaryService businessObjectDictionaryService
           
protected  BusinessObjectService businessObjectService
           
protected static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.kuali.rice.krad.service.impl.RemoteModuleServiceBase
applicationContext, kualiConfigurationService, kualiModuleService, lookupService, moduleConfiguration
 
Constructor Summary
ModuleServiceBase()
           
 
Method Summary
protected  String getBaseLookupUrl()
          Returns the base URL to use for lookup requests to objects within the module
protected  BusinessObjectDictionaryService getBusinessObjectDictionaryService()
           
protected  BusinessObjectService getBusinessObjectService()
           
<T extends ExternalizableBusinessObject>
T
getExternalizableBusinessObject(Class<T> businessObjectClass, Map<String,Object> fieldValues)
          This method gets the externalizable business object, given its type and a map of primary keys and values
 String getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass, Map<String,String[]> parameters)
          Deprecated. 
 String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass, Map<String,String> parameters)
          Deprecated. 
<T extends ExternalizableBusinessObject>
List<T>
getExternalizableBusinessObjectsList(Class<T> externalizableBusinessObjectClass, Map<String,Object> fieldValues)
          This method gets the list of externalizable business objects, given its type and a map of primary keys and values.
protected  String getInquiryUrl(Class inquiryBusinessObjectClass)
          Deprecated. 
protected  RunMode getRunMode(String module)
           
 boolean goToCentralRiceForInquiry()
          This method determines whether or not the central rice server should be used for lookups.
 boolean isExternalizableBusinessObjectInquirable(Class boClass)
           
 boolean isExternalizableBusinessObjectLookupable(Class boClass)
           
 
Methods inherited from class org.kuali.rice.krad.service.impl.RemoteModuleServiceBase
afterPropertiesSet, createNewObjectFromExternalizableClass, getBaseInquiryUrl, getBusinessObjectRelationship, getExternalizableBusinessObjectDictionaryEntry, getExternalizableBusinessObjectImplementation, getExternalizableBusinessObjectsListForLookup, getExternalizableDataObjectInquiryUrl, getExternalizableDataObjectLookupUrl, getKualiConfigurationService, getKualiModuleService, getLookupService, getModuleConfiguration, getRiceBaseLookupUrl, getUrlParameters, isExternalizable, isLocked, isResponsibleFor, isResponsibleForJob, listAlternatePrimaryKeyFieldNames, listPrimaryKeyFieldNames, retrieveExternalizableBusinessObjectIfNecessary, retrieveExternalizableBusinessObjectsList, setApplicationContext, setKualiConfigurationService, setKualiModuleService, setModuleConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.service.ModuleService
createNewObjectFromExternalizableClass, getExternalizableBusinessObjectDictionaryEntry, getExternalizableBusinessObjectImplementation, getExternalizableBusinessObjectsListForLookup, getExternalizableDataObjectInquiryUrl, getExternalizableDataObjectLookupUrl, getModuleConfiguration, isExternalizable, isLocked, isResponsibleFor, isResponsibleForJob, listAlternatePrimaryKeyFieldNames, listPrimaryKeyFieldNames, retrieveExternalizableBusinessObjectIfNecessary, retrieveExternalizableBusinessObjectsList
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG

businessObjectService

protected BusinessObjectService businessObjectService

businessObjectDictionaryService

protected BusinessObjectDictionaryService businessObjectDictionaryService
Constructor Detail

ModuleServiceBase

public ModuleServiceBase()
Method Detail

getExternalizableBusinessObject

public <T extends ExternalizableBusinessObject> T getExternalizableBusinessObject(Class<T> businessObjectClass,
                                                                                  Map<String,Object> fieldValues)
Description copied from interface: ModuleService
This method gets the externalizable business object, given its type and a map of primary keys and values

Specified by:
getExternalizableBusinessObject in interface ModuleService
Returns:
See Also:
ModuleService.getExternalizableBusinessObject(java.lang.Class, java.util.Map)

getExternalizableBusinessObjectsList

public <T extends ExternalizableBusinessObject> List<T> getExternalizableBusinessObjectsList(Class<T> externalizableBusinessObjectClass,
                                                                                             Map<String,Object> fieldValues)
Description copied from interface: ModuleService
This method gets the list of externalizable business objects, given its type and a map of primary keys and values.

Specified by:
getExternalizableBusinessObjectsList in interface ModuleService
Returns:
See Also:
ModuleService.getExternalizableBusinessObject(java.lang.Class, java.util.Map)

getExternalizableBusinessObjectInquiryUrl

@Deprecated
public String getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass,
                                                                   Map<String,String[]> parameters)
Deprecated. 

Description copied from interface: ModuleService
This method returns a URL so that the inquiry framework may redirect a user to the appropriate (possibly external) website at which to view inquiry information.

Specified by:
getExternalizableBusinessObjectInquiryUrl in interface ModuleService
Overrides:
getExternalizableBusinessObjectInquiryUrl in class RemoteModuleServiceBase
Parameters:
inquiryBusinessObjectClass - a ExternalizableBusinessObject managed by this module
parameters - any inquiry parameters, and the primary key values of the inquiryBusinessObjectClass would be in here
Returns:
a URL where externalizable business object information may be viewed.

getInquiryUrl

@Deprecated
protected String getInquiryUrl(Class inquiryBusinessObjectClass)
Deprecated. 

Overrides:
getInquiryUrl in class RemoteModuleServiceBase

isExternalizableBusinessObjectLookupable

public boolean isExternalizableBusinessObjectLookupable(Class boClass)
Specified by:
isExternalizableBusinessObjectLookupable in interface ModuleService
Returns:

isExternalizableBusinessObjectInquirable

public boolean isExternalizableBusinessObjectInquirable(Class boClass)
Specified by:
isExternalizableBusinessObjectInquirable in interface ModuleService
Returns:

getExternalizableBusinessObjectLookupUrl

@Deprecated
public String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass,
                                                                  Map<String,String> parameters)
Deprecated. 

This overridden method ...

Specified by:
getExternalizableBusinessObjectLookupUrl in interface ModuleService
Overrides:
getExternalizableBusinessObjectLookupUrl in class RemoteModuleServiceBase
Returns:
See Also:
ModuleService.getExternalizableBusinessObjectLookupUrl(java.lang.Class, java.util.Map)

getBusinessObjectDictionaryService

protected BusinessObjectDictionaryService getBusinessObjectDictionaryService()

getBusinessObjectService

protected BusinessObjectService getBusinessObjectService()
Returns:
the businessObjectService

goToCentralRiceForInquiry

public boolean goToCentralRiceForInquiry()
Description copied from interface: ModuleService
This method determines whether or not the central rice server should be used for lookups.

Specified by:
goToCentralRiceForInquiry in interface ModuleService
Overrides:
goToCentralRiceForInquiry in class RemoteModuleServiceBase
Returns:

getBaseLookupUrl

protected String getBaseLookupUrl()
Returns the base URL to use for lookup requests to objects within the module

Overrides:
getBaseLookupUrl in class RemoteModuleServiceBase
Returns:
String base lookup URL

getRunMode

protected RunMode getRunMode(String module)


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