public interface TemplateProcessorService
TemplateProcessor and associated templates.String findProcessorName(Blob templateBlob)
Blob. The template processor is found based on mime-types.templateBlob - TemplateProcessor nameTemplateProcessor findProcessor(Blob templateBlob)
TemplateProcessor for a given Blob. The template processor is found based on
mime-types.templateBlob - TemplateProcessorTemplateProcessor getProcessor(String name)
TemplateProcessor by it's name. Name is defined in the associated descriptor.name - TemplateProcessorCollection<TemplateProcessorDescriptor> getRegisteredTemplateProcessors()
TemplateProcessorsTemplateProcessorDescriptorList<DocumentModel> getAvailableTemplateDocs(CoreSession session, String targetType) throws ClientException
TemplateSourceDocuments that can be bound to a given doc type.session - targetType - the target Document TypeClientExceptionList<TemplateSourceDocument> getAvailableTemplates(CoreSession session, String targetType) throws ClientException
TemplateSourceDocuments that can be bound to a given doc type.session - targetType - the target Document TypeTemplateSourceDocumentClientExceptionList<TemplateSourceDocument> getAvailableOfficeTemplates(CoreSession session, String targetType) throws ClientException
TemplateSourceDocument that can be used as an Office template (i.e that support to store the
template file as main blob of target DocumentModel)session - targetType - ClientExceptionList<TemplateBasedDocument> getLinkedTemplateBasedDocuments(DocumentModel source) throws ClientException
TemplateSourceDocumentsource - the TemplateSourceDocumentClientExceptionMap<String,List<String>> getTypeMapping()
void registerTypeMapping(DocumentModel doc) throws ClientException
doc - ClientExceptionDocumentModel makeTemplateBasedDocument(DocumentModel targetDoc, DocumentModel sourceTemplateDoc, boolean save) throws ClientException
DocumentModel to a TemplateSourceDocument. If the DocumentModel is not already a
TemplateBasedDocument, the associated facet will be automatically added.targetDoc - the DocumentModel to associate to a templatesourceTemplateDoc - the DocumentModel holding the templatesave - flag to indicate if target DocumentModel must be saved or notClientExceptionDocumentModel detachTemplateBasedDocument(DocumentModel targetDoc, String templateName, boolean save) throws ClientException
DocumentModeltargetDoc - the DocumentModel to detachtemplateName - the name of the template to detachsave - save flag to indicate if target DocumentModel must be saved or notClientExceptionvoid addContextExtensions(DocumentModel currentDocument, DocumentWrapper wrapper, Map<String,Object> ctx)
Map<String,ContextExtensionFactoryDescriptor> getRegistredContextExtensions()
Collection<OutputFormatDescriptor> getOutputFormats()
OutputFormatDescriptor getOutputFormatDescriptor(String outputFormatId)
OutputFormatDescriptor contains either an operation chain or a mime-type use to convert the
output of a rendered document.outputFormatId - OutputFormatDescriptorCopyright © 2015 Nuxeo SA. All rights reserved.