Package org.kuali.rice.krad.service.impl
Class ModuleServiceBase
java.lang.Object
org.kuali.rice.krad.service.impl.RemoteModuleServiceBase
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
Base implementation of the module service
- 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
FieldsFields inherited from class org.kuali.rice.krad.service.impl.RemoteModuleServiceBase
applicationContext, kualiConfigurationService, kualiModuleService, legacyDataAdapter, lookupService, moduleConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the base URL to use for lookup requests to objects within the module<T extends ExternalizableBusinessObject>
TgetExternalizableBusinessObject(Class<T> businessObjectClass, Map<String, Object> fieldValues) This method gets the externalizable business object, given its type and a map of primary keys and valuesgetExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass, Map<String, String[]> parameters) Deprecated.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 StringgetInquiryUrl(Class inquiryBusinessObjectClass) Deprecated.protected RunModegetRunMode(String module) booleanThis method determines whether or not the central rice server should be used for lookups.booleanbooleanMethods inherited from class org.kuali.rice.krad.service.impl.RemoteModuleServiceBase
afterPropertiesSet, createNewObjectFromExternalizableClass, getBaseInquiryUrl, getBusinessObjectRelationship, getExternalizableBusinessObjectDictionaryEntry, getExternalizableBusinessObjectImplementation, getExternalizableBusinessObjectsListForLookup, getExternalizableDataObjectInquiryUrl, getExternalizableDataObjectLookupUrl, getKualiConfigurationService, getKualiModuleService, getLegacyDataAdapter, getLookupService, getModuleConfiguration, getRiceBaseLookupUrl, getUrlParameters, isExternalizable, isLocked, isNonBlankValueForKey, isResponsibleFor, listAlternatePrimaryKeyFieldNames, listPrimaryKeyFieldNames, packagePrefixesMatchesDataObject, persistenceProvidersMatchDataObject, retrieveExternalizableBusinessObjectIfNecessary, retrieveExternalizableBusinessObjectsList, setApplicationContext, setKualiConfigurationService, setKualiModuleService, setModuleConfiguration, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSetMethods inherited from interface org.kuali.rice.krad.service.ModuleService
createNewObjectFromExternalizableClass, getExternalizableBusinessObjectDictionaryEntry, getExternalizableBusinessObjectImplementation, getExternalizableBusinessObjectsListForLookup, getExternalizableDataObjectInquiryUrl, getExternalizableDataObjectLookupUrl, getModuleConfiguration, isExternalizable, isLocked, isResponsibleFor, listAlternatePrimaryKeyFieldNames, listPrimaryKeyFieldNames, retrieveExternalizableBusinessObjectIfNecessary, retrieveExternalizableBusinessObjectsList
-
Field Details
-
LOG
protected static final org.apache.logging.log4j.Logger LOG
-
-
Constructor Details
-
ModuleServiceBase
public ModuleServiceBase()
-
-
Method Details
-
getExternalizableBusinessObject
public <T extends ExternalizableBusinessObject> T getExternalizableBusinessObject(Class<T> businessObjectClass, Map<String, Object> fieldValues) Description copied from interface:ModuleServiceThis method gets the externalizable business object, given its type and a map of primary keys and values- Specified by:
getExternalizableBusinessObjectin interfaceModuleService- Parameters:
businessObjectClass-fieldValues-- Returns:
- business object
- See Also:
-
getExternalizableBusinessObjectsList
public <T extends ExternalizableBusinessObject> List<T> getExternalizableBusinessObjectsList(Class<T> externalizableBusinessObjectClass, Map<String, Object> fieldValues) Description copied from interface:ModuleServiceThis method gets the list of externalizable business objects, given its type and a map of primary keys and values.- Specified by:
getExternalizableBusinessObjectsListin interfaceModuleService- Parameters:
externalizableBusinessObjectClass-fieldValues-- Returns:
- list of business objects
- See Also:
-
getExternalizableBusinessObjectInquiryUrl
@Deprecated public String getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass, Map<String, String[]> parameters) Deprecated.Description copied from interface:ModuleServiceThis 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:
getExternalizableBusinessObjectInquiryUrlin interfaceModuleService- Overrides:
getExternalizableBusinessObjectInquiryUrlin classRemoteModuleServiceBase- Parameters:
inquiryBusinessObjectClass- aExternalizableBusinessObjectmanaged by this moduleparameters- 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.- Overrides:
getInquiryUrlin classRemoteModuleServiceBase
-
isExternalizableBusinessObjectLookupable
- Specified by:
isExternalizableBusinessObjectLookupablein interfaceModuleService- Parameters:
boClass-- Returns:
- true if the class is lookupable and externalizable
-
isExternalizableBusinessObjectInquirable
- Specified by:
isExternalizableBusinessObjectInquirablein interfaceModuleService- Parameters:
boClass-- Returns:
- true if the class is inquirable and externalizable
-
getExternalizableBusinessObjectLookupUrl
@Deprecated public String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass, Map<String, String> parameters) Deprecated.Description copied from interface:ModuleServiceThis method gets the lookup url for the given externalizable business object properties.- Specified by:
getExternalizableBusinessObjectLookupUrlin interfaceModuleService- Overrides:
getExternalizableBusinessObjectLookupUrlin classRemoteModuleServiceBase- Parameters:
parameters-- Returns:
- lookup url
-
goToCentralRiceForInquiry
public boolean goToCentralRiceForInquiry()Description copied from interface:ModuleServiceThis method determines whether or not the central rice server should be used for lookups.- Specified by:
goToCentralRiceForInquiryin interfaceModuleService- Overrides:
goToCentralRiceForInquiryin classRemoteModuleServiceBase- Returns:
- true if the central rice server should be used for lookups
-
getBaseLookupUrl
Returns the base URL to use for lookup requests to objects within the module- Overrides:
getBaseLookupUrlin classRemoteModuleServiceBase- Returns:
- String base lookup URL
-
getRunMode
-