Package org.alfresco.repo.forms
Class FormServiceImpl
java.lang.Object
org.alfresco.repo.forms.FormServiceImpl
- All Implemented Interfaces:
FormService
Form Service Implementation.
- Author:
- Gavin Cornwell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a form representation of the given item, all known fields for the item are included.Returns a form representation of the given item consisting only of the given fields.Returns a form representation of the given item consisting only of the given fields.Returns a form representation of the given item consisting only of the given fields.Returns a form representation of the given item consisting only of the given fields.Returns a form representation of the given item, all known fields for the item are included.Persists the given form representation for the given item.voidsetProcessorRegistry(FormProcessorRegistry registry) Sets the FormProcessorRegistry
-
Constructor Details
-
FormServiceImpl
public FormServiceImpl()
-
-
Method Details
-
setProcessorRegistry
Sets the FormProcessorRegistry- Parameters:
registry- The FormProcessorRegistry instance to use
-
getForm
Description copied from interface:FormServiceReturns a form representation of the given item, all known fields for the item are included.- Specified by:
getFormin interfaceFormService- Parameters:
item- The item to get a form for- Returns:
- The Form representation
-
getForm
Description copied from interface:FormServiceReturns a form representation of the given item, all known fields for the item are included.- Specified by:
getFormin interfaceFormService- Parameters:
item- The item to get a form forcontext- Map representing optional context that can be used during retrieval of the form- Returns:
- The Form representation
-
getForm
Description copied from interface:FormServiceReturns a form representation of the given item consisting only of the given fields.- Specified by:
getFormin interfaceFormService- Parameters:
item- The item to get a form forfields- Restricted list of fields to include, null indicates all possible fields for the item should be included- Returns:
- The Form representation
-
getForm
Description copied from interface:FormServiceReturns a form representation of the given item consisting only of the given fields.- Specified by:
getFormin interfaceFormService- Parameters:
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 form- Returns:
- The Form representation
-
getForm
Description copied from interface:FormServiceReturns a form representation of the given item consisting only of the given fields.- Specified by:
getFormin interfaceFormService- Parameters:
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 this- Returns:
- The Form representation
-
getForm
public Form getForm(Item item, List<String> fields, List<String> forcedFields, Map<String, Object> context) Description copied from interface:FormServiceReturns a form representation of the given item consisting only of the given fields.- Specified by:
getFormin interfaceFormService- Parameters:
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 form- Returns:
- The Form representation
-
saveForm
Description copied from interface:FormServicePersists the given form representation for the given item.- Specified by:
saveFormin interfaceFormService- Parameters:
item- The item to persist the form fordata- An object representing the form data to persist- Returns:
- The object persisted
-