@AlfrescoPublicApi
public interface FormProcessor
Modifier and Type | Method and Description |
---|---|
Form |
generate(Item item,
List<String> fields,
List<String> forcedFields,
Map<String,Object> context)
Returns a Form representation for an item
|
boolean |
isActive()
Determines whether this form processor is active
|
boolean |
isApplicable(Item item)
Determines whether this form processor is applicable for
the supplied item
|
Object |
persist(Item item,
FormData data)
Persists the given object representing the form data
for an item
|
boolean isApplicable(Item item)
item
- The item the form is being generated forboolean isActive()
Form generate(Item item, List<String> fields, List<String> forcedFields, Map<String,Object> context)
item
- The item to generate a Form object forfields
- Restricted list of fields to include, null
indicates all possible fields for the item
should be includedforcedFields
- List of field names from 'fields' list
that should be forcibly included, it is
up to the form processor implementation
to determine how to enforce thiscontext
- Map representing optional context that
can be used during retrieval of the formCopyright © 2005–2017 Alfresco Software. All rights reserved.