org.springframework.binding.form.support
Class UserMetadata
java.lang.Object
org.springframework.binding.form.support.UserMetadata
public abstract class UserMetadata
- extends Object
Class which holds keys for user metadata used in spring rich
- Author:
- Mathias Broekelmann
Field Summary |
static String |
PROTECTED_FIELD
The name of a user metadata value which is used to determine if a value for a form field is protected and should
be hidden on logging or error messages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROTECTED_FIELD
public static final String PROTECTED_FIELD
- The name of a user metadata value which is used to determine if a value for a form field is protected and should
be hidden on logging or error messages.
The value must be an instance of Boolean
, if true any value of the field will not be displayed either
through logging or showing value errors
- See Also:
- Constant Field Values
UserMetadata
public UserMetadata()
isFieldProtected
public static boolean isFieldProtected(FormModel formModel,
String fieldName)
- tests if the usermetadata of the field has a boolean value true for the key "org.springframework.binding.support.ProtectedField"
- Parameters:
fieldName
- the fieldname
- Returns:
- true if the field is protected, otherwise false
setFieldProtected
public static void setFieldProtected(FormModel formModel,
String fieldName,
boolean protectedField)
- defines the protectable state for a field
- Parameters:
formModel
- the formmodelfieldName
- the field to protectprotectedField
- if true the field will be defined as protectable otherwise false
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.