02-25-2011 04:46 AM
02-27-2011 06:09 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of Knowledge Base Model –>
<model name="kb:knowledgebase" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Knowledge Base Model</description>
<author>Will Abson</author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.alfresco.com/model/knowledgebase/1.0" prefix="kb"/>
</namespaces>
<aspects>
<!– Definition of new Content Aspect: Knowledge Base Document –>
<aspect name="kb:referencable">
<title>Knowledge Base Referencable</title>
<properties>
<property name="kb:noteRef">
<type>d:text</type>
</property>
<property name="kb:documentNom">
<type>d:text</type>
</property>
<property name="kb:noteType">
<type>d:text</type>
<constraints>
<constraint type="LIST">
<parameter name="allowedValues">
<list>
<value>a preciser</value>
<value>Note de Service</value>
<value>Note d'Information</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
<property name="kb:notePenseur">
<type>d:text</type>
</property>
<property name="kb:noteSecretaire">
<type>d:text</type>
</property>
<property name="kb:noteSignataire">
<type>d:text</type>
</property>
<property name="kb:noteDateCreation">
<type>d:date</type>
</property>
<property name="kb:noteDateSignature">
<type>d:date</type>
</property>
<property name="kb:noteDateFin">
<type>d:date</type>
</property>
<property name="kb:destinataires">
<type>d:category</type>
<mandatory>false</mandatory>
<multiple>true</multiple>
<index enabled="true">
<atomic>true</atomic>
<stored>true</stored>
<tokenised>false</tokenised>
</index>
</property>
</properties>
</aspect>
</aspects>
</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.kb.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/kb-model.xml</value>
</list>
</property>
</bean>
<bean id="extension.kb.resourceBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.messages.knowledgebase</value>
</list>
</property>
</bean>
</beans>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="kb:referencable"/>
</aspects>
</config>
<alfresco-config>
<!– Document Library config section –>
<config evaluator="string-compare" condition="DocumentLibrary">
<!–
Used by the "Manage Aspects" action
For custom aspects, remember to also add the relevant i18n string(s)
cm_myaspect=My Aspect
–>
<aspects>
<!– Aspects that a user can see –>
<visible>
<aspect name="cm:generalclassifiable" />
<aspect name="cm:complianceable" />
<aspect name="cm:dublincore" />
<aspect name="cm:effectivity" />
<aspect name="cm:summarizable" />
<aspect name="cm:versionable" />
<aspect name="cm:templatable" />
<aspect name="cm:emailed" />
<aspect name="emailserver:aliasable" />
<aspect name="cm:taggable" />
<aspect name="app:inlineeditable" />
<aspect name="kb:referencable" />
</visible>
<!– Aspects that a user can add. Same as "visible" if left empty –>
<addable>
</addable>
<!– Aspects that a user can remove. Same as "visible" if left empty –>
<removeable>
</removeable>
</aspects>
</config>
<!– cm:content type (existing nodes) –>
<config evaluator="node-type" condition="cm:content">
<forms>
<!– Default form configuration used on the document details and edit metadata pages –>
<form>
<field-visibility>
<show id="kb:noteRef" />
<show id="kb:documentNom" />
<show id="kb:noteType" />
<show id="kb:notePenseur" />
<show id="kb:noteSecretaire" />
<show id="kb:noteSignataire" />
<show id="kb:noteDateCreation" />
<show id="kb:noteDateSignature" />
<show id="kb:noteDateFin" />
<show id="kb:destinataires" />
</field-visibility>
</form>
<!– Document Library pop-up Edit Metadata form –>
<form id="doclib-simple-metadata">
<field-visibility>
<show id="kb:noteRef" />
<show id="kb:documentNom" />
<show id="kb:noteType" />
<show id="kb:notePenseur" />
<show id="kb:noteSecretaire" />
<show id="kb:noteSignataire" />
<show id="kb:noteDateCreation" />
<show id="kb:noteDateSignature" />
<show id="kb:noteDateFin" />
<show id="kb:destinataires" />
</field-visibility>
<edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
</form>
<!– Document Library Inline Edit form –>
<form id="doclib-inline-edit">
<field-visibility>
<show id="kb:noteRef" />
<show id="kb:documentNom" />
<show id="kb:noteType" />
<show id="kb:notePenseur" />
<show id="kb:noteSecretaire" />
<show id="kb:noteSignataire" />
<show id="kb:noteDateCreation" />
<show id="kb:noteDateSignature" />
<show id="kb:noteDateFin" />
<show id="kb:destinataires" />
</field-visibility>
</form>
</forms>
</config>
</alfresco-config>
# Custom knowledge base messages
kb_knowledgebase.property.kb_noteRef.title=Reference
kb_knowledgebase.property.kb_documentNom.title=Nom
kb_knowledgebase.property.kb_noteType.title=Type de document
kb_knowledgebase.property.kb_notePenseur.title=Penseur
kb_knowledgebase.property.kb_noteSecretaire.title=Secretaire
kb_knowledgebase.property.kb_noteSignataire.title=Signataire
kb_knowledgebase.property.kb_noteDateCreation.title=Date de debut
kb_knowledgebase.property.kb_noteDateSignature.title=Date de signature
kb_knowledgebase.property.kb_noteDateFin.title=Date de fin de validite
kb_knowledgebase.property.kb_destinataires.title=Destinataires
kb_knowledgebase.aspect.kb_referencable.title=Referencement des notes
aspect.kb_referencable=Aspect Note
02-28-2011 04:01 AM
03-03-2011 04:52 PM
03-04-2011 11:08 AM
03-05-2011 02:07 AM
03-08-2011 05:09 PM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of Knowledge Base Model –>
<model name="kb:knowledgebase" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Knowledge Base Model</description>
<author>Will Abson</author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.alfresco.com/model/knowledgebase/1.0" prefix="kb"/>
</namespaces>
<!– Contraintes liées au fichier –>
<constraints>
<constraint name="kb:checkTypeNote" type="LIST">
<parameter name="allowedValues">
<list>
<value>a preciser</value>
<value>Note de Service</value>
<value>Note d'Information</value>
</list>
</parameter>
</constraint>
<constraint name="kb:checkGestUsers" type="LIST">
<parameter name="allowedValues">
<list>
<value>a preciser</value>
<value>Note de Service</value>
<value>Note d'Information</value>
</list>
</parameter>
</constraint>
<constraint name="kb:ensGestUser" type="LIST">
<parameter name="allowedValues">
<list>
<value>a preciser</value>
<value>Note de Service</value>
<value>Note d'Information</value>
</list>
</parameter>
</constraint>
</constraints>
<aspects>
<!– Definition of new Content Aspect: Knowledge Base Document –>
<aspect name="kb:referencable">
<title>Knowledge Base Referencable</title>
<properties>
<property name="kb:noteRef">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="kb:documentNom">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="kb:noteType">
<type>d:text</type>
<default>a preciser</default>
<constraints>
<constraint ref="kb:checkTypeNote" /> <!– Liaison vers la contrainte –>
</constraints>
</property>
<property name="kb:noteDateCreation">
<type>d:date</type>
</property>
<property name="kb:noteDateSignature">
<type>d:date</type>
</property>
<property name="kb:noteDateFin">
<type>d:date</type>
</property>
</properties>
<associations>
<association name="kb:notePenseur">
<title>Penseur du document : </title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<association name="kb:noteSecretaire">
<title>Secretaire assurant la saisie : </title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<association name="kb:noteSignataire">
<title>Signataire du document : </title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<association name="kb:destinataires">
<title>Destinataires du document : </title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</aspect>
</aspects>
</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.kb.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/kb-model.xml</value>
</list>
</property>
</bean>
<bean id="extension.kb.resourceBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.messages.knowledgebase</value>
</list>
</property>
</bean>
</beans>
# Custom knowledge base messages
kb_knowledgebase.property.kb_noteRef.title=Reference
kb_knowledgebase.property.kb_documentNom.title=Nom
kb_knowledgebase.property.kb_noteType.title=Type de document
kb_knowledgebase.property.kb_notePenseur.title=Penseur du document
kb_knowledgebase.property.kb_noteSecretaire.title=Secretaire assurant la saisie
kb_knowledgebase.property.kb_noteSignataire.title=Signataire du document
kb_knowledgebase.property.kb_noteDateCreation.title=Date de debut
kb_knowledgebase.property.kb_noteDateSignature.title=Date de signature
kb_knowledgebase.property.kb_noteDateFin.title=Date de fin de validite
kb_knowledgebase.property.kb_destinataires.title=Destinataires du document
kb_knowledgebase.aspect.kb_referencable.title=Referencement des notes
aspect.kb_referencable=Aspect Note
<alfresco-config>
<!– Document Library config section –>
<config evaluator="string-compare" condition="DocumentLibrary">
<!–
Used by the "Manage Aspects" action
For custom aspects, remember to also add the relevant i18n string(s)
cm_myaspect=My Aspect
–>
<aspects>
<!– Aspects that a user can see –>
<visible>
<aspect name="cm:generalclassifiable" />
<aspect name="cm:complianceable" />
<aspect name="cm:dublincore" />
<aspect name="cm:effectivity" />
<aspect name="cm:summarizable" />
<aspect name="cm:versionable" />
<aspect name="cm:templatable" />
<aspect name="cm:emailed" />
<aspect name="emailserver:aliasable" />
<aspect name="cm:taggable" />
<aspect name="app:inlineeditable" />
<aspect name="kb:referencable" />
<!– <aspect name="kb:utilisateur" />–>
</visible>
<!– Aspects that a user can add. Same as "visible" if left empty –>
<addable>
</addable>
<!– Aspects that a user can remove. Same as "visible" if left empty –>
<removeable>
</removeable>
</aspects>
</config>
<!– cm:content type (existing nodes) –>
<config evaluator="node-type" condition="cm:content">
<forms>
<!– Default form configuration used on the document details and edit metadata pages –>
<form>
<field-visibility>
<show id="kb:noteRef" />
<show id="kb:documentNom" />
<show id="kb:noteType" />
<show id="kb:notePenseur" />
<show id="kb:noteSecretaire" />
<show id="kb:noteSignataire" />
<show id="kb:noteDateCreation" />
<show id="kb:noteDateSignature" />
<show id="kb:noteDateFin" />
<show id="kb:destinataires" />
</field-visibility>
</form>
<!– Document Library pop-up Edit Metadata form –>
<form id="doclib-simple-metadata">
<field-visibility>
<show id="kb:noteRef" />
<show id="kb:documentNom" />
<show id="kb:noteType" />
<show id="kb:notePenseur" />
<show id="kb:noteSecretaire" />
<show id="kb:noteSignataire" />
<show id="kb:noteDateCreation" />
<show id="kb:noteDateSignature" />
<show id="kb:noteDateFin" />
<show id="kb:destinataires" />
</field-visibility>
<edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
</form>
<!– Document Library Inline Edit form –>
<form id="doclib-inline-edit">
<field-visibility>
<show id="kb:noteRef" />
<show id="kb:documentNom" />
<show id="kb:noteType" />
<show id="kb:notePenseur" />
<show id="kb:noteSecretaire" />
<show id="kb:noteSignataire" />
<show id="kb:noteDateCreation" />
<show id="kb:noteDateSignature" />
<show id="kb:noteDateFin" />
<show id="kb:destinataires" />
</field-visibility>
</form>
</forms>
</config>
</alfresco-config>
<alfresco-config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="kb:referencable"/>
</aspects>
</config>
</alfresco-config>
03-11-2011 05:07 AM
1 Comment créer des workflows basés sur les cmerson définies dans l'aspect (Penseur, Secrétaire, …)
2 Comment modifier les droits d'accès d'un document pour un ensemble de cmerson (destinataires)
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.