01-18-2010 10:53 AM
<model name="my:alunos" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Alunos</description>
<author>Mmartins</author>
<version>1.0</version>
<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>
<namespaces>
<!– Define a Namespace for my new definitions –>
<namespace uri="my.alunos" prefix="my"/>
</namespaces>
<!– Type and Aspect definitions go here –>
<types>
<type name="my:alunos">
<title>Alunos</title>
<parent>cm:content</parent>
<properties>
<property name="my:Nome">
<title>Nome</title>
<type>d:text</type>
</property>
<property name="my:DocumentodeID">
<title>Documento de ID</title>
<type>d:text</type>
</property>
<property name="my:NumdocdeID">
<title>Numero de documento de ID</title>
<type>d:text</type>
</property>
<property name="my:datanascimento">
<title>Data de nascimento</title>
<type>d:datetime</type>
</property>
<property name="my:morada">
<title>Morada</title>
<type>d:text</type>
</property>
<property name="my:email">
<title>Email</title>
<type>d:text</type>
</property>
<property name="my:telefone">
<title>Telefone</title>
<type>d:number</type>
</property>
<property name="my:curso">
<title>Curso</title>
<type>d:text</type>
</property>
<property name="my:Escola">
<title>Escola/Instituição</title>
<type>d:text</type>
</property>
<property name="my:Bolseiro">
<title>Bolseiro</title>
<type>d:boolean</type>
<default>false</default>
</property>
<property name="my:datadebolseiro">
<title>Data de Bolseiro( Bolseiro desde)</title>
<type>d:datetime</type>
</property>
<property name="my:nib">
<title>Nib</title>
<type>d:text</type>
</property>
<property name="my:numconta">
<title>Numero de conta</title>
<type>d:text</type>
</property>
<property name="my:numbanco">
<title>numero do banco</title>
<type>d:text</type>
</property>
</properties>
</types>
<aspects>
<aspect name="my:imageClassification">
<title>Image Classification</title>
<properties>
<property name="my:width">
<type>d:int</type>
</property>
<property name="my:height">
<type>d:int</type>
</property>
<property name="my:resolution">
<type>d:int</type>
</property>
</properties>
</aspect>
</aspects>
</model>
01-21-2010 06:24 AM
01-21-2010 06:42 AM
01-21-2010 07:47 AM
<?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.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/customModel.xml</value>
</list>
</property>
</bean>
</beans>
Note: customModel is your custom metadata filename.01-21-2010 09:51 AM
01-21-2010 11:26 PM
2. Create custom-model-context.xml and include following code:=snip= done so. =(done so, used that exact name.
<?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.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/alunos.xml </value>
</list>
</property>
</bean>
</beans>
01-22-2010 06:46 AM
<model name="mgo:alunos" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Alunos</description>
<author>Mmartins</author>
<version>1.0</version>
<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>
<namespaces>
<!– Define a Namespace for my new definitions –>
<namespace uri="mgo.alunos" prefix="mgo"/>
</namespaces>
<!– Type and Aspect definitions go here –>
<types>
<type name="mgo:osalunos">
<title>Os Alunos</title>
<parent>cm:content</parent>
<properties>
<property name="mgo:Nome">
<title>Nome</title>
<type>d:text</type>
</property>
<property name="mgo:DocumentodeID">
<title>Documento de ID</title>
<type>d:text</type>
</property>
<property name="mgo:NumdocdeID">
<title>Numero de documento de ID</title>
<type>d:text</type>
</property>
<property name="mgo:datanascimento">
<title>Data de nascimento</title>
<type>d:datetime</type>
</property>
<property name="mgo:morada">
<title>Morada</title>
<type>d:text</type>
</property>
<property name="mgo:email">
<title>Email</title>
<type>d:text</type>
</property>
<property name="mgo:telefone">
<title>Telefone</title>
<type>d:int</type>
</property>
<property name="mgo:curso">
<title>Curso</title>
<type>d:text</type>
</property>
<property name="mgo:Escola">
<title>Escola/Institui??o</title>
<type>d:text</type>
</property>
<property name="mgo:Bolseiro">
<title>Bolseiro</title>
<type>d:boolean</type>
<default>false</default>
</property>
<property name="mgo:datadebolseiro">
<title>Data de Bolseiro( Bolseiro desde)</title>
<type>d:datetime</type>
</property>
<property name="mgo:nib">
<title>Nib</title>
<type>d:text</type>
</property>
<property name="mgo:numconta">
<title>Numero de conta</title>
<type>d:text</type>
</property>
<property name="mgo:numbanco">
<title>numero do banco</title>
<type>d:text</type>
</property>
</properties>
<associations>
<association name="mgo:alImage">
<title>Alunos Image</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<association name="mgo:alFiles">
<title>alunos Files</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type><!– added the type here–>
</types>
<aspects>
<!– <aspect name="mgo:imageClassification">
<title>Image Classification</title>
<properties>
<property name="mgo:width">
<type>d:int</type>
</property>
<property name="mgo:height">
<type>d:int</type>
</property>
<property name="mgo:resolution">
<type>d:int</type>
</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.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/alunos.xml</value>
</list>
</property>
</bean>
</beans>
<alfresco-config>
<config evaluator="node-type" condition="mgo:alunos">
<property-sheet>
<show-property name="mimetype"
display-label-id="content_type"
component-generator="MimeTypeSelectorGenerator" />
<show-property name="size"
display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="mgo:Nome" />
<show-property name="mgo:DocumentodeID" />
<show-property name="mgo:NumdocdeID" />
<show-property name="mgo:datanascimento" />
<show-property name="mgo:morada" />
<show-property name="mgo:email" />
<show-property name="mgo:telefone" />
<show-property name="mgo:curso" />
<show-property name="mgo:Escola"/>
<show-property name="mgo:Bolseiro"/>
<show-property name="mgo:datadebolseiro"/>
<show-property name="mgo:nib"/>
<show-property name="mgo:numconta"/>
<show-property name="mgo:numbanco"/>
<show-association name="mgo:alImage"/>
<show-association name="mgo:alFiles"/>
</property-sheet>
</config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="mgo:alunos" />
</content-types>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="mgo:osalunos"/>
</aspects>
<subtypes>
<type name="mgo:alunos"/>
</subtypes>
</config>
</alfresco-config>
01-26-2010 06:35 AM
01-27-2010 11:38 PM
01-28-2010 11:01 AM
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.