mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Create Web Project wizard now reads default selections
- for file patterns, templates and rendering file patterns from model as persisted by the Create Form Wizard . Some UI tidy ups git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4356 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -41,6 +41,9 @@ public interface Form
|
||||
|
||||
/** the root tag to use within the schema */
|
||||
public String getSchemaRootElementName();
|
||||
|
||||
/** the output path pattern for form instance data */
|
||||
public String getOutputPathPattern();
|
||||
|
||||
/** the xml schema for this template type */
|
||||
public Document getSchema()
|
||||
|
@@ -86,6 +86,13 @@ public class FormImpl
|
||||
this.nodeService.getProperty(this.folderNodeRef,
|
||||
ContentModel.PROP_DESCRIPTION);
|
||||
}
|
||||
|
||||
public String getOutputPathPattern()
|
||||
{
|
||||
return (String)
|
||||
this.nodeService.getProperty(this.folderNodeRef,
|
||||
WCMModel.PROP_OUTPUT_PATH_PATTERN_FOR_FORM_INSTANCE_DATA);
|
||||
}
|
||||
|
||||
public String getOutputPathForFormInstanceData(final String parentAVMPath,
|
||||
final String formInstanceDataFileName,
|
||||
@@ -175,9 +182,10 @@ public class FormImpl
|
||||
|
||||
public List<RenderingEngineTemplate> getRenderingEngineTemplates()
|
||||
{
|
||||
final List<RenderingEngineTemplate> result = new ArrayList<RenderingEngineTemplate>();
|
||||
for (AssociationRef assoc : this.nodeService.getTargetAssocs(this.folderNodeRef,
|
||||
WCMModel.ASSOC_RENDERING_ENGINE_TEMPLATES))
|
||||
final List<AssociationRef> refs = this.nodeService.getTargetAssocs(this.folderNodeRef,
|
||||
WCMModel.ASSOC_RENDERING_ENGINE_TEMPLATES);
|
||||
final List<RenderingEngineTemplate> result = new ArrayList<RenderingEngineTemplate>(refs.size());
|
||||
for (AssociationRef assoc : refs)
|
||||
{
|
||||
final NodeRef retNodeRef = assoc.getTargetRef();
|
||||
for (ChildAssociationRef assoc2 : this.nodeService.getChildAssocs(retNodeRef,
|
||||
|
@@ -38,6 +38,9 @@ public interface RenderingEngineTemplate
|
||||
/** the description of the form */
|
||||
public String getDescription();
|
||||
|
||||
/** the output path pattern for renditions */
|
||||
public String getOutputPathPattern();
|
||||
|
||||
/**
|
||||
* Provides the rendering engine to use to process this template.
|
||||
*
|
||||
|
@@ -84,6 +84,13 @@ public class RenderingEngineTemplateImpl
|
||||
this.nodeService.getProperty(this.nodeRef,
|
||||
ContentModel.PROP_DESCRIPTION);
|
||||
}
|
||||
|
||||
public String getOutputPathPattern()
|
||||
{
|
||||
return (String)
|
||||
this.nodeService.getProperty(this.renditionPropertiesNodeRef,
|
||||
WCMModel.PROP_OUTPUT_PATH_PATTERN_FOR_RENDITION);
|
||||
}
|
||||
|
||||
public NodeRef getNodeRef()
|
||||
{
|
||||
@@ -132,7 +139,6 @@ public class RenderingEngineTemplateImpl
|
||||
|
||||
final TemplateHashModel formInstanceDataModel = new TemplateHashModel()
|
||||
{
|
||||
|
||||
private TemplateModel formInstanceDataModel;
|
||||
|
||||
public TemplateModel get(final String key)
|
||||
|
Reference in New Issue
Block a user