org.kuali.rice.krad.web.bind
Class UifViewBeanWrapper

java.lang.Object
  extended by org.springframework.beans.PropertyEditorRegistrySupport
      extended by org.springframework.beans.AbstractPropertyAccessor
          extended by org.springframework.beans.BeanWrapperImpl
              extended by org.kuali.rice.krad.web.bind.UifViewBeanWrapper
All Implemented Interfaces:
org.springframework.beans.BeanWrapper, org.springframework.beans.ConfigurablePropertyAccessor, org.springframework.beans.PropertyAccessor, org.springframework.beans.PropertyEditorRegistry, org.springframework.beans.TypeConverter

public class UifViewBeanWrapper
extends org.springframework.beans.BeanWrapperImpl

Class is a top level BeanWrapper for a UIF View Model

Registers custom property editors configured on the field associated with the property name for which we are getting or setting a value. In addition determines if the field requires encryption and if so applies the UifEncryptionPropertyEditorWrapper

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

Field Summary
 
Fields inherited from interface org.springframework.beans.PropertyAccessor
NESTED_PROPERTY_SEPARATOR, NESTED_PROPERTY_SEPARATOR_CHAR, PROPERTY_KEY_PREFIX, PROPERTY_KEY_PREFIX_CHAR, PROPERTY_KEY_SUFFIX, PROPERTY_KEY_SUFFIX_CHAR
 
Constructor Summary
UifViewBeanWrapper(ViewModel model)
           
 
Method Summary
protected  PropertyEditor findEditorForPropertyName(String propertyName)
           
protected  org.springframework.beans.BeanWrapperImpl getBeanWrapperForPropertyPath(String propertyPath)
           
 Class<?> getPropertyType(String propertyName)
           
 Object getPropertyValue(String propertyName)
           
protected  void registerEditorFromView(String propertyName)
          Attempts to find a corresponding data field for the given property name in the current view or previous view, then if the field has a property editor configured it is registered with the property editor registry to use for this property
 void setPropertyValue(org.springframework.beans.PropertyValue pv)
           
 void setPropertyValue(String propertyName, Object value)
           
 void setWrappedInstance(Object object)
           
 void setWrappedInstance(Object object, String nestedPath, Object rootObject)
           
 
Methods inherited from class org.springframework.beans.BeanWrapperImpl
convertForProperty, convertIfNecessary, getAutoGrowCollectionLimit, getNestedPath, getPropertyDescriptor, getPropertyDescriptorInternal, getPropertyDescriptors, getPropertyTypeDescriptor, getRootClass, getRootInstance, getSecurityContext, getWrappedClass, getWrappedInstance, isAutoGrowNestedPaths, isReadableProperty, isWritableProperty, newNestedBeanWrapper, setAutoGrowCollectionLimit, setAutoGrowNestedPaths, setIntrospectionClass, setSecurityContext, toString
 
Methods inherited from class org.springframework.beans.AbstractPropertyAccessor
convertIfNecessary, isExtractOldValueForEditor, setExtractOldValueForEditor, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues
 
Methods inherited from class org.springframework.beans.PropertyEditorRegistrySupport
copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getConversionService, getDefaultEditor, guessPropertyTypeFromEditors, hasCustomEditorForElement, isSharedEditor, overrideDefaultEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, registerSharedEditor, setConversionService, useConfigValueEditors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.ConfigurablePropertyAccessor
getConversionService, isExtractOldValueForEditor, setConversionService, setExtractOldValueForEditor
 
Methods inherited from interface org.springframework.beans.PropertyAccessor
setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues
 
Methods inherited from interface org.springframework.beans.PropertyEditorRegistry
findCustomEditor, registerCustomEditor, registerCustomEditor
 
Methods inherited from interface org.springframework.beans.TypeConverter
convertIfNecessary
 

Constructor Detail

UifViewBeanWrapper

public UifViewBeanWrapper(ViewModel model)
Method Detail

registerEditorFromView

protected void registerEditorFromView(String propertyName)
Attempts to find a corresponding data field for the given property name in the current view or previous view, then if the field has a property editor configured it is registered with the property editor registry to use for this property

Parameters:
propertyName - - name of the property to find field and editor for

findEditorForPropertyName

protected PropertyEditor findEditorForPropertyName(String propertyName)

getPropertyType

public Class<?> getPropertyType(String propertyName)
                         throws org.springframework.beans.BeansException
Specified by:
getPropertyType in interface org.springframework.beans.PropertyAccessor
Overrides:
getPropertyType in class org.springframework.beans.BeanWrapperImpl
Throws:
org.springframework.beans.BeansException

getBeanWrapperForPropertyPath

protected org.springframework.beans.BeanWrapperImpl getBeanWrapperForPropertyPath(String propertyPath)
Overrides:
getBeanWrapperForPropertyPath in class org.springframework.beans.BeanWrapperImpl

getPropertyValue

public Object getPropertyValue(String propertyName)
                        throws org.springframework.beans.BeansException
Specified by:
getPropertyValue in interface org.springframework.beans.PropertyAccessor
Overrides:
getPropertyValue in class org.springframework.beans.BeanWrapperImpl
Throws:
org.springframework.beans.BeansException

setPropertyValue

public void setPropertyValue(org.springframework.beans.PropertyValue pv)
                      throws org.springframework.beans.BeansException
Specified by:
setPropertyValue in interface org.springframework.beans.PropertyAccessor
Overrides:
setPropertyValue in class org.springframework.beans.BeanWrapperImpl
Throws:
org.springframework.beans.BeansException

setPropertyValue

public void setPropertyValue(String propertyName,
                             Object value)
                      throws org.springframework.beans.BeansException
Specified by:
setPropertyValue in interface org.springframework.beans.PropertyAccessor
Overrides:
setPropertyValue in class org.springframework.beans.BeanWrapperImpl
Throws:
org.springframework.beans.BeansException

setWrappedInstance

public void setWrappedInstance(Object object,
                               String nestedPath,
                               Object rootObject)
Overrides:
setWrappedInstance in class org.springframework.beans.BeanWrapperImpl

setWrappedInstance

public void setWrappedInstance(Object object)
Overrides:
setWrappedInstance in class org.springframework.beans.BeanWrapperImpl


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