public class ActionFormProcessor extends FilteredFormProcessor
FormProcessor for actions.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
EXECUTE_ASYNCHRONOUSLY |
static java.lang.String |
ITEM_KIND |
fieldProcessorRegistry, filterRegistryactive, DESTINATION, matchPattern, patternMatcher, processorRegistry| Constructor and Description |
|---|
ActionFormProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List |
generateDefaultFields(FormCreationData data,
java.util.List fieldsToIgnore)
Generates a list of default fields to add if no field names are specified.
|
protected java.util.List |
generateSelectedFields(java.util.List requestedFields,
FormCreationData data) |
protected java.util.List |
getDefaultIgnoredFields()
|
protected java.lang.String |
getItemType(ActionDefinition item)
Returns a
String describing the type fo the specified item. |
protected java.lang.String |
getItemURI(ActionDefinition item)
Returns the URI location of the specified item.
|
protected org.apache.commons.logging.Log |
getLogger()
Retrieves a logger instance to log to.
|
protected ActionDefinition |
getTypedItem(Item item)
Returns a typed Object representing the given item.
|
protected ActionFormResult |
internalPersist(ActionDefinition item,
FormData data)
Persists the form data.
|
protected java.lang.Object |
makeItemData(ActionDefinition item)
|
void |
setActionService(ActionService actionService) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
generate, internalGenerate, persist, populateForm, setFieldProcessorRegistry, setFilterRegistry, setIgnoredFieldsisActive, isApplicable, register, setActive, setFormItemType, setFormItemUrl, setMatchPattern, setProcessorRegistry, toStringpublic static final java.lang.String ITEM_KIND
protected static final java.lang.String EXECUTE_ASYNCHRONOUSLY
public void setActionService(ActionService actionService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
protected org.apache.commons.logging.Log getLogger()
FilteredFormProcessorgetLogger in class FilteredFormProcessorprotected ActionDefinition getTypedItem(Item item)
FilteredFormProcessorSubclasses that represent a form type will return a typed object that is then passed to each of it's handlers, the handlers can therefore safely cast the Object to the type they expect.
getTypedItem in class FilteredFormProcessoritem - The item to get a typed object forprotected java.lang.String getItemType(ActionDefinition item)
FilteredFormProcessorString describing the type fo the specified item.getItemType in class FilteredFormProcessorprotected java.lang.String getItemURI(ActionDefinition item)
FilteredFormProcessorgetItemURI in class FilteredFormProcessorprotected ActionFormResult internalPersist(ActionDefinition item, FormData data)
FilteredFormProcessorinternalPersist in class FilteredFormProcessoritem - The object to persist the form fordata - The data to persistprotected java.util.List generateDefaultFields(FormCreationData data, java.util.List fieldsToIgnore)
FilteredFormProcessorgenerateDefaultFields in class FilteredFormProcessordata - Used for field creation.List of Fields which may be empty.protected java.util.List generateSelectedFields(java.util.List requestedFields,
FormCreationData data)
generateSelectedFields in class FilteredFormProcessorprotected java.util.List getDefaultIgnoredFields()
FilteredFormProcessorForm is generated with no field names specifically set then a default Form is created.
The default Form contains all the properties and associations related to the Item, excluding a
blacklist of ignored fields which defaults to the return value of this method.
The default ignored values can be overridden by setting the property ignoredFields.getDefaultIgnoredFields in class FilteredFormProcessorForm if no defaultFields property is explicitly set.protected java.lang.Object makeItemData(ActionDefinition item)
FilteredFormProcessormakeItemData in class FilteredFormProcessorCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.