Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.documenttemplates
Interface DocumentTemplatesActions

All Known Implementing Classes:
DocumentTemplatesActionsBean

public interface DocumentTemplatesActions

Stateful Seam component.


Method Summary
 String createDocumentFromTemplate()
          Creates a Document from a template using the selectedTemplateId and the changeableDocument.
 String createDocumentFromTemplate(DocumentModel doc)
          Creates a Document from a template using the selectedTemplateId.
 String createDocumentFromTemplate(DocumentModel doc, String templateId)
          Creates a Document from a template.
 void documentChildrenChanged(DocumentModel targetDoc)
          Listener to children changed event.
 void domainChanged(DocumentModel targetDoc)
          Listener for domain changed event.
 String getSelectedTemplateId()
          Getter of the selected template id.
 String getTargetType()
          Getter for type of the document to be created.
 DocumentModelList getTemplates()
           
 DocumentModelList getTemplates(String targetTypeName)
           
 void setSelectedTemplateId(String requestedId)
          Setter for the template to use.
 void setTargetType(String targetType)
          Setter for the type of document to be created.
 DocumentModelList templatesListFactory()
          Factory accessor on the getter.
 

Method Detail

getTemplates

DocumentModelList getTemplates()
                               throws ClientException
Returns:
list of DocumentModels of available templates of currently selected type.
Throws:
ClientException

getTemplates

DocumentModelList getTemplates(String targetTypeName)
                               throws ClientException
Throws:
ClientException

templatesListFactory

DocumentModelList templatesListFactory()
Factory accessor on the getter.


createDocumentFromTemplate

String createDocumentFromTemplate(DocumentModel doc,
                                  String templateId)
                                  throws ClientException
Creates a Document from a template.

Parameters:
doc - the DocumentModel with edited data
templateId - the template id
Throws:
ClientException

createDocumentFromTemplate

String createDocumentFromTemplate(DocumentModel doc)
                                  throws ClientException
Creates a Document from a template using the selectedTemplateId.

Throws:
ClientException

createDocumentFromTemplate

String createDocumentFromTemplate()
                                  throws ClientException
Creates a Document from a template using the selectedTemplateId and the changeableDocument.

Throws:
ClientException

getSelectedTemplateId

String getSelectedTemplateId()
Getter of the selected template id.


setSelectedTemplateId

void setSelectedTemplateId(String requestedId)
Setter for the template to use.


getTargetType

String getTargetType()
Getter for type of the document to be created.


setTargetType

void setTargetType(String targetType)
Setter for the type of document to be created.


documentChildrenChanged

void documentChildrenChanged(DocumentModel targetDoc)
Listener to children changed event.


domainChanged

void domainChanged(DocumentModel targetDoc)
Listener for domain changed event.


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.