titledProps[0] = Utils.createNamedValue(Constants.PROP_TITLE, "PACO");
titledProps[1] = Utils.createNamedValue(Constants.PROP_DESCRIPTION, "PACO");
CMLAddAspect addAspect = new CMLAddAspect(
Constants.ASPECT_TITLED,
titledProps,
null,
"1");
<?xml version="1.0" encoding="UTF-8"?>
<model name="reg:regasocmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Custom Model para Registro de Asociaciones</description>
<author>pablo</author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<namespaces>
<namespace uri="modelo.regasoc" prefix="reg"/>
</namespaces>
<types>
<type name="reg:regasoc">
<title>Registro de Asociaciones</title>
<parent>cm:content</parent>
<properties>
<property name="reg:nregistro">
<title>Nº Registro</title>
<type>d:text</type>
</property>
<property name="reg:nombre">
<title>Nombre</title>
<type>d:text</type>
</property>
<property name="reg:nexpediente">
<title>Nº Expediente</title>
<type>d:text</type>
</property>
<property name="reg:seccion">
<title>Sección</title>
<type>d:int</type>
</property>
</properties>
</type>
</types>
</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registro de nuevos modelos –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/RegAsocModel.xml</value>
</list>
</property>
</bean>
</beans>
el aspect <aspect name="controlado:aspectDocumentoControlado">
NamedValue[] titledProps = new NamedValue[1];
titledProps[0] = Utils.createNamedValue("{modelo.regasoc}nexpediente", "123");
String aspectControladoString = ("{modelo.regasoc}aspectRegasoc");
CMLAddAspect addAspect = new CMLAddAspect(
aspectControladoString,
titledProps,
null,
"1");
<?xml version="1.0" encoding="UTF-8"?>
<model name="reg:regasocmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Custom Model para Registro de Asociaciones</description>
<author>SF_Sevilla</author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<namespaces>
<namespace uri="modelo.regasoc" prefix="reg"/>
</namespaces>
<types>
<type name="reg:regasoc">
<title>Registro de Asociaciones</title>
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>reg:aspectRegasoc</aspect>
</mandatory-aspects>
<properties>
<property name="reg:nregistro">
<title>Nº Registro</title>
<type>d:text</type>
</property>
<property name="reg:nombre">
<title>Nombre</title>
<type>d:text</type>
</property>
<property name="reg:nexpediente">
<title>Nº Expediente</title>
<type>d:text</type>
</property>
<property name="reg:seccion">
<title>Sección</title>
<type>d:int</type>
</property>
</properties>
</type>
</types>
<aspects>
<!– Aspect para el tipo folderEspecialidad–>
<aspect name="reg:aspectRegasoc">
<title>Registro de Asociaciones</title>
<properties>
<property name="reg:nregistro">
<title>Nº Registro</title>
<type>d:text</type>
</property>
<property name="reg:nombre">
<title>Nombre</title>
<type>d:text</type>
</property>
<property name="reg:nexpediente">
<title>Nº Expediente</title>
<type>d:text</type>
</property>
<property name="reg:seccion">
<title>Sección</title>
<type>d:int</type>
</property>
</properties>
</aspect>
</aspects>
</model>
<config evaluator="reg:aspectRegasoc" condition="modelo.regasoc">
<config evaluator="reg:aspectregasoc" condition="modelo.regasoc">
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="reg:regasoc" />
</content-types>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<subtypes>
<type name="reg:regasoc"/>
</subtypes>
</config>
<config evaluator="node-type" condition="reg:regasoc">
<property-sheet>
<show-property name="reg:nregistro"/>
<show-property name="reg:nombre"/>
<show-property name="reg:nexpediente"/>
<show-property name="reg:seccion"/>
</property-sheet>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="reg:regasoc" />
</content-types>
<custom-properties>
<meta-data type="reg:regasoc" property="reg:nregistro" />
<meta-data type="reg:regasoc" property="reg:nombre" />
<meta-data type="reg:regasoc" property="reg:nexpediente" />
<meta-data type="reg:regasoc" property="reg:seccion" />
</custom-properties>
</advanced-search>
</config>
<subtypes>
<type name="reg:regasoc"/>
</subtypes>
<aspects>
<aspect name="reg:aspectRegasoc"/>
</aspects>
</config>
<config evaluator="aspect-name" condition="controlado:aspectDocumentoControlado">
<property-sheet>
<show-property name="" />
… (tus propiedades)
</property-sheet>
</config>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.