public class EmptyFormSource extends java.lang.Object implements FormSource
| Constructor and Description |
|---|
EmptyFormSource() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<?> |
getFieldValue(java.lang.String fieldname,
boolean meta,
java.lang.Object defaultvalue,
boolean useRelation,
TMLFormInfo formInfo)
Retrieve a field value from the form source for a form field
|
void |
init(TMLContext context)
Init method called before the source is used.
|
boolean |
storeForm(TMLForm form,
boolean includeFiles)
Store the data of the given form to the form source backend.
|
public void init(TMLContext context) throws de.innovationgate.webgate.api.WGException
FormSourceinit in interface FormSourcecontext - The WebTML target context of the WebTML formde.innovationgate.webgate.api.WGExceptionpublic java.util.List<?> getFieldValue(java.lang.String fieldname,
boolean meta,
java.lang.Object defaultvalue,
boolean useRelation,
TMLFormInfo formInfo)
throws de.innovationgate.webgate.api.WGException
FormSourcegetFieldValue in interface FormSourcefieldname - The name of the fieldmeta - Whether the field is regarded a metadata fielddefaultvalue - The default value to return if the field does not existuseRelation - Whether the field is regarded to originate from a content relationformInfo - The form info of the retrieving form with eventually necessary status informationde.innovationgate.webgate.api.WGExceptionpublic boolean storeForm(TMLForm form, boolean includeFiles) throws de.innovationgate.webgate.api.WGException
FormSourcestoreForm in interface FormSourceform - The form whose data to storeincludeFiles - Whether files attached to the form should also be stored, if even possiblede.innovationgate.webgate.api.WGException