public static void setFieldProtected ( FormModel formModel , String fieldName , boolean protectedField ) { FieldMetadata metaData = formModel . getFieldMetadata ( fieldName ) ; metaData . getAllUserMetadata ( ) . put ( PROTECTED_FIELD , Boolean . valueOf ( protectedField ) ) ; }
defines the protectable state for a field