|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.forms.script.ScriptFormService
public class ScriptFormService
Script object representing the form service.
Constructor Summary | |
---|---|
ScriptFormService()
|
Method Summary | |
---|---|
ScriptForm |
getForm(java.lang.String itemKind,
java.lang.String itemId)
Returns a form representation of the given item, all known fields for the item are included. |
ScriptForm |
getForm(java.lang.String itemKind,
java.lang.String itemId,
java.lang.String[] fields)
Returns a form representation of the given item consisting only of the given fields. |
ScriptForm |
getForm(java.lang.String itemKind,
java.lang.String itemId,
java.lang.String[] fields,
java.lang.String[] forcedFields)
Returns a form representation of the given item consisting only of the given fields. |
java.lang.Object |
saveForm(java.lang.String itemKind,
java.lang.String itemId,
java.lang.Object postData)
Persists the given data object for the item provided |
void |
setFormService(FormService formService)
Set the form service |
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension |
---|
getScope, setScope |
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension |
---|
getExtensionName, register, setExtensionName, setProcessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptFormService()
Method Detail |
---|
public void setFormService(FormService formService)
formService
- the form servicepublic ScriptForm getForm(java.lang.String itemKind, java.lang.String itemId)
itemKind
- The kind of item to retrieve a form foritemId
- The identifier of the item to retrieve a form for
public ScriptForm getForm(java.lang.String itemKind, java.lang.String itemId, java.lang.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 included
public ScriptForm getForm(java.lang.String itemKind, java.lang.String itemId, java.lang.String[] fields, java.lang.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 this
public java.lang.Object saveForm(java.lang.String itemKind, java.lang.String itemId, java.lang.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 JSONObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |