Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.repo.forms.processor
Interface FormProcessor

@org.alfresco.api.AlfrescoPublicApi
public interface FormProcessor
Interface definition of a form processor which is responsible for generating a Form representation of a data source, for example a repository node, a task or an XML schema and for persisting the form data back to the data source.
Author:
Gavin Cornwell

Method Summary
org.alfresco.repo.forms.Form
generate(org.alfresco.repo.forms.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(org.alfresco.repo.forms.Item item)
          Determines whether this form processor is applicable for the supplied item
persist(org.alfresco.repo.forms.Item item, org.alfresco.repo.forms.FormData data)
          Persists the given object representing the form data for an item
Method Detail
isApplicable
boolean isApplicable(org.alfresco.repo.forms.Item item)
Determines whether this form processor is applicable for the supplied item
Parameters:
item - The item the form is being generated for
Returns:
true if the processor is applicable

isActive
boolean isActive()
Determines whether this form processor is active
Returns:
true if the processor is active

generate
org.alfresco.repo.forms.Form generate(org.alfresco.repo.forms.Item item,
                                      List<String> fields,
                                      List<String> forcedFields,
                                      Map<String,Object> context)
Returns a Form representation for an item
Parameters:
item - The item to generate a Form object for
fields - Restricted list of fields to include, null indicates all possible fields for the item should be included
forcedFields - 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 this
context - Map representing optional context that can be used during retrieval of the form
Returns:
The Form representation

persist
Object persist(org.alfresco.repo.forms.Item item,
               org.alfresco.repo.forms.FormData data)
Persists the given object representing the form data for an item
Parameters:
item - The item to generate a Form object for
data - An object representing the data of the form
Returns:
The object persisted

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.