public class FormData extends Object implements FormInstance
Modifier and Type | Field and Description |
---|---|
static String |
DOCTYPE |
static String |
MAJOR |
static String |
MINOR |
static String |
PROPERTY |
static String |
TITLE |
static String |
VERSIONING |
Constructor and Description |
---|
FormData(javax.servlet.http.HttpServletRequest request) |
public static final String PROPERTY
public static final String TITLE
public static final String DOCTYPE
public static final String VERSIONING
public static final String MAJOR
public static final String MINOR
public boolean isMultipartContent()
public Map<String,String[]> getFormFields()
getFormFields
in interface FormDataProvider
getFormFields
in interface FormInstance
public Map<String,List<org.apache.commons.fileupload.FileItem>> getMultiPartItems()
public Collection<String> getKeys()
getKeys
in interface FormDataProvider
public Blob getBlob(String key)
getBlob
in interface FormInstance
public Blob[] getBlobs(String key)
getBlobs
in interface FormInstance
public Map<String,Blob[]> getBlobFields()
getBlobFields
in interface FormInstance
public Blob getFirstBlob()
public final org.apache.commons.fileupload.FileItem getFileItem(String key)
public Object[] getMultiPartFormItems(String key)
key
- public Object[] getMultiPartFormItems(List<org.apache.commons.fileupload.FileItem> list)
public final Object getFileItemValue(org.apache.commons.fileupload.FileItem item)
public String getString(String key)
getString
in interface FormDataProvider
public String[] getList(String key)
getList
in interface FormDataProvider
public Object[] get(String key)
get
in interface FormInstance
public void fillDocument(DocumentModel doc)
fillDocument
in interface FormInstance
public void fillDocumentFromForm(DocumentModel doc) throws PropertyException
PropertyException
public void fillDocumentFromMultiPartForm(DocumentModel doc) throws PropertyException
PropertyException
public VersioningOption getVersioningOption()
public String getDocumentType()
public String getDocumentTitle()
public <T extends Form> T validate(Class<T> type) throws ValidationException
ValidationException
Copyright © 2015 Nuxeo SA. All rights reserved.