@ApplicationScoped public class FormProcessorImpl extends Object implements FormProcessor, Serializable
ATTR_INTERPRETER, CUSTOM_NAMESPACE_SEPARATOR, DEFAULT_NAMESPACE, FORM_MODE, MODIFIED_FIELD_NAMES, NAMESPACE_SEPARATOR| Constructor and Description |
|---|
FormProcessorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(FormRenderContext context) |
void |
clear(Form form,
String namespace) |
void |
clear(String ctxUID) |
void |
clearField(Form form,
String namespace,
String fieldName) |
void |
clearFieldErrors(Form form,
String namespace) |
protected FormStatus |
createContextFormStatus(FormRenderContext context) |
protected FormStatus |
createFormStatus(Form form,
String namespace,
Map currentValues,
Map<String,Object> loadedObjects) |
protected void |
destroyFormStatus(Form form,
String namespace) |
protected boolean |
existsFormStatus(Form form,
String namespace) |
protected void |
fillObjectValues(Map obj,
Map values,
Form form)
Copy to obj values read from status map values
|
Map |
filterMapRepresentationToPersist(Map inputValues) |
void |
forceWrongField(Form form,
String namespace,
String fieldName) |
Object |
getAttribute(Form form,
String namespace,
String attributeName) |
protected Object |
getBindedValue(Field field,
DataHolder holder,
String bindingExpression,
Map<String,Object> bindingData,
Map loadedObjects,
String namespace) |
protected FormStatus |
getContextFormStatus(FormRenderContext context) |
protected Map |
getFilteredMapRepresentationToPersist(Form form,
String namespace) |
protected FormStatus |
getFormStatus(Form form,
String namespace) |
protected FormStatus |
getFormStatus(Form form,
String namespace,
Map<String,Object> currentValues,
Map<String,Object> loadedObjects) |
Map |
getMapRepresentationToPersist(Form form,
String namespace) |
protected String |
getPrefix(Form form,
String namespace) |
protected Object |
getUnbindedFieldValue(String bindingExpression,
Map<String,Object> bindingData) |
void |
modify(Form form,
String namespace,
String fieldName,
Object value) |
void |
persist(FormRenderContext context) |
void |
persist(String ctxUid) |
protected Object |
persistField(Field field,
Map<String,Object> mapToPersist,
DataHolder holder,
String namespace) |
Object |
persistFormHolder(Form form,
String namespace,
Map<String,Object> mapToPersist,
DataHolder holder,
Object loadedObject) |
protected void |
propagateChangesToParentFormStatuses(FormStatus formStatus,
String fieldName,
Object value) |
FormStatusData |
read(Form form,
String namespace) |
FormStatusData |
read(Form form,
String namespace,
Map formValues) |
FormStatusData |
read(Form form,
String namespace,
Map<String,Object> formValues,
Map<String,Object> loadedObjects) |
FormStatusData |
read(String ctxUid) |
Map |
readValuesToLoad(Form form,
Map inputData,
Map outputData,
Map loadedObjects,
String namespace) |
void |
setAttribute(Form form,
String namespace,
String attributeName,
Object attributeValue) |
protected void |
setDefaultValues(Form form,
String namespace,
Map currentValues) |
protected void |
setFieldValue(Field field,
FormStatus formStatus,
String inputsPrefix,
Map parameterMap,
Map filesMap,
boolean incremental) |
void |
setFieldValue(Field field,
String namespace,
Map parametersMap,
Map filesMap,
boolean incremental) |
void |
setValues(Form form,
String namespace,
Map parameterMap,
Map filesMap) |
void |
setValues(Form form,
String namespace,
Map parameterMap,
Map filesMap,
boolean incremental) |
protected FormStatus getContextFormStatus(FormRenderContext context)
protected FormStatus getFormStatus(Form form, String namespace)
protected FormStatus getFormStatus(Form form, String namespace, Map<String,Object> currentValues, Map<String,Object> loadedObjects)
protected FormStatus createFormStatus(Form form, String namespace, Map currentValues, Map<String,Object> loadedObjects)
public void setValues(Form form, String namespace, Map parameterMap, Map filesMap)
setValues in interface FormProcessorpublic void setValues(Form form, String namespace, Map parameterMap, Map filesMap, boolean incremental)
setValues in interface FormProcessorpublic void modify(Form form, String namespace, String fieldName, Object value)
modify in interface FormProcessorpublic void setAttribute(Form form, String namespace, String attributeName, Object attributeValue)
setAttribute in interface FormProcessorpublic Object getAttribute(Form form, String namespace, String attributeName)
getAttribute in interface FormProcessorpublic void setFieldValue(Field field, String namespace, Map parametersMap, Map filesMap, boolean incremental)
setFieldValue in interface FormProcessorprotected void setFieldValue(Field field, FormStatus formStatus, String inputsPrefix, Map parameterMap, Map filesMap, boolean incremental)
protected void propagateChangesToParentFormStatuses(FormStatus formStatus, String fieldName, Object value)
public FormStatusData read(String ctxUid)
read in interface FormProcessorprotected FormStatus createContextFormStatus(FormRenderContext context) throws Exception
Exceptionpublic Map readValuesToLoad(Form form, Map inputData, Map outputData, Map loadedObjects, String namespace)
readValuesToLoad in interface FormProcessorprotected Object getUnbindedFieldValue(String bindingExpression, Map<String,Object> bindingData)
protected Object getBindedValue(Field field, DataHolder holder, String bindingExpression, Map<String,Object> bindingData, Map loadedObjects, String namespace)
public FormStatusData read(Form form, String namespace, Map formValues)
read in interface FormProcessorpublic FormStatusData read(Form form, String namespace, Map<String,Object> formValues, Map<String,Object> loadedObjects)
read in interface FormProcessorpublic FormStatusData read(Form form, String namespace)
read in interface FormProcessorpublic void persist(String ctxUid) throws Exception
persist in interface FormProcessorExceptionpublic void persist(FormRenderContext context) throws Exception
persist in interface FormProcessorExceptionpublic Object persistFormHolder(Form form, String namespace, Map<String,Object> mapToPersist, DataHolder holder, Object loadedObject) throws Exception
persistFormHolder in interface FormProcessorExceptionprotected Object persistField(Field field, Map<String,Object> mapToPersist, DataHolder holder, String namespace) throws Exception
Exceptionpublic Map getMapRepresentationToPersist(Form form, String namespace) throws Exception
getMapRepresentationToPersist in interface FormProcessorExceptionprotected Map getFilteredMapRepresentationToPersist(Form form, String namespace) throws Exception
Exceptionpublic Map filterMapRepresentationToPersist(Map inputValues) throws Exception
Exceptionprotected void fillObjectValues(Map obj, Map values, Form form) throws Exception
obj - values - Exceptionpublic void clear(FormRenderContext context)
clear in interface FormProcessorpublic void clear(String ctxUID)
clear in interface FormProcessorpublic void clear(Form form, String namespace)
clear in interface FormProcessorpublic void clearField(Form form, String namespace, String fieldName)
clearField in interface FormProcessorpublic void clearFieldErrors(Form form, String namespace)
clearFieldErrors in interface FormProcessorpublic void forceWrongField(Form form, String namespace, String fieldName)
forceWrongField in interface FormProcessorCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.