interface PropertiesStrategy
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract java.util.Map<java.lang.Class<?>, java.util.Map<java.lang.String, java.lang.String>> |
findClassMappings() |
|
abstract java.lang.Object |
getProperty(java.lang.Object instance, java.lang.String paramName)Gets the property from the instance. paramName is a hard-coded 'params' name (e.g. |
|
abstract java.lang.String |
paramNameToPropertyName(java.lang.String paramName, java.lang.String controllerName)Lookup the property name based on the 'params' name, e.g. the overridden name for 'username'. |
|
abstract java.lang.Object |
setProperties(java.util.Map data, java.lang.Object instanceOrClass, TransactionStatus transactionStatus)Sets the properties in the instance (creating it first if instanceOrClass is a Class) from the provided map. |
Gets the property from the instance. paramName is a hard-coded 'params' name (e.g. 'username') and the actual property name is looked up from the security config in case it was overridden.
instance - the instanceparamName - the 'params' nameLookup the property name based on the 'params' name, e.g. the overridden name for 'username'. The controller name is used since there's no instance to know its class.
paramName - the 'params' namecontrollerName - the taglib 'controllerName' propertySets the properties in the instance (creating it first if instanceOrClass is a Class) from the provided map. The keys are hard-coded 'params' names (e.g. 'username') and the actual property names are looked up from the security config in case they've been overridden.
data - the datainstanceOrClass - an instance or Classthe - current TransactionStatus if in a transaction, to pass to the error strategy