|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.service.impl.RemoteModuleServiceBase
public abstract class RemoteModuleServiceBase
Nested Class Summary | |
---|---|
protected static class |
RemoteModuleServiceBase.BaseLookupUrlsHolder
|
Field Summary | |
---|---|
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 Summary | |
---|---|
RemoteModuleServiceBase()
|
Method Summary | ||
---|---|---|
void |
afterPropertiesSet()
|
|
|
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. |
|
|
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. |
|
|
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)
|
|
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.service.ModuleService |
---|
getExternalizableBusinessObject, getExternalizableBusinessObjectsList, isExternalizableBusinessObjectInquirable, isExternalizableBusinessObjectLookupable |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public RemoteModuleServiceBase()
Method Detail |
---|
public boolean isResponsibleFor(Class businessObjectClass)
ModuleService
isResponsibleFor
in interface ModuleService
ModuleService.isResponsibleFor(java.lang.Class)
protected boolean packagePrefixesMatchesDataObject(Class dataObjectClass)
dataObjectClass
- the dataobject class
protected boolean persistenceProvidersMatchDataObject(Class dataObjectClass)
dataObjectClass
- the dataobject class
protected static boolean isNonBlankValueForKey(Map<String,Object> map, String key)
map
- the map to retrieve the value fromkey
- the key to use
public List listPrimaryKeyFieldNames(Class businessObjectInterfaceClass)
ModuleService
listPrimaryKeyFieldNames
in interface ModuleService
public BusinessObjectEntry getExternalizableBusinessObjectDictionaryEntry(Class businessObjectInterfaceClass)
ModuleService
getExternalizableBusinessObjectDictionaryEntry
in interface ModuleService
ModuleService.getExternalizableBusinessObjectDictionaryEntry(java.lang.Class)
public String getExternalizableDataObjectInquiryUrl(Class<?> inquiryDataObjectClass, Properties parameters)
ModuleService
getExternalizableDataObjectInquiryUrl
in interface ModuleService
inquiryDataObjectClass
- - a ExternalizableBusinessObject
managed by this moduleparameters
- - any inquiry parameters, and the primary key values of the inquiry class would be
in here
ModuleService.getExternalizableDataObjectInquiryUrl(java.lang.Class,
java.util.Properties)
protected String getBaseInquiryUrl()
public String getExternalizableDataObjectLookupUrl(Class<?> lookupDataObjectClass, Properties parameters)
ModuleService
getExternalizableDataObjectLookupUrl
in interface ModuleService
lookupDataObjectClass
- - a ExternalizableBusinessObject
managed by this moduleparameters
- - any parameters for the lookup call
ModuleService.getExternalizableDataObjectLookupUrl(java.lang.Class,
java.util.Properties)
protected String getRiceBaseLookupUrl()
protected String getBaseLookupUrl()
@Deprecated public String getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass, Map<String,String[]> parameters)
ModuleService
getExternalizableBusinessObjectInquiryUrl
in interface ModuleService
inquiryBusinessObjectClass
- 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 ModuleService
ModuleService.getExternalizableBusinessObjectLookupUrl(java.lang.Class,
java.util.Map)
public <T extends ExternalizableBusinessObject> List<T> getExternalizableBusinessObjectsListForLookup(Class<T> externalizableBusinessObjectClass, Map<String,Object> fieldValues, boolean unbounded)
ModuleService
getExternalizableBusinessObjectsListForLookup
in interface ModuleService
ModuleService.getExternalizableBusinessObjectsListForLookup(java.lang.Class,
java.util.Map, boolean)
public <T extends ExternalizableBusinessObject> T retrieveExternalizableBusinessObjectIfNecessary(BusinessObject businessObject, T currentInstanceExternalizableBO, String externalizableRelationshipName)
retrieveExternalizableBusinessObjectIfNecessary
in interface ModuleService
public List<? extends ExternalizableBusinessObject> retrieveExternalizableBusinessObjectsList(BusinessObject businessObject, String externalizableRelationshipName, Class externalizableClazz)
retrieveExternalizableBusinessObjectsList
in interface ModuleService
public <E extends ExternalizableBusinessObject> Class<E> getExternalizableBusinessObjectImplementation(Class<E> externalizableBusinessObjectInterface)
ModuleService
getExternalizableBusinessObjectImplementation
in interface ModuleService
ModuleService.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.InitializingBean
Exception
InitializingBean.afterPropertiesSet()
public ModuleConfiguration getModuleConfiguration()
ModuleService
getModuleConfiguration
in interface ModuleService
public void setModuleConfiguration(ModuleConfiguration moduleConfiguration)
moduleConfiguration
- the moduleConfiguration to setpublic boolean isExternalizable(Class boClazz)
ModuleService
isExternalizable
in interface ModuleService
ModuleService.isExternalizable(java.lang.Class)
public <T extends ExternalizableBusinessObject> T createNewObjectFromExternalizableClass(Class<T> boClass)
createNewObjectFromExternalizableClass
in interface ModuleService
T
- business object typeboClass
- business object class
public 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.ApplicationContextAware
org.springframework.beans.BeansException
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)
public List<List<String>> listAlternatePrimaryKeyFieldNames(Class businessObjectInterfaceClass)
listAlternatePrimaryKeyFieldNames
in interface ModuleService
ModuleService.listAlternatePrimaryKeyFieldNames(java.lang.Class)
public boolean isLocked()
isLocked
in interface ModuleService
ModuleService.isLocked()
protected LookupService getLookupService()
protected LegacyDataAdapter getLegacyDataAdapter()
public boolean goToCentralRiceForInquiry()
ModuleService
goToCentralRiceForInquiry
in interface ModuleService
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |