Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.forms.validation
Class FormManager

java.lang.Object
  extended by org.nuxeo.ecm.webengine.forms.validation.FormManager
All Implemented Interfaces:
InvocationHandler, Form

public class FormManager
extends Object
implements InvocationHandler, Form

Author:
Bogdan Stefanescu

Constructor Summary
FormManager(FormDescriptor fd)
           
 
Method Summary
 Map<String,String[]> fields()
          Get the form fields as submitted by the client.
 void flushCache()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 void load(FormDataProvider data, Form proxy)
          Before using the form, implementors must ensure this method is called to initialize form data, otherwise NPE will be thrown.
static
<T> T
newProxy(Class<T> type)
           
 Collection<String> unknownKeys()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormManager

public FormManager(FormDescriptor fd)
Method Detail

unknownKeys

public Collection<String> unknownKeys()
Specified by:
unknownKeys in interface Form

fields

public Map<String,String[]> fields()
Description copied from interface: Form
Get the form fields as submitted by the client. The fields are present even if the form is not valid

Specified by:
fields in interface Form
Returns:
the form fields or an empty map if none

load

public void load(FormDataProvider data,
                 Form proxy)
          throws ValidationException
Description copied from interface: Form
Before using the form, implementors must ensure this method is called to initialize form data, otherwise NPE will be thrown. This method must never be called by clients. It is internal to validation implementation and should be called only by implementors when creating a form.

Specified by:
load in interface Form
Parameters:
data - the form data source
proxy - the proxy to the user form
Throws:
ValidationException

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

newProxy

public static <T> T newProxy(Class<T> type)

flushCache

public void flushCache()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.