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
FormSource
init
in interface FormSource
context
- The WebTML target context of the WebTML formde.innovationgate.webgate.api.WGException
public java.util.List<?> getFieldValue(java.lang.String fieldname, boolean meta, java.lang.Object defaultvalue, boolean useRelation, TMLFormInfo formInfo) throws de.innovationgate.webgate.api.WGException
FormSource
getFieldValue
in interface FormSource
fieldname
- 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.WGException
public boolean storeForm(TMLForm form, boolean includeFiles) throws de.innovationgate.webgate.api.WGException
FormSource
storeForm
in interface FormSource
form
- The form whose data to storeincludeFiles
- Whether files attached to the form should also be stored, if even possiblede.innovationgate.webgate.api.WGException