@Name(value="templateBasedActions") @Scope(value=CONVERSATION) public class TemplateBasedActionBean extends BaseTemplateAction
Modifier and Type | Field and Description |
---|---|
protected DocumentActions |
documentActions |
protected String |
editableTemplateName |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected TemplateInput |
newInput |
protected ResourcesAccessor |
resourcesAccessor |
protected List<TemplateInput> |
templateEditableInputs |
protected String |
templateIdToAssociate |
protected List<TemplateInput> |
templateInputs |
protected WebActions |
webActions |
documentManager, log, navigationContext
Constructor and Description |
---|
TemplateBasedActionBean() |
canAddTemplateInputs, canUpdateTemplateInputs, getAvailableOfficeTemplates, getCurrentDocumentAsTemplateSourceDocument, getRenditions, resolveTemplateById
@In(create=true) protected transient DocumentActions documentActions
@In(create=true) protected transient WebActions webActions
@In(create=true, required=false) protected org.jboss.seam.faces.FacesMessages facesMessages
@In(create=true) protected ResourcesAccessor resourcesAccessor
protected List<TemplateInput> templateInputs
protected List<TemplateInput> templateEditableInputs
protected TemplateInput newInput
protected String templateIdToAssociate
protected String editableTemplateName
public TemplateBasedActionBean()
public String createTemplate()
public List<TemplateInput> getTemplateInputs()
public void setTemplateInputs(List<TemplateInput> templateInputs)
public String saveDocument()
@Observer(value={"documentSelectionChanged","changeableDocumentCreated","documentChanged"}, create=false) @BypassInterceptors public void reset()
public List<TemplateInput> getTemplateEditableInputs()
public void setTemplateEditableInputs(List<TemplateInput> templateEditableInputs)
public String saveTemplateInputs()
public void cancelTemplateInputsEdit()
public TemplateInput getNewInput()
public void setNewInput(TemplateInput newInput)
public String addTemplateInput()
public String renderAndStore(String templateName)
public boolean canResetParameters()
canResetParameters
in class BaseTemplateAction
public void resetParameters(String templateName)
public boolean canDetachTemplate(String templateName)
public String detachTemplate(String templateName)
public String getTemplateIdToAssociate()
public void setTemplateIdToAssociate(String templateIdToAssociate)
public void associateDocumentToTemplate()
public boolean canRenderAndStore()
public String getEditableTemplateName()
public void setEditableTemplateName(String editableTemplateName)
public List<TemplateSourceDocument> getBindableTemplatesForDocument()
public List<javax.faces.model.SelectItem> getBindableTemplatesForDocumentAsSelectItems()
public boolean canBindNewTemplate()
@Factory(value="currentTemplateBasedDocument", scope=EVENT) public TemplateBasedDocument getCurrentDocumentAsTemplateBasedDocument()
@Factory(value="associatedRenderableTemplates", scope=EVENT) public List<TemplateSourceDocument> getRenderableTemplates()
Copyright © 2016 Nuxeo SA. All rights reserved.