org.kuali.rice.kns.util
Class ActionFormUtilMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.kuali.rice.kns.util.ActionFormUtilMap
All Implemented Interfaces:
Serializable, Cloneable, Map

public class ActionFormUtilMap
extends HashMap

Utility map for the action form to provide a way for calling functions through jstl.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ActionFormUtilMap()
           
 
Method Summary
 String encryptValue(Object value)
          Encrypts a value passed from the ui.
 Object get(Object key)
          This method parses from the key the actual method to run.
 Object getOptionsMap(Object key)
           
 Object getOptionsMap(Object key, Object boClass, Object keyAttribute, Object labelAttribute, Object includeKeyInLabel)
           
 Object getOptionsMap(Object key, Object boClass, Object keyAttribute, Object labelAttribute, Object includeBlankRow, Object includeKeyInLabel)
          This method will take in a key parameter (values finder class name - in this case the generic PersistableObjectValuesFinder) along with the related parameters required by this ValuesFinder, and attempt to create a KeyValueFinder instance, then call the finder to return a list of KeyValue pairs.
 void setCacheValueFinderResults(boolean cacheValueFinderResults)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ActionFormUtilMap

public ActionFormUtilMap()
Method Detail

get

public Object get(Object key)
This method parses from the key the actual method to run.

Specified by:
get in interface Map
Overrides:
get in class HashMap
See Also:
Map.get(java.lang.Object)

getOptionsMap

public Object getOptionsMap(Object key)

getOptionsMap

public Object getOptionsMap(Object key,
                            Object boClass,
                            Object keyAttribute,
                            Object labelAttribute,
                            Object includeKeyInLabel)

getOptionsMap

public Object getOptionsMap(Object key,
                            Object boClass,
                            Object keyAttribute,
                            Object labelAttribute,
                            Object includeBlankRow,
                            Object includeKeyInLabel)
This method will take in a key parameter (values finder class name - in this case the generic PersistableObjectValuesFinder) along with the related parameters required by this ValuesFinder, and attempt to create a KeyValueFinder instance, then call the finder to return a list of KeyValue pairs. This is used by the htmlControlAttribute.tag to render select options from a given finder class specified in the data dictionary.

Parameters:
key - values finder class name
boClass - BO class name
keyAttribute - name of BO attribute for key
labelAttribute - name of BO attribute for label
includeKeyInLabel - whether to include the key in the label or not
Returns:
list of KeyValue pairs

encryptValue

public String encryptValue(Object value)
Encrypts a value passed from the ui.

Parameters:
value - - clear text
Returns:
String - encrypted text

setCacheValueFinderResults

public void setCacheValueFinderResults(boolean cacheValueFinderResults)


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