Package org.kuali.rice.kns.lookup
Class DataDictionaryLookupResultsSupportStrategy
java.lang.Object
org.kuali.rice.kns.lookup.DataDictionaryLookupResultsSupportStrategy
- All Implemented Interfaces:
LookupResultsSupportStrategyService
@Deprecated
public class DataDictionaryLookupResultsSupportStrategy
extends Object
implements LookupResultsSupportStrategyService
Deprecated.
Only used by KNS classes, use KRAD.
LookupResults support strategy which uses the primary keys and lookupable defined in a business object's data dictionary file to support the multivalue lookup
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertLookupIdToPKFieldMap(String lookupId, Class<? extends BusinessObject> businessObjectClass) Deprecated.Converts a lookup id into a PK field map to use to search in a lookupableprotected StringconvertPKFieldMapToLookupId(List<String> pkFieldNames, BusinessObject businessObject) Deprecated.Converts a Map of PKFields into a String lookup IDprotected BusinessObjectEntrygetBusinessObjectEntry(Class<? extends BusinessObject> boClass) Deprecated.Looks up the DataDictionary BusinessObjectEntry for the given classDeprecated.protected LookupablegetLookupableForBusinessObject(Class<? extends BusinessObject> businessObjectClass) Deprecated.Retrieves the Lookupable for the given business object classgetLookupIdForBusinessObject(BusinessObject businessObject) Deprecated.Builds a lookup id for the given business objectgetPrimaryKeyFieldsForBusinessObject(Class<? extends BusinessObject> businessObjectClass) Deprecated.Returns the data dictionary defined primary keys for the given BusinessObjectbooleanqualifiesForStrategy(Class<? extends BusinessObject> boClass) Deprecated.Determines if both the primary keys and Lookupable are present in the data dictionary definition; if so, the BO qualifies, but if either are missing, it does notprotected FormatterretrieveBestFormatter(String propertyName, Class<? extends BusinessObject> boClass) Deprecated.Like when you're digging through your stuff drawer, you know the one in the kitchen with all the batteries and lint in it, this method goes through the stuff drawer of KNS formatters and attempts to return you a good one<T extends BusinessObject>
Collection<T> retrieveSelectedResultBOs(Class<T> boClass, Set<String> lookupIds) Deprecated.Uses the Lookupable associated with the given BusinessObject to search for business objectsvoidsetDataDictionaryService(DataDictionaryService dataDictionaryService) Deprecated.
-
Constructor Details
-
DataDictionaryLookupResultsSupportStrategy
public DataDictionaryLookupResultsSupportStrategy()Deprecated.
-
-
Method Details
-
getLookupIdForBusinessObject
Deprecated.Builds a lookup id for the given business object- Specified by:
getLookupIdForBusinessObjectin interfaceLookupResultsSupportStrategyService- Parameters:
businessObject- the lookup to generate an id for- Returns:
- the String id
- See Also:
-
qualifiesForStrategy
Deprecated.Determines if both the primary keys and Lookupable are present in the data dictionary definition; if so, the BO qualifies, but if either are missing, it does not- Specified by:
qualifiesForStrategyin interfaceLookupResultsSupportStrategyService- Parameters:
boClass- the class to test the determination on- Returns:
- true if this strategy supports it, false otherwise
- See Also:
-
retrieveSelectedResultBOs
public <T extends BusinessObject> Collection<T> retrieveSelectedResultBOs(Class<T> boClass, Set<String> lookupIds) throws Exception Deprecated.Uses the Lookupable associated with the given BusinessObject to search for business objects- Specified by:
retrieveSelectedResultBOsin interfaceLookupResultsSupportStrategyService- Parameters:
boClass- the class of the business object to retrieve- Returns:
- a Collection of retrieved BusinessObjects
- Throws:
Exception- if anything goes wrong...well, just blow up, okay?- See Also:
-
getLookupableForBusinessObject
protected Lookupable getLookupableForBusinessObject(Class<? extends BusinessObject> businessObjectClass) Deprecated.Retrieves the Lookupable for the given business object class- Parameters:
businessObjectClass- the class to find the Lookupable for- Returns:
- the Lookupable, or null if nothing could be found
-
getPrimaryKeyFieldsForBusinessObject
protected List<String> getPrimaryKeyFieldsForBusinessObject(Class<? extends BusinessObject> businessObjectClass) Deprecated.Returns the data dictionary defined primary keys for the given BusinessObject- Parameters:
businessObjectClass- the business object to get DataDictionary defined primary keys for- Returns:
- the List of primary key property names, or null if nothing could be found
-
convertLookupIdToPKFieldMap
protected Map<String,String> convertLookupIdToPKFieldMap(String lookupId, Class<? extends BusinessObject> businessObjectClass) Deprecated.Converts a lookup id into a PK field map to use to search in a lookupable- Parameters:
lookupId- the id returned by the lookupbusinessObjectClass- the class of the business object getting the primary key- Returns:
- a Map of field names and values which can be profitably used to search for matching business objects
-
convertPKFieldMapToLookupId
protected String convertPKFieldMapToLookupId(List<String> pkFieldNames, BusinessObject businessObject) Deprecated.Converts a Map of PKFields into a String lookup ID- Parameters:
pkFieldNames- the name of the PK fields, which should be converted to the given lookupIdbusinessObjectClass- the class of the business object getting the primary key- Returns:
- the String lookup id
-
retrieveBestFormatter
protected Formatter retrieveBestFormatter(String propertyName, Class<? extends BusinessObject> boClass) Deprecated.Like when you're digging through your stuff drawer, you know the one in the kitchen with all the batteries and lint in it, this method goes through the stuff drawer of KNS formatters and attempts to return you a good one- Parameters:
propertyName- the name of the property to retrieveboClass- the class of the BusinessObject the property is on- Returns:
- a Formatter, or null if we were unsuccessful in finding
-
getBusinessObjectEntry
Deprecated.Looks up the DataDictionary BusinessObjectEntry for the given class- Parameters:
boClass- the class of the BusinessObject to find a BusinessObjectEntry for- Returns:
- the entry from the data dictionary, or null if nothing was found
-
getDataDictionaryService
Deprecated.- Returns:
- the dataDictionaryService
-
setDataDictionaryService
Deprecated.- Parameters:
dataDictionaryService- the dataDictionaryService to set
-