mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- model changes
- adding freemarker expression for output path patterns - enabling using the same rendering engine template with multiple mime types - extracting rendering engine template from rendering engine to make moving to templateservice easier eventually git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4351 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
<imports>
|
<imports>
|
||||||
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
||||||
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
||||||
|
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
|
||||||
</imports>
|
</imports>
|
||||||
|
|
||||||
<namespaces>
|
<namespaces>
|
||||||
@@ -60,6 +61,23 @@
|
|||||||
</property>
|
</property>
|
||||||
</properties>
|
</properties>
|
||||||
</type>
|
</type>
|
||||||
|
|
||||||
|
<type name="wcm:renditionproperties">
|
||||||
|
<title>Properties for renditions</title>
|
||||||
|
<parent>sys:base</parent>
|
||||||
|
<properties>
|
||||||
|
<property name="wcm:outputpathpatternforrendition">
|
||||||
|
<title>Type</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="wcm:mimetypeforrendition">
|
||||||
|
<title>Mimetype for generated assets</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
</type>
|
||||||
</types>
|
</types>
|
||||||
|
|
||||||
<aspects>
|
<aspects>
|
||||||
@@ -68,14 +86,24 @@
|
|||||||
<aspect name="wcm:form">
|
<aspect name="wcm:form">
|
||||||
<title>XForms Form</title>
|
<title>XForms Form</title>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="wcm:schemarootelementname">
|
<property name="wcm:xmlschemarootelementname">
|
||||||
<title>Schema Root Element Name</title>
|
<title>Schema Root Element Name</title>
|
||||||
<type>d:text</type>
|
<type>d:text</type>
|
||||||
<mandatory>true</mandatory>
|
<mandatory>true</mandatory>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="wcm:xmlschema">
|
||||||
|
<title>Schema</title>
|
||||||
|
<type>d:noderef</type>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
</property>
|
||||||
|
<property name="wcm:outputpathpatternforforminstancedata">
|
||||||
|
<title>Type</title>
|
||||||
|
<type>d:text</type>
|
||||||
|
<mandatory>true</mandatory>
|
||||||
|
</property>
|
||||||
</properties>
|
</properties>
|
||||||
<associations>
|
<associations>
|
||||||
<association name="wcm:renderingengines">
|
<association name="wcm:renderingenginetemplates">
|
||||||
<title>Form Data Renderers</title>
|
<title>Form Data Renderers</title>
|
||||||
<source>
|
<source>
|
||||||
<role>wcm:capture</role>
|
<role>wcm:capture</role>
|
||||||
@@ -83,7 +111,7 @@
|
|||||||
<many>false</many>
|
<many>false</many>
|
||||||
</source>
|
</source>
|
||||||
<target>
|
<target>
|
||||||
<class>wcm:renderingengine</class>
|
<class>wcm:renderingenginetemplate</class>
|
||||||
<role>wcm:presentation</role>
|
<role>wcm:presentation</role>
|
||||||
<mandatory>false</mandatory>
|
<mandatory>false</mandatory>
|
||||||
<many>true</many>
|
<many>true</many>
|
||||||
@@ -93,30 +121,35 @@
|
|||||||
</aspect>
|
</aspect>
|
||||||
|
|
||||||
<!-- An XML to something else transformer. -->
|
<!-- An XML to something else transformer. -->
|
||||||
<aspect name="wcm:renderingengine">
|
<aspect name="wcm:renderingenginetemplate">
|
||||||
<title>A Rendering Engine</title>
|
<title>A Rendering Engine</title>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="wcm:rendereringenginetype">
|
<property name="wcm:parentrendereringenginename">
|
||||||
<title>Type</title>
|
<title>Type</title>
|
||||||
<type>d:text</type>
|
<type>d:text</type>
|
||||||
<mandatory>true</mandatory>
|
<mandatory>true</mandatory>
|
||||||
</property>
|
</property>
|
||||||
<property name="wcm:fileextensionforrendition">
|
|
||||||
<title>File extension for generated assets</title>
|
|
||||||
<type>d:text</type>
|
|
||||||
<mandatory>true</mandatory>
|
|
||||||
</property>
|
|
||||||
<property name="wcm:mimetypeforrendition">
|
|
||||||
<title>Mimetype for generated assets</title>
|
|
||||||
<type>d:text</type>
|
|
||||||
<mandatory>true</mandatory>
|
|
||||||
</property>
|
|
||||||
<property name="wcm:formsource">
|
<property name="wcm:formsource">
|
||||||
<title>Form Source</title>
|
<title>Form Source</title>
|
||||||
<type>d:noderef</type>
|
<type>d:noderef</type>
|
||||||
<mandatory>true</mandatory>
|
<mandatory>true</mandatory>
|
||||||
</property>
|
</property>
|
||||||
</properties>
|
</properties>
|
||||||
|
<associations>
|
||||||
|
<child-association name="wcm:renditionproperties">
|
||||||
|
<title>Rendition Properties</title>
|
||||||
|
<source>
|
||||||
|
<role>wcm:capture</role>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
<many>false</many>
|
||||||
|
</source>
|
||||||
|
<target>
|
||||||
|
<class>wcm:renditionproperties</class>
|
||||||
|
<mandatory>false</mandatory>
|
||||||
|
<many>true</many>
|
||||||
|
</target>
|
||||||
|
</child-association>
|
||||||
|
</associations>
|
||||||
</aspect>
|
</aspect>
|
||||||
|
|
||||||
<aspect name="wcm:forminstancedata">
|
<aspect name="wcm:forminstancedata">
|
||||||
@@ -129,7 +162,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="wcm:parentformname">
|
<property name="wcm:parentformname">
|
||||||
<title>Form that generated this asset</title>
|
<title>Form that generated this asset</title>
|
||||||
<type>d:noderef</type>
|
<type>d:text</type>
|
||||||
<mandatory>true</mandatory>
|
<mandatory>true</mandatory>
|
||||||
</property>
|
</property>
|
||||||
</properties>
|
</properties>
|
||||||
@@ -138,7 +171,7 @@
|
|||||||
<aspect name="wcm:rendition">
|
<aspect name="wcm:rendition">
|
||||||
<title>XML file generated by a form</title>
|
<title>XML file generated by a form</title>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="wcm:parentrenderingengine">
|
<property name="wcm:parentrenderingenginetemplate">
|
||||||
<title>Form data renderer that generated this asset</title>
|
<title>Form data renderer that generated this asset</title>
|
||||||
<type>d:noderef</type>
|
<type>d:noderef</type>
|
||||||
<mandatory>true</mandatory>
|
<mandatory>true</mandatory>
|
||||||
|
@@ -39,21 +39,26 @@ public interface WCMModel
|
|||||||
|
|
||||||
// The XForms data capture form aspect.
|
// The XForms data capture form aspect.
|
||||||
public static final QName ASPECT_FORM = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "form");
|
public static final QName ASPECT_FORM = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "form");
|
||||||
public static final QName PROP_SCHEMA_ROOT_ELEMENT_NAME = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "schemarootelementname");
|
public static final QName PROP_XML_SCHEMA = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "schema");
|
||||||
public static final QName ASSOC_RENDERING_ENGINES = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "renderingengines");
|
public static final QName PROP_XML_SCHEMA_ROOT_ELEMENT_NAME = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "xmlschemarootelementname");
|
||||||
|
public static final QName PROP_OUTPUT_PATH_PATTERN_FOR_FORM_INSTANCE_DATA = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "outputpathpatternforforminstancedata");
|
||||||
|
public static final QName ASSOC_RENDERING_ENGINE_TEMPLATES = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "renderingenginetemplates");
|
||||||
|
|
||||||
// An XML to something else tranformer aspect.
|
// An XML to something else tranformer aspect.
|
||||||
public static final QName ASPECT_RENDERING_ENGINE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "renderingengine");
|
public static final QName ASPECT_RENDERING_ENGINE_TEMPLATE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "renderingenginetemplate");
|
||||||
public static final QName PROP_RENDERING_ENGINE_TYPE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "renderingenginetype");
|
public static final QName PROP_PARENT_RENDERING_ENGINE_NAME = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "parentrenderingenginename");
|
||||||
public static final QName PROP_FILE_EXTENSION_FOR_RENDITION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "fileextensionforrendition");
|
|
||||||
public static final QName PROP_MIMETYPE_FOR_RENDITION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "mimetypeforrendition");
|
|
||||||
public static final QName PROP_FORM_SOURCE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formsource");
|
public static final QName PROP_FORM_SOURCE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formsource");
|
||||||
|
public static final QName ASSOC_RENDITION_PROPERTIES = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "renditionproperties");
|
||||||
|
|
||||||
public static final QName ASPECT_FORM_INSTANCE_DATA = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "forminstancedata");
|
public static final QName ASPECT_FORM_INSTANCE_DATA = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "forminstancedata");
|
||||||
public static final QName PROP_PARENT_FORM = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "parentform");
|
public static final QName PROP_PARENT_FORM = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "parentform");
|
||||||
public static final QName PROP_PARENT_FORM_NAME = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "parentformname");
|
public static final QName PROP_PARENT_FORM_NAME = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "parentformname");
|
||||||
|
|
||||||
public static final QName ASPECT_RENDITION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "rendition");
|
public static final QName ASPECT_RENDITION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "rendition");
|
||||||
public static final QName PROP_PARENT_RENDERING_ENGINE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "parentrenderingengine");
|
public static final QName PROP_PARENT_RENDERING_ENGINE_TEMPLATE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "parentrenderingenginetemplate");
|
||||||
public static final QName PROP_PRIMARY_FORM_INSTANCE_DATA = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "primaryforminstancedata");
|
public static final QName PROP_PRIMARY_FORM_INSTANCE_DATA = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "primaryforminstancedata");
|
||||||
|
|
||||||
|
public static final QName TYPE_RENDITION_PROPERTIES = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "renditionproperties");
|
||||||
|
public static final QName PROP_OUTPUT_PATH_PATTERN_FOR_RENDITION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "outputpathpatternforrendition");
|
||||||
|
public static final QName PROP_MIMETYPE_FOR_RENDITION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "mimetypeforrendition");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user