|
jbpm-form-modeler-api 1.0-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormProcessor
A FormProcessor is a class that handles a form submission.
| Field Summary | |
|---|---|
static String |
ATTR_INTERPRETER
|
static String |
CUSTOM_NAMESPACE_SEPARATOR
|
static String |
DEFAULT_NAMESPACE
|
static String |
FORM_MODE
|
static String |
MODIFIED_FIELD_NAMES
|
static String |
NAMESPACE_SEPARATOR
|
| Method Summary | |
|---|---|
void |
clear(Long formId,
String namespace)
Clears status data for given form id. |
void |
clearField(Long formId,
String namespace,
String fieldName)
Clear a field value. |
void |
clearFieldErrors(Form form,
String namespace)
Remove field errors that might be in this formStatus. |
void |
flushPendingCalculations(Form form,
String namespace)
Calculates all formulas for given form. |
void |
forceWrongField(Form form,
String namespace,
String fieldName)
Mark a field as wrong |
Object |
getAttribute(Form form,
String namespace,
String attributeName)
Gets an attribute for given form status |
Object |
getLoadedObject(Long formId,
String namespace)
If an object was loaded for given form id, return the loaded object |
Map |
getMapRepresentationToPersist(Form form,
String namespace)
Returns the Map to persis based on the data stored on the data stored on a FormStatus |
void |
load(Long formId,
String namespace,
Long objIdentifier,
String itemClassName)
Loads into form status values read from a persistent object. |
void |
load(Long formId,
String namespace,
Long objIdentifier,
String itemClassName,
String formMode)
Loads into form status values read from a persistent object. |
void |
load(Long formId,
String namespace,
Object loadObject)
Loads into form status values read from given object. |
void |
load(Long formId,
String namespace,
Object loadObject,
String formMode)
Loads into form status values read from given object. |
void |
modify(Form form,
String namespace,
String fieldName,
Object value)
Directly modify the status value for a form field. |
FormStatusData |
read(Long formId,
String namespace)
Read status for given form id. |
FormStatusData |
read(Long formId,
String namespace,
Map currentValues)
Read status for given form id. |
void |
setAttribute(Form form,
String namespace,
String attributeName,
Object attributeValue)
Sets an attribute for given form status |
void |
setValues(Form form,
String namespace,
Map parameterMap,
Map filesMap)
Get submit values from a request parameter map and a files map, and store it in a form status. |
void |
setValues(Form form,
String namespace,
Map parameterMap,
Map filesMap,
boolean incremental)
Get submit values from a request parameter map and a files map, and store it in a form status. |
| Field Detail |
|---|
static final String NAMESPACE_SEPARATOR
static final String CUSTOM_NAMESPACE_SEPARATOR
static final String DEFAULT_NAMESPACE
static final String MODIFIED_FIELD_NAMES
static final String FORM_MODE
static final String ATTR_INTERPRETER
| Method Detail |
|---|
void setValues(Form form,
String namespace,
Map parameterMap,
Map filesMap)
form - Formulary to processparameterMap - Parameters map, as extracted from a request.filesMap - files map, where a parameter name points to a filenamespace - Form namespace
void setValues(Form form,
String namespace,
Map parameterMap,
Map filesMap,
boolean incremental)
form - Formulary to processparameterMap - Parameters map, as extracted from a request.filesMap - files map, where a parameter name points to a fileincremental - Determines if form status should be cleared before setting the parameter valuesnamespace - Form namespace
void modify(Form form,
String namespace,
String fieldName,
Object value)
form - Formulary to modifynamespace - Form namespacefieldName - Field name to modifyvalue - new value to set for this field.
void setAttribute(Form form,
String namespace,
String attributeName,
Object attributeValue)
form - Formulary to processnamespace - Form namespaceattributeName - Attribute nameattributeValue - Attribute value
Object getAttribute(Form form,
String namespace,
String attributeName)
form - Formulary to processnamespace - Form namespaceattributeName - Attribute name
FormStatusData read(Long formId,
String namespace)
formId - Formulary id to readnamespace - Form namespace
FormStatusData read(Long formId,
String namespace,
Map currentValues)
formId - Formulary id to readnamespace - Form namespacecurrentValues - Values to load into the status
void flushPendingCalculations(Form form,
String namespace)
form - Formulary to storenamespace - Form namespace
Map getMapRepresentationToPersist(Form form,
String namespace)
throws Exception
form - The form that corresponds the FormStatusnamespace - The namespace that identifies the FormStatus
Exception - in case of error building the Map
void load(Long formId,
String namespace,
Long objIdentifier,
String itemClassName)
throws Exception
formId - Form id to fill inobjIdentifier - object identifier to readitemClassName - item class name to readnamespace - Form namespace
Exception - in case of error reading.
void load(Long formId,
String namespace,
Long objIdentifier,
String itemClassName,
String formMode)
throws Exception
formId - Form id to fill inobjIdentifier - object identifier to readitemClassName - item class name to readnamespace - Form namespaceformMode - Form mode for the form that's loading the status
Exception - in case of error reading.
void load(Long formId,
String namespace,
Object loadObject)
throws Exception
formId - Form id to fill inloadObject - Object to loadnamespace - Form namespace
Exception
void load(Long formId,
String namespace,
Object loadObject,
String formMode)
throws Exception
formId - Form id to fill inloadObject - Object to loadformMode - Form mode for the form that's loading the statusnamespace - Form namespace
Exception
Object getLoadedObject(Long formId,
String namespace)
throws Exception
formId - form id to read.namespace - Form namespace
Exception - in case of error reading persisted object
void clear(Long formId,
String namespace)
formId - Formulary id to clearnamespace - Form namespace
void clearField(Long formId,
String namespace,
String fieldName)
formId - Formulary id to processnamespace - Form namespacefieldName - Field name to clear
void clearFieldErrors(Form form,
String namespace)
form - Form to clearnamespace - Namespace to clear
void forceWrongField(Form form,
String namespace,
String fieldName)
form - form to modifynamespace - namespacefieldName - field name to mark as wrong
|
jbpm-form-modeler-api 1.0-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||