@Name(value="templateActions") @Scope(value=CONVERSATION) public class TemplatesActionBean extends BaseTemplateAction
Modifier and Type | Field and Description |
---|---|
protected boolean |
checkedInVersion |
protected DocumentActions |
documentActions |
protected boolean |
showParamEditor |
protected boolean |
showUsageListing |
protected boolean |
showVersions |
protected List<TemplateInput> |
templateInputs |
protected TypeManager |
typeManager |
documentManager, facesMessages, log, messages, navigationContext, newInput, templateEditableInputs
Constructor and Description |
---|
TemplatesActionBean() |
canAddTemplateInputs, canResetParameters, canUpdateTemplateInputs, getAvailableOfficeTemplates, getCurrentDocumentAsTemplateSourceDocument, getRenditions, resolveTemplateById
@In(create=true) protected transient DocumentActions documentActions
@In(create=true) protected transient TypeManager typeManager
protected List<TemplateInput> templateInputs
protected boolean showParamEditor
protected boolean showUsageListing
protected boolean showVersions
protected boolean checkedInVersion
public TemplatesActionBean()
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()
addTemplateInput
in class BaseTemplateAction
public String removeTemplateInput(String name)
public Collection<Type> getAllTypes()
public Collection<Type> getForcableTypes()
public Collection<TemplateProcessorDescriptor> getRegistredTemplateProcessors()
public Collection<OutputFormatDescriptor> getOutputFormatDescriptors()
public List<String> getTemplateAndVersionsUUIDs()
public boolean isShowParamEditor()
public boolean isShowUsageListing()
public void setShowUsageListing(boolean showUsageListing)
public boolean isShowVersions()
public void setShowVersions(boolean showVersions)
public boolean isCheckedInVersion()
public void setCheckedInVersion(boolean checkedInVersion)
Copyright © 2017 Nuxeo. All rights reserved.