public class SimpleTemplateActionDefinition extends AbstractTemplateActionDefinition implements org.springframework.context.ApplicationContextAware
actionService, compensatingTemplateActionDefinition, templateService
Constructor and Description |
---|
SimpleTemplateActionDefinition()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
Action |
getAction(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Generate the action from the template using the context node.
|
String |
getActionName()
Get the name of the action.
|
org.alfresco.service.cmr.dictionary.DictionaryService |
getDictionaryService()
Get the dictionary service.
|
Map<String,String> |
getParameterTemplates()
Get the templates that define the parameters for the action.
|
TemplateActionModelFactory |
getTemplateActionModelFactory()
Get the template model factory.
|
void |
setActionName(String actionName)
Set the name of the action.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
ApplciationContextAware - get the application context.
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service - IOC.
|
void |
setParameterTemplates(Map<String,String> parameterTemplates)
Set the map of parameters used by the template.
|
void |
setTemplateActionModelFactory(TemplateActionModelFactory templateActionModelFactory)
Set the template model factory IOC.
|
getActionService, getCompensatingTemplateCompositeActionDefinition, getTemplateService, setActionService, setCompensatingTemplateCompositeActionDefinition, setTemplateService
public SimpleTemplateActionDefinition()
public TemplateActionModelFactory getTemplateActionModelFactory()
public void setTemplateActionModelFactory(TemplateActionModelFactory templateActionModelFactory)
templateActionModelFactory
- TemplateActionModelFactorypublic org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService
- DictionaryServicepublic void setActionName(String actionName)
actionName
- Stringpublic String getActionName()
public void setParameterTemplates(Map<String,String> parameterTemplates)
public Map<String,String> getParameterTemplates()
public Action getAction(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getAction
in interface TemplateActionDefinition
nodeRef
- NodeRefpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2005–2017 Alfresco Software. All rights reserved.