11-25-2009 12:30 PM
12-01-2009 07:33 AM
12-01-2009 11:50 AM
12-01-2009 12:18 PM
12-04-2009 02:42 AM
12-04-2009 03:38 AM
<property name="cm:description">
<title>Description</title>
<type>d:mltext</type>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>both</tokenised>
</index>
</property>
12-04-2009 04:09 AM
<show-property name="miModelo:nombre" component-generator="TextAreaGenerator"/>
<managed-bean>
<managed-bean-name>TextAreaGenerator</managed-bean-name>
<managed-bean-class>org.alfresco.web.bean.generator.TextAreaGenerator</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>rows</property-name>
<value>10</value>
</managed-property>
<managed-property>
<property-name>columns</property-name>
<value>75</value>
</managed-property>
</managed-bean>
12-04-2009 08:38 AM
12-04-2009 10:04 AM
String aspectString = Constants.createQNameString("modelo.regasoc", "aspectRegasoc"); // Mi tipo de contenido
NamedValue[] titledProps = this.cargaPropiedades(content, nombre);
CMLAddAspect addAspect = new CMLAddAspect();
addAspect.setAspect(aspectString);
addAspect.setWhere(predicate);
addAspect.setProperty(titledProps);
/ Se prepara el objeto que se enviara al webService
CMLUpdate update = new CMLUpdate();
CML cml = new CML();
cml.setUpdate(new CMLUpdate[] {update});
update.setWhere(predicate);
cml.setAddAspect(new CMLAddAspect[] {addAspect});
UpdateResult[] results = WebServiceFactory.getRepositoryService().update(cml);
/**
* cargarPropiedades
* @param content - VO con las propiedades de cada elemento
* @return NamedValue[] - Propiedades cargadas en array
*/
private NamedValue[] cargaPropiedades(ContentVO content, String nombre){
NamedValue[] titledProps = new NamedValue[3];
titledProps[0] = Utils.createNamedValue(Constants.createQNameString("modelo.regasoc", "nombre"), nombre);
titledProps[1] = Utils.createNamedValue(Constants.PROP_TITLE, nombre);
titledProps[2] = Utils.createNamedValue(Constants.PROP_DESCRIPTION, nombre);
return titledProps;
}
12-09-2009 05:19 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.