public abstract class RemoteModuleServiceBase extends Object implements ModuleService
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RemoteModuleServiceBase.BaseLookupUrlsHolder |
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected ConfigurationService |
kualiConfigurationService |
protected KualiModuleService |
kualiModuleService |
protected LegacyDataAdapter |
legacyDataAdapter |
protected static org.apache.log4j.Logger |
LOG |
protected LookupService |
lookupService |
protected ModuleConfiguration |
moduleConfiguration |
| Constructor and Description |
|---|
RemoteModuleServiceBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
<T extends ExternalizableBusinessObject> |
createNewObjectFromExternalizableClass(Class<T> boClass) |
protected String |
getBaseInquiryUrl()
Returns the base URL to use for inquiry requests to objects within the module
|
protected String |
getBaseLookupUrl()
Returns the base URL to use for lookup requests to objects within the module
|
DataObjectRelationship |
getBusinessObjectRelationship(Class boClass,
String attributeName,
String attributePrefix) |
BusinessObjectEntry |
getExternalizableBusinessObjectDictionaryEntry(Class businessObjectInterfaceClass)
This method gets the business object dictionary entry for the passed in externalizable business object class.
|
<E extends ExternalizableBusinessObject> |
getExternalizableBusinessObjectImplementation(Class<E> externalizableBusinessObjectInterface)
For a given ExternalizableBusinessObject interface, return the implementation class provided by this module.
|
String |
getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass,
Map<String,String[]> parameters)
Deprecated.
|
String |
getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass,
Map<String,String> parameters)
Deprecated.
|
<T extends ExternalizableBusinessObject> |
getExternalizableBusinessObjectsListForLookup(Class<T> externalizableBusinessObjectClass,
Map<String,Object> fieldValues,
boolean unbounded)
This method gets the list of externalizable business objects for lookup, given its type and a map of primary keys
and values.
|
String |
getExternalizableDataObjectInquiryUrl(Class<?> inquiryDataObjectClass,
Properties parameters)
Returns a URL so that the inquiry framework may redirect a user to the appropriate (possibly
external) website at which to view inquiry information
|
String |
getExternalizableDataObjectLookupUrl(Class<?> lookupDataObjectClass,
Properties parameters)
Returns a URL so that the lookup framework may redirect a user to the appropriate (possibly
external) website at which to the data for the object may be searched
|
protected String |
getInquiryUrl(Class inquiryBusinessObjectClass)
Deprecated.
|
protected ConfigurationService |
getKualiConfigurationService() |
KualiModuleService |
getKualiModuleService() |
protected LegacyDataAdapter |
getLegacyDataAdapter()
Gets the legacyDataAdapter service.
|
protected LookupService |
getLookupService()
Gets the lookupService attribute.
|
ModuleConfiguration |
getModuleConfiguration()
This method returns the module configuration.
|
protected String |
getRiceBaseLookupUrl()
Returns the base lookup URL for the Rice server
|
protected Properties |
getUrlParameters(String businessObjectClassAttribute,
Map<String,String[]> parameters)
Deprecated.
|
boolean |
goToCentralRiceForInquiry()
This method determines whether or not the central rice server should be used for lookups.
|
boolean |
isExternalizable(Class boClazz)
This method determines whether or not a bo class is externalizable.
|
boolean |
isLocked()
This method determines whether or not this module is currently locked
|
protected static boolean |
isNonBlankValueForKey(Map<String,Object> map,
String key)
Utility method to check for the presence of a non blank value in the map for the given key
Note: returns false if a null map is passed in.
|
boolean |
isResponsibleFor(Class businessObjectClass)
This method determines whether this service is responsible for the business object class passed in, or not.
|
List<List<String>> |
listAlternatePrimaryKeyFieldNames(Class businessObjectInterfaceClass)
This overridden method ...
|
List |
listPrimaryKeyFieldNames(Class businessObjectInterfaceClass)
This method returns the list of primary keys for the EBO.
|
protected boolean |
packagePrefixesMatchesDataObject(Class dataObjectClass) |
protected boolean |
persistenceProvidersMatchDataObject(Class dataObjectClass) |
<T extends ExternalizableBusinessObject> |
retrieveExternalizableBusinessObjectIfNecessary(BusinessObject businessObject,
T currentInstanceExternalizableBO,
String externalizableRelationshipName)
This method assumes that the property type for externalizable relationship in the business object is an interface
and gets the concrete implementation for it
This method retrieves the externalizable business object, if it is not already populated
with the matching primary key values.
|
List<? extends ExternalizableBusinessObject> |
retrieveExternalizableBusinessObjectsList(BusinessObject businessObject,
String externalizableRelationshipName,
Class externalizableClazz)
This method assumes that the externalizableClazz is an interface
and gets the concrete implementation for it
This method retrieves a list of externalizable business objects given a business object,
name of the relationship between the business object and the externalizable business object, and
the externalizable business object class.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setKualiConfigurationService(ConfigurationService kualiConfigurationService) |
void |
setKualiModuleService(KualiModuleService kualiModuleService) |
void |
setModuleConfiguration(ModuleConfiguration moduleConfiguration) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExternalizableBusinessObject, getExternalizableBusinessObjectsList, isExternalizableBusinessObjectInquirable, isExternalizableBusinessObjectLookupableprotected static final org.apache.log4j.Logger LOG
protected ModuleConfiguration moduleConfiguration
protected KualiModuleService kualiModuleService
protected org.springframework.context.ApplicationContext applicationContext
protected ConfigurationService kualiConfigurationService
protected LookupService lookupService
protected LegacyDataAdapter legacyDataAdapter
public RemoteModuleServiceBase()
public boolean isResponsibleFor(Class businessObjectClass)
ModuleServiceisResponsibleFor in interface ModuleServiceModuleService.isResponsibleFor(java.lang.Class)protected boolean packagePrefixesMatchesDataObject(Class dataObjectClass)
dataObjectClass - the dataobject classprotected boolean persistenceProvidersMatchDataObject(Class dataObjectClass)
dataObjectClass - the dataobject classprotected static boolean isNonBlankValueForKey(Map<String,Object> map, String key)
map - the map to retrieve the value fromkey - the key to usepublic List listPrimaryKeyFieldNames(Class businessObjectInterfaceClass)
ModuleServicelistPrimaryKeyFieldNames in interface ModuleServicepublic BusinessObjectEntry getExternalizableBusinessObjectDictionaryEntry(Class businessObjectInterfaceClass)
ModuleServicegetExternalizableBusinessObjectDictionaryEntry in interface ModuleServiceModuleService.getExternalizableBusinessObjectDictionaryEntry(java.lang.Class)public String getExternalizableDataObjectInquiryUrl(Class<?> inquiryDataObjectClass, Properties parameters)
ModuleServicegetExternalizableDataObjectInquiryUrl in interface ModuleServiceinquiryDataObjectClass - - a ExternalizableBusinessObject managed by this moduleparameters - - any inquiry parameters, and the primary key values of the inquiry class would be
in hereModuleService.getExternalizableDataObjectInquiryUrl(java.lang.Class,
java.util.Properties)protected String getBaseInquiryUrl()
public String getExternalizableDataObjectLookupUrl(Class<?> lookupDataObjectClass, Properties parameters)
ModuleServicegetExternalizableDataObjectLookupUrl in interface ModuleServicelookupDataObjectClass - - a ExternalizableBusinessObject managed by this moduleparameters - - any parameters for the lookup callModuleService.getExternalizableDataObjectLookupUrl(java.lang.Class,
java.util.Properties)protected String getRiceBaseLookupUrl()
protected String getBaseLookupUrl()
@Deprecated public String getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass, Map<String,String[]> parameters)
ModuleServicegetExternalizableBusinessObjectInquiryUrl in interface ModuleServiceinquiryBusinessObjectClass - a ExternalizableBusinessObject managed by this moduleparameters - any inquiry parameters, and the primary key values of the inquiryBusinessObjectClass would be
in here@Deprecated public String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass, Map<String,String> parameters)
getExternalizableBusinessObjectLookupUrl in interface ModuleServiceModuleService.getExternalizableBusinessObjectLookupUrl(java.lang.Class,
java.util.Map)public <T extends ExternalizableBusinessObject> List<T> getExternalizableBusinessObjectsListForLookup(Class<T> externalizableBusinessObjectClass, Map<String,Object> fieldValues, boolean unbounded)
ModuleServicegetExternalizableBusinessObjectsListForLookup in interface ModuleServiceModuleService.getExternalizableBusinessObjectsListForLookup(java.lang.Class,
java.util.Map, boolean)public <T extends ExternalizableBusinessObject> T retrieveExternalizableBusinessObjectIfNecessary(BusinessObject businessObject, T currentInstanceExternalizableBO, String externalizableRelationshipName)
retrieveExternalizableBusinessObjectIfNecessary in interface ModuleServicepublic List<? extends ExternalizableBusinessObject> retrieveExternalizableBusinessObjectsList(BusinessObject businessObject, String externalizableRelationshipName, Class externalizableClazz)
retrieveExternalizableBusinessObjectsList in interface ModuleServicepublic <E extends ExternalizableBusinessObject> Class<E> getExternalizableBusinessObjectImplementation(Class<E> externalizableBusinessObjectInterface)
ModuleServicegetExternalizableBusinessObjectImplementation in interface ModuleServiceModuleService.getExternalizableBusinessObjectImplementation(java.lang.Class)@Deprecated protected Properties getUrlParameters(String businessObjectClassAttribute, Map<String,String[]> parameters)
@Deprecated protected String getInquiryUrl(Class inquiryBusinessObjectClass)
public void afterPropertiesSet() throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionInitializingBean.afterPropertiesSet()public ModuleConfiguration getModuleConfiguration()
ModuleServicegetModuleConfiguration in interface ModuleServicepublic void setModuleConfiguration(ModuleConfiguration moduleConfiguration)
moduleConfiguration - the moduleConfiguration to setpublic boolean isExternalizable(Class boClazz)
ModuleServiceisExternalizable in interface ModuleServiceModuleService.isExternalizable(java.lang.Class)public <T extends ExternalizableBusinessObject> T createNewObjectFromExternalizableClass(Class<T> boClass)
createNewObjectFromExternalizableClass in interface ModuleServiceT - business object typeboClass - business object classpublic DataObjectRelationship getBusinessObjectRelationship(Class boClass, String attributeName, String attributePrefix)
public KualiModuleService getKualiModuleService()
public void setKualiModuleService(KualiModuleService kualiModuleService)
kualiModuleService - the kualiModuleService to setprotected ConfigurationService getKualiConfigurationService()
public void setKualiConfigurationService(ConfigurationService kualiConfigurationService)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)public List<List<String>> listAlternatePrimaryKeyFieldNames(Class businessObjectInterfaceClass)
listAlternatePrimaryKeyFieldNames in interface ModuleServiceModuleService.listAlternatePrimaryKeyFieldNames(java.lang.Class)public boolean isLocked()
isLocked in interface ModuleServiceModuleService.isLocked()protected LookupService getLookupService()
protected LegacyDataAdapter getLegacyDataAdapter()
public boolean goToCentralRiceForInquiry()
ModuleServicegoToCentralRiceForInquiry in interface ModuleServiceCopyright © 2005–2016 The Kuali Foundation. All rights reserved.