org.kuali.rice.krad.service
Interface ModuleService

All Superinterfaces:
org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean
All Known Implementing Classes:
KEWModuleService, KimModuleService, KRADModuleService, KSBModuleService, LocationModuleService, ModuleServiceBase

public interface ModuleService
extends org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

This interface defines service methods for modules.

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

Method Summary
<T extends ExternalizableBusinessObject>
T
createNewObjectFromExternalizableClass(Class<T> boClass)
           
<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
 BusinessObjectEntry getExternalizableBusinessObjectDictionaryEntry(Class businessObjectInterfaceClass)
          This method gets the business object dictionary entry for the passed in externalizable business object class.
<E extends ExternalizableBusinessObject>
Class<E>
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)
          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.
 String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass, Map<String,String> parameters)
          This method gets the lookup url for the given externalizable business object properties.
<T extends ExternalizableBusinessObject>
List<T>
getExternalizableBusinessObjectsList(Class<T> businessObjectClass, Map<String,Object> fieldValues)
          This method gets the list of externalizable business objects, given its type and a map of primary keys and values.
<T extends ExternalizableBusinessObject>
List<T>
getExternalizableBusinessObjectsListForLookup(Class<T> businessObjectClass, 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.
 ModuleConfiguration getModuleConfiguration()
          This method returns the module configuration.
 boolean isExternalizable(Class boClass)
          This method determines whether or not a bo class is externalizable.
 boolean isExternalizableBusinessObjectInquirable(Class boClass)
           
 boolean isExternalizableBusinessObjectLookupable(Class boClass)
           
 boolean isLocked()
          This method determines whether or not this module is currently locked
 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 method returns a list of alternate primary keys.
 List listPrimaryKeyFieldNames(Class businessObjectInterfaceClass)
          This method returns the list of primary keys for the EBO.
<T extends ExternalizableBusinessObject>
T
retrieveExternalizableBusinessObjectIfNecessary(BusinessObject businessObject, T currentInstanceExternalizableBO, String externalizableRelationshipName)
          This method retrieves the externalizable business object, if it is not already populated with the matching primary key values.
<T extends ExternalizableBusinessObject>
List<T>
retrieveExternalizableBusinessObjectsList(BusinessObject businessObject, String externalizableRelationshipName, Class<T> externalizableClazz)
          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.
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
 

Method Detail

getModuleConfiguration

ModuleConfiguration getModuleConfiguration()
This method returns the module configuration.

Returns:

isResponsibleFor

boolean isResponsibleFor(Class businessObjectClass)
This method determines whether this service is responsible for the business object class passed in, or not.

Parameters:
businessObjectClass -
Returns:

isResponsibleForJob

boolean isResponsibleForJob(String jobName)
This method determines whether this service is responsible for the given jobname, or not.

Parameters:
jobName -
Returns:

listPrimaryKeyFieldNames

List listPrimaryKeyFieldNames(Class businessObjectInterfaceClass)
This method returns the list of primary keys for the EBO.

Parameters:
businessObjectInterfaceClass -
Returns:

listAlternatePrimaryKeyFieldNames

List<List<String>> listAlternatePrimaryKeyFieldNames(Class businessObjectInterfaceClass)
This method returns a list of alternate primary keys. This is used when the "real" primary key is not the only one that can be used. For example, documentType has "documentTypeId" as its primary key, but the "name" could also be used. A List of Lists is returned because because there can be component keys: Ex: {name, date} {department, personId}

Parameters:
businessObjectInterfaceClass -
Returns:
List of List of Strings.

getExternalizableBusinessObjectDictionaryEntry

BusinessObjectEntry getExternalizableBusinessObjectDictionaryEntry(Class businessObjectInterfaceClass)
This method gets the business object dictionary entry for the passed in externalizable business object class.

Parameters:
businessObjectInterfaceClass -
Returns:

getExternalizableBusinessObject

<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

Parameters:
businessObjectClass -
fieldValues -
Returns:

getExternalizableBusinessObjectsList

<T extends ExternalizableBusinessObject> List<T> getExternalizableBusinessObjectsList(Class<T> businessObjectClass,
                                                                                      Map<String,Object> fieldValues)
This method gets the list of externalizable business objects, given its type and a map of primary keys and values.

Parameters:
businessObjectClass -
fieldValues -
Returns:

getExternalizableBusinessObjectsListForLookup

<T extends ExternalizableBusinessObject> List<T> getExternalizableBusinessObjectsListForLookup(Class<T> businessObjectClass,
                                                                                               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.

Type Parameters:
T -
Parameters:
businessObjectClass -
fieldValues -
unbounded -
Returns:

getExternalizableBusinessObjectInquiryUrl

String getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass,
                                                 Map<String,String[]> parameters)
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.

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.

getExternalizableBusinessObjectLookupUrl

String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass,
                                                Map<String,String> parameters)
This method gets the lookup url for the given externalizable business object properties.

Parameters:
parameters -
Returns:

retrieveExternalizableBusinessObjectIfNecessary

<T extends ExternalizableBusinessObject> T retrieveExternalizableBusinessObjectIfNecessary(BusinessObject businessObject,
                                                                                           T currentInstanceExternalizableBO,
                                                                                           String externalizableRelationshipName)
This method retrieves the externalizable business object, if it is not already populated with the matching primary key values.

Parameters:
businessObject -
currentInstanceExternalizableBO -
externalizableRelationshipName -
Returns:

retrieveExternalizableBusinessObjectsList

<T extends ExternalizableBusinessObject> List<T> retrieveExternalizableBusinessObjectsList(BusinessObject businessObject,
                                                                                           String externalizableRelationshipName,
                                                                                           Class<T> externalizableClazz)
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.

Parameters:
businessObject -
externalizableRelationshipName -
externalizableClazz -
Returns:

isExternalizable

boolean isExternalizable(Class boClass)
This method determines whether or not a bo class is externalizable.

Parameters:
boClass -
Returns:

isExternalizableBusinessObjectLookupable

boolean isExternalizableBusinessObjectLookupable(Class boClass)
Parameters:
boClass -
Returns:

isExternalizableBusinessObjectInquirable

boolean isExternalizableBusinessObjectInquirable(Class boClass)
Parameters:
boClass -
Returns:

createNewObjectFromExternalizableClass

<T extends ExternalizableBusinessObject> T createNewObjectFromExternalizableClass(Class<T> boClass)
Type Parameters:
T -
Parameters:
boClass -
Returns:

getExternalizableBusinessObjectImplementation

<E extends ExternalizableBusinessObject> Class<E> getExternalizableBusinessObjectImplementation(Class<E> externalizableBusinessObjectInterface)
For a given ExternalizableBusinessObject interface, return the implementation class provided by this module.


isLocked

boolean isLocked()
This method determines whether or not this module is currently locked



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