Package org.kuali.rice.krad.service.impl
Class DataDictionaryRemoteFieldServiceImpl
java.lang.Object
org.kuali.rice.krad.service.impl.DataDictionaryRemoteFieldServiceImpl
- All Implemented Interfaces:
DataDictionaryRemoteFieldService
public class DataDictionaryRemoteFieldServiceImpl
extends Object
implements DataDictionaryRemoteFieldService
Implementation of the
DataDictionaryRemoteFieldService service- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kuali.rice.core.api.uif.RemotableAttributeFieldbuildRemotableFieldFromAttributeDefinition(String componentClassName, String attributeName) protected org.kuali.rice.core.api.uif.RemotableAbstractControl.BuilderCreates aRemotableAbstractControlinstance based on the control definition within the given attribute definitionprotected org.kuali.rice.core.api.uif.RemotableQuickFinder.BuildercreateQuickFinder(Class<?> componentClass, String attributeName) Builds aRemotableQuickFinderinstance for the given attribute based on determined relationshipsprotected DataDictionaryServiceprotected org.kuali.rice.core.api.config.property.ConfigurationServiceprotected LegacyDataAdaptergetValues(AttributeDefinition attr) Will first try to retrieve options configured on the control.
-
Constructor Details
-
DataDictionaryRemoteFieldServiceImpl
public DataDictionaryRemoteFieldServiceImpl()
-
-
Method Details
-
buildRemotableFieldFromAttributeDefinition
public org.kuali.rice.core.api.uif.RemotableAttributeField buildRemotableFieldFromAttributeDefinition(String componentClassName, String attributeName) - Specified by:
buildRemotableFieldFromAttributeDefinitionin interfaceDataDictionaryRemoteFieldService
-
createControl
protected org.kuali.rice.core.api.uif.RemotableAbstractControl.Builder createControl(AttributeDefinition attr) Creates aRemotableAbstractControlinstance based on the control definition within the given attribute definition- Parameters:
attr- - attribute definition instance to pull control from- Returns:
- RemotableAbstractControl instance or null if one could not be built
-
getValues
Will first try to retrieve options configured on the control. If that doesn't return any values then will try to use the optionfinder on the AttributeDefinition.- Parameters:
attr- - AttributeDefinition- Returns:
- Map of key value pairs
-
createQuickFinder
protected org.kuali.rice.core.api.uif.RemotableQuickFinder.Builder createQuickFinder(Class<?> componentClass, String attributeName) Builds aRemotableQuickFinderinstance for the given attribute based on determined relationshipsUses the
DataObjectMetaDataServiceto find relationships the given attribute participates in within the given class. If a relationship is not found, the title attribute is also checked to determine if a lookup should be rendered back to the component class itself. If a relationship suitable for lookup is found, the associated field conversions and lookup parameters are built- Parameters:
componentClass- - class that attribute belongs to and should be checked for relationshipsattributeName- - name of the attribute to determine quickfinder for- Returns:
- RemotableQuickFinder.Builder instance for the configured lookup, or null if one could not be found
-
getDataDictionaryService
-
getKualiConfigurationService
protected org.kuali.rice.core.api.config.property.ConfigurationService getKualiConfigurationService() -
getLegacyDataAdapter
-