mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-26 17:25:11 +00:00
Fixed content model to avoid confusion, remove property named property etc
This commit is contained in:
parent
8968f8227b
commit
a49c657441
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<model name="myc:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
<model name="acme:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
|
|
||||||
<!-- Optional meta-data about the model -->
|
<!-- Optional meta-data about the model -->
|
||||||
<description>Document Model for Repo Extension X</description>
|
<description>Sample Document Model</description>
|
||||||
<author>My Name</author>
|
<author>My Name</author>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
|
|
||||||
@ -15,40 +15,72 @@
|
|||||||
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
|
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
|
||||||
</imports>
|
</imports>
|
||||||
|
|
||||||
<!-- Custom namespace for your domain -->
|
<!-- Custom namespace for the ACME company -->
|
||||||
<namespaces>
|
<namespaces>
|
||||||
<namespace uri="http://www.mycompany.com/model/content/1.0" prefix="myc"/>
|
<namespace uri="http://www.acme.org/model/content/1.0" prefix="acme"/>
|
||||||
</namespaces>
|
</namespaces>
|
||||||
|
|
||||||
|
<constraints>
|
||||||
|
<constraint name="acme:securityClassificationOptions" type="LIST">
|
||||||
|
<parameter name="allowedValues">
|
||||||
|
<list>
|
||||||
|
<value></value>
|
||||||
|
<!-- Empty for default search-->
|
||||||
|
<value>Public</value>
|
||||||
|
<value>Client Confidential</value>
|
||||||
|
<value>Company Confidential</value>
|
||||||
|
<value>Strictly Confidential</value>
|
||||||
|
</list>
|
||||||
|
</parameter>
|
||||||
|
</constraint>
|
||||||
|
</constraints>
|
||||||
|
|
||||||
<!-- ===============================================================================================================
|
<!-- ===============================================================================================================
|
||||||
Constraints, Types, and Aspects go here...
|
Constraints, Types, and Aspects go here...
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<types>
|
<types>
|
||||||
<type name="myc:doc">
|
<!--
|
||||||
|
ACME Enterprise-wide Document root type.
|
||||||
|
All other custom document types would extend this one.
|
||||||
|
-->
|
||||||
|
<type name="acme:document">
|
||||||
<title>Sample Document Type</title>
|
<title>Sample Document Type</title>
|
||||||
<parent>cm:content</parent>
|
<parent>cm:content</parent>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="myc:property">
|
<property name="acme:documentId">
|
||||||
<title>Sample Property</title>
|
<title>Document Identification Number</title>
|
||||||
<type>d:text</type>
|
<type>d:text</type>
|
||||||
</property>
|
</property>
|
||||||
</properties>
|
</properties>
|
||||||
<associations>
|
<mandatory-aspects>
|
||||||
<association name="myc:association">
|
<aspect>acme:securityClassified</aspect>
|
||||||
<title>Sample Association</title>
|
</mandatory-aspects>
|
||||||
<source>
|
|
||||||
<mandatory>false</mandatory>
|
|
||||||
<many>true</many>
|
|
||||||
</source>
|
|
||||||
<target>
|
|
||||||
<class>myc:doc</class>
|
|
||||||
<mandatory>false</mandatory>
|
|
||||||
<many>true</many>
|
|
||||||
</target>
|
|
||||||
</association>
|
|
||||||
</associations>
|
|
||||||
</type>
|
</type>
|
||||||
</types>
|
</types>
|
||||||
|
|
||||||
|
<aspects>
|
||||||
|
<!-- A document can have security classification applied and
|
||||||
|
faceted search is specifically enabled for best performance and we change
|
||||||
|
default index config to not tokenize the value. -->
|
||||||
|
<aspect name="acme:securityClassified">
|
||||||
|
<title>ACME Security Classified</title>
|
||||||
|
<description>Content has been security classified</description>
|
||||||
|
<properties>
|
||||||
|
<property name="acme:securityClassification">
|
||||||
|
<type>d:text</type>
|
||||||
|
<index enabled="true">
|
||||||
|
<atomic>true</atomic>
|
||||||
|
<stored>false</stored>
|
||||||
|
<tokenised>false</tokenised>
|
||||||
|
<facetable>true</facetable>
|
||||||
|
</index>
|
||||||
|
<constraints>
|
||||||
|
<constraint ref="acme:securityClassificationOptions"/>
|
||||||
|
</constraints>
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
</aspect>
|
||||||
|
</aspects>
|
||||||
|
|
||||||
</model>
|
</model>
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<model name="myw:workflowModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
<model name="acmew:workflowModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
<!-- Optional meta-data about the model -->
|
<!-- Optional meta-data about the model -->
|
||||||
<description>Workflow Model for Repo Extension X</description>
|
<description>Sample Workflow Model</description>
|
||||||
<author>My Name</author>
|
<author>My Name</author>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
|
|
||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<!-- Custom namespace for your domain -->
|
<!-- Custom namespace for your domain -->
|
||||||
<namespaces>
|
<namespaces>
|
||||||
<namespace uri="http://www.mycompany.com/model/workflow/1.0" prefix="myw"/>
|
<namespace uri="http://www.acme.org/model/workflow/1.0" prefix="acmew"/>
|
||||||
</namespaces>
|
</namespaces>
|
||||||
|
|
||||||
<!-- ===============================================================================================================
|
<!-- ===============================================================================================================
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<model name="myc:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
<model name="acme:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
|
|
||||||
<!-- Optional meta-data about the model -->
|
<!-- Optional meta-data about the model -->
|
||||||
<description>Document Model for Repo Extension X</description>
|
<description>Sample Document Model</description>
|
||||||
<author>My Name</author>
|
<author>My Name</author>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
|
|
||||||
@ -15,40 +15,72 @@
|
|||||||
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
|
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
|
||||||
</imports>
|
</imports>
|
||||||
|
|
||||||
<!-- Custom namespace for your domain -->
|
<!-- Custom namespace for the ACME company -->
|
||||||
<namespaces>
|
<namespaces>
|
||||||
<namespace uri="http://www.mycompany.com/model/content/1.0" prefix="myc"/>
|
<namespace uri="http://www.acme.org/model/content/1.0" prefix="acme"/>
|
||||||
</namespaces>
|
</namespaces>
|
||||||
|
|
||||||
|
<constraints>
|
||||||
|
<constraint name="acme:securityClassificationOptions" type="LIST">
|
||||||
|
<parameter name="allowedValues">
|
||||||
|
<list>
|
||||||
|
<value></value>
|
||||||
|
<!-- Empty for default search-->
|
||||||
|
<value>Public</value>
|
||||||
|
<value>Client Confidential</value>
|
||||||
|
<value>Company Confidential</value>
|
||||||
|
<value>Strictly Confidential</value>
|
||||||
|
</list>
|
||||||
|
</parameter>
|
||||||
|
</constraint>
|
||||||
|
</constraints>
|
||||||
|
|
||||||
<!-- ===============================================================================================================
|
<!-- ===============================================================================================================
|
||||||
Constraints, Types, and Aspects go here...
|
Constraints, Types, and Aspects go here...
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<types>
|
<types>
|
||||||
<type name="myc:doc">
|
<!--
|
||||||
|
ACME Enterprise-wide Document root type.
|
||||||
|
All other custom document types would extend this one.
|
||||||
|
-->
|
||||||
|
<type name="acme:document">
|
||||||
<title>Sample Document Type</title>
|
<title>Sample Document Type</title>
|
||||||
<parent>cm:content</parent>
|
<parent>cm:content</parent>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="myc:property">
|
<property name="acme:documentId">
|
||||||
<title>Sample Property</title>
|
<title>Document Identification Number</title>
|
||||||
<type>d:text</type>
|
<type>d:text</type>
|
||||||
</property>
|
</property>
|
||||||
</properties>
|
</properties>
|
||||||
<associations>
|
<mandatory-aspects>
|
||||||
<association name="myc:association">
|
<aspect>acme:securityClassified</aspect>
|
||||||
<title>Sample Association</title>
|
</mandatory-aspects>
|
||||||
<source>
|
|
||||||
<mandatory>false</mandatory>
|
|
||||||
<many>true</many>
|
|
||||||
</source>
|
|
||||||
<target>
|
|
||||||
<class>myc:doc</class>
|
|
||||||
<mandatory>false</mandatory>
|
|
||||||
<many>true</many>
|
|
||||||
</target>
|
|
||||||
</association>
|
|
||||||
</associations>
|
|
||||||
</type>
|
</type>
|
||||||
</types>
|
</types>
|
||||||
|
|
||||||
|
<aspects>
|
||||||
|
<!-- A document can have security classification applied and
|
||||||
|
faceted search is specifically enabled for best performance and we change
|
||||||
|
default index config to not tokenize the value. -->
|
||||||
|
<aspect name="acme:securityClassified">
|
||||||
|
<title>ACME Security Classified</title>
|
||||||
|
<description>Content has been security classified</description>
|
||||||
|
<properties>
|
||||||
|
<property name="acme:securityClassification">
|
||||||
|
<type>d:text</type>
|
||||||
|
<index enabled="true">
|
||||||
|
<atomic>true</atomic>
|
||||||
|
<stored>false</stored>
|
||||||
|
<tokenised>false</tokenised>
|
||||||
|
<facetable>true</facetable>
|
||||||
|
</index>
|
||||||
|
<constraints>
|
||||||
|
<constraint ref="acme:securityClassificationOptions"/>
|
||||||
|
</constraints>
|
||||||
|
</property>
|
||||||
|
</properties>
|
||||||
|
</aspect>
|
||||||
|
</aspects>
|
||||||
|
|
||||||
</model>
|
</model>
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<model name="myw:workflowModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
<model name="acmew:workflowModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
<!-- Optional meta-data about the model -->
|
<!-- Optional meta-data about the model -->
|
||||||
<description>Workflow Model for Repo Extension X</description>
|
<description>Sample Workflow Model</description>
|
||||||
<author>My Name</author>
|
<author>My Name</author>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
|
|
||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<!-- Custom namespace for your domain -->
|
<!-- Custom namespace for your domain -->
|
||||||
<namespaces>
|
<namespaces>
|
||||||
<namespace uri="http://www.mycompany.com/model/workflow/1.0" prefix="myw"/>
|
<namespace uri="http://www.acme.org/model/workflow/1.0" prefix="acmew"/>
|
||||||
</namespaces>
|
</namespaces>
|
||||||
|
|
||||||
<!-- ===============================================================================================================
|
<!-- ===============================================================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user