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 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 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.
|
boolean |
isResponsibleForJob(String jobName)
This method determines whether this service is responsible for the given jobname, 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.
|
<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
|
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
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setKualiConfigurationService(ConfigurationService kualiConfigurationService) |
void |
setKualiModuleService(KualiModuleService kualiModuleService) |
void |
setModuleConfiguration(ModuleConfiguration moduleConfiguration) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
public RemoteModuleServiceBase()
public boolean isResponsibleFor(Class businessObjectClass)
ModuleServiceisResponsibleFor in interface ModuleServiceModuleService.isResponsibleFor(java.lang.Class)protected static boolean isNonBlankValueForKey(Map<String,Object> map, String key)
map - the map to retrieve the value fromkey - the key to usepublic boolean isResponsibleForJob(String jobName)
ModuleServiceisResponsibleForJob in interface ModuleServiceModuleService.isResponsibleFor(java.lang.Class)public 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 ModuleServiceorg.kuali.rice.krad.service.ModuleService#retrieveExternalizableBusinessObjectIfNecessary(org.kuali.rice.krad.bo.BusinessObject,
org.kuali.rice.krad.bo.BusinessObject, java.lang.String)public List<? extends ExternalizableBusinessObject> retrieveExternalizableBusinessObjectsList(BusinessObject businessObject, String externalizableRelationshipName, Class externalizableClazz)
retrieveExternalizableBusinessObjectsList in interface ModuleServiceorg.kuali.rice.krad.service.ModuleService#retrieveExternalizableBusinessObjectIfNecessary(org.kuali.rice.krad.bo.BusinessObject,
org.kuali.rice.krad.bo.BusinessObject, java.lang.String)public <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 ModuleServicepublic 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()
public boolean goToCentralRiceForInquiry()
ModuleServicegoToCentralRiceForInquiry in interface ModuleServiceCopyright © 2005-2015 The Kuali Foundation. All Rights Reserved.