Package org.nuxeo.ecm.webengine.forms
Class FormData
java.lang.Object
org.nuxeo.ecm.webengine.forms.FormData
- All Implemented Interfaces:
FormDataProvider
,FormInstance
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.commons.fileupload.RequestContext
static final String
protected static org.apache.commons.fileupload.servlet.ServletFileUpload
protected boolean
static final String
static final String
static final String
protected final javax.servlet.http.HttpServletRequest
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
Object[]
protected Blob
getBlob
(org.apache.commons.fileupload.FileItem item) XXX TODO implement itBlob[]
final org.apache.commons.fileupload.FileItem
getFileItem
(String key) final List<org.apache.commons.fileupload.FileItem>
getFileItems
(String key) final Object
getFileItemValue
(org.apache.commons.fileupload.FileItem item) String[]
getFormProperty
(String key) protected boolean
getKeys()
String[]
Object[]
Object[]
getMultiPartFormItems
(List<org.apache.commons.fileupload.FileItem> list) String[]
protected String
getString
(org.apache.commons.fileupload.FileItem item) boolean
<T extends Form>
T
-
Field Details
-
PROPERTY
- See Also:
-
TITLE
- See Also:
-
DOCTYPE
- See Also:
-
VERSIONING
- See Also:
-
MAJOR
- See Also:
-
MINOR
- See Also:
-
fu
protected static org.apache.commons.fileupload.servlet.ServletFileUpload fu -
request
protected final javax.servlet.http.HttpServletRequest request -
isMultipart
protected boolean isMultipart -
ctx
protected org.apache.commons.fileupload.RequestContext ctx -
items
-
-
Constructor Details
-
FormData
public FormData(javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
getString
-
getIsMultipartContent
protected boolean getIsMultipartContent() -
isMultipartContent
public boolean isMultipartContent() -
getFormFields
- Specified by:
getFormFields
in interfaceFormDataProvider
- Specified by:
getFormFields
in interfaceFormInstance
-
getMultiPartFormFields
-
getMultiPartItems
-
getKeys
- Specified by:
getKeys
in interfaceFormDataProvider
-
getBlob
- Specified by:
getBlob
in interfaceFormInstance
-
getBlobs
- Specified by:
getBlobs
in interfaceFormInstance
-
getBlobFields
XXX TODO implement it- Specified by:
getBlobFields
in interfaceFormInstance
-
getFirstBlob
-
getBlob
-
getFileItem
-
getFileItems
-
getMultiPartFormProperty
-
getMultiPartFormListProperty
-
getMultiPartFormItems
- Returns:
- an array of strings or an array of blobs
-
getMultiPartFormItems
-
getFileItemValue
-
getFormProperty
-
getFormListProperty
-
getString
- Specified by:
getString
in interfaceFormDataProvider
-
getList
- Specified by:
getList
in interfaceFormDataProvider
-
get
- Specified by:
get
in interfaceFormInstance
-
fillDocument
- Specified by:
fillDocument
in interfaceFormInstance
-
fillDocumentFromForm
- Throws:
PropertyException
-
fillDocumentFromMultiPartForm
- Throws:
PropertyException
-
getVersioningOption
-
getDocumentType
-
getDocumentTitle
-
validate
- Throws:
ValidationException
-