public class FormServiceImpl extends Object implements FormService
Constructor and Description |
---|
FormServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Form |
getForm(Item item)
Returns a form representation of the given item,
all known fields for the item are included.
|
Form |
getForm(Item item,
List<String> fields)
Returns a form representation of the given item consisting
only of the given fields.
|
Form |
getForm(Item item,
List<String> fields,
List<String> forcedFields)
Returns a form representation of the given item consisting
only of the given fields.
|
Form |
getForm(Item item,
List<String> fields,
List<String> forcedFields,
Map<String,Object> context)
Returns a form representation of the given item consisting
only of the given fields.
|
Form |
getForm(Item item,
List<String> fields,
Map<String,Object> context)
Returns a form representation of the given item consisting
only of the given fields.
|
Form |
getForm(Item item,
Map<String,Object> context)
Returns a form representation of the given item,
all known fields for the item are included.
|
Object |
saveForm(Item item,
FormData data)
Persists the given form representation for the given item.
|
void |
setProcessorRegistry(FormProcessorRegistry registry)
Sets the FormProcessorRegistry
|
public void setProcessorRegistry(FormProcessorRegistry registry)
registry
- The FormProcessorRegistry instance to usepublic Form getForm(Item item)
FormService
getForm
in interface FormService
item
- The item to get a form forpublic Form getForm(Item item, Map<String,Object> context)
FormService
getForm
in interface FormService
item
- The item to get a form forcontext
- Map representing optional context that
can be used during retrieval of the formpublic Form getForm(Item item, List<String> fields)
FormService
getForm
in interface FormService
item
- The item to get a form forfields
- Restricted list of fields to include, null
indicates all possible fields for the item
should be includedpublic Form getForm(Item item, List<String> fields, Map<String,Object> context)
FormService
getForm
in interface FormService
item
- The item to get a form forfields
- Restricted list of fields to include, null
indicates all possible fields for the item
should be includedcontext
- Map representing optional context that
can be used during retrieval of the formpublic Form getForm(Item item, List<String> fields, List<String> forcedFields)
FormService
getForm
in interface FormService
item
- The item to get a form 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 thispublic Form getForm(Item item, List<String> fields, List<String> forcedFields, Map<String,Object> context)
FormService
getForm
in interface FormService
item
- The item to get a form 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 formpublic Object saveForm(Item item, FormData data)
FormService
saveForm
in interface FormService
item
- The item to persist the form fordata
- An object representing the form data to persistCopyright © 2005–2017 Alfresco Software. All rights reserved.