|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.webapp.base.InputController org.nuxeo.ecm.webapp.documenttemplates.DocumentTemplatesActionsBean
@Name(value="documentTemplatesActions") @Scope(value=CONVERSATION) public class DocumentTemplatesActionsBean
Implementation for the documentTemplatesBean component available on the session.
Field Summary | |
---|---|
static String |
TemplateRoot
|
Constructor Summary | |
---|---|
DocumentTemplatesActionsBean()
|
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. |
Methods inherited from class org.nuxeo.ecm.webapp.base.InputController |
---|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TemplateRoot
Constructor Detail |
---|
public DocumentTemplatesActionsBean()
Method Detail |
---|
@Factory(value="availableTemplates", scope=EVENT) public DocumentModelList templatesListFactory()
DocumentTemplatesActions
templatesListFactory
in interface DocumentTemplatesActions
public DocumentModelList getTemplates(String targetTypeName) throws ClientException
getTemplates
in interface DocumentTemplatesActions
ClientException
public DocumentModelList getTemplates() throws ClientException
getTemplates
in interface DocumentTemplatesActions
ClientException
public String createDocumentFromTemplate(DocumentModel doc, String templateId) throws ClientException
DocumentTemplatesActions
createDocumentFromTemplate
in interface DocumentTemplatesActions
doc
- the DocumentModel with edited datatemplateId
- the template id
ClientException
public String createDocumentFromTemplate(DocumentModel doc) throws ClientException
DocumentTemplatesActions
createDocumentFromTemplate
in interface DocumentTemplatesActions
ClientException
public String createDocumentFromTemplate() throws ClientException
DocumentTemplatesActions
createDocumentFromTemplate
in interface DocumentTemplatesActions
ClientException
public String getSelectedTemplateId()
DocumentTemplatesActions
getSelectedTemplateId
in interface DocumentTemplatesActions
public void setSelectedTemplateId(String requestedId)
DocumentTemplatesActions
setSelectedTemplateId
in interface DocumentTemplatesActions
public String getTargetType()
DocumentTemplatesActions
getTargetType
in interface DocumentTemplatesActions
public void setTargetType(String targetType)
DocumentTemplatesActions
setTargetType
in interface DocumentTemplatesActions
@Observer(value="documentChildrenChanged", create=false) @BypassInterceptors public void documentChildrenChanged(DocumentModel targetDoc)
DocumentTemplatesActions
documentChildrenChanged
in interface DocumentTemplatesActions
@Observer(value="domainSelectionChanged", create=false) @BypassInterceptors public void domainChanged(DocumentModel targetDoc)
DocumentTemplatesActions
domainChanged
in interface DocumentTemplatesActions
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |