public class ScriptFormService extends BaseScopableProcessorExtension
Constructor and Description |
---|
ScriptFormService() |
Modifier and Type | Method and Description |
---|---|
ScriptForm |
getForm(String itemKind,
String itemId)
Returns a form representation of the given item,
all known fields for the item are included.
|
ScriptForm |
getForm(String itemKind,
String itemId,
String[] fields)
Returns a form representation of the given item consisting
only of the given fields.
|
ScriptForm |
getForm(String itemKind,
String itemId,
String[] fields,
String[] forcedFields)
Returns a form representation of the given item consisting
only of the given fields.
|
Object |
saveForm(String itemKind,
String itemId,
Object postData)
Persists the given data object for the item provided
|
void |
setFormService(FormService formService)
Set the form service
|
getScope, setScope
getExtensionName, register, setExtensionName, setProcessor
public void setFormService(FormService formService)
formService
- the form servicepublic ScriptForm getForm(String itemKind, String itemId)
itemKind
- The kind of item to retrieve a form foritemId
- The identifier of the item to retrieve a form forpublic ScriptForm getForm(String itemKind, String itemId, String[] fields)
itemKind
- The kind of item to retrieve a form foritemId
- The identifier of the item to retrieve a form forfields
- String array of fields to include, null
indicates all possible fields for the item
should be includedpublic ScriptForm getForm(String itemKind, String itemId, String[] fields, String[] forcedFields)
itemKind
- The kind of item to retrieve a form foritemId
- The identifier of the item to retrieve a form forfields
- String array 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 Object saveForm(String itemKind, String itemId, Object postData)
itemKind
- The kind of item to retrieve a form foritemId
- The identifier of the item to retrieve a form forpostData
- The post data, this can be a Map of name value
pairs, a webscript FormData object or a JSONObjectCopyright © 2005–2017 Alfresco Software. All rights reserved.