11-12-2014 04:49 AM
var properties = node.getAspectPropertiesOnly('xy:myAspect'); // <— just an example this method does not exists
for (key in properties) {
logger.log(key + "=" + properties[key]);
// do some operation…
}
11-15-2014 12:04 PM
11-18-2014 04:56 AM
01-16-2015 09:32 AM
var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();
var model = Packages.org.alfresco.model.ContentModel;
var dictionaryService = ctx.getBean("DictionaryService");
var myAspect = dictionaryService.getAspect(model.ASPECT_TITLED);
var props = myAspect.getProperties();
for (var i = 0; i < props.length; i++) {
print("Prop Name = " + props.name);
print(node.properties[props.name]);
}
var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();
var dictionaryService = ctx.getBean("DictionaryService");
var namespaceService = ctx.getBean("NamespaceService");
var QName = Packages.org.alfresco.service.namespace.QName;
var qnameAspect = QName.createQName("xy:myAspect", namespaceService);
var myAspect = dictionaryService.getAspect(qnameAspect);
var props = myAspect.getProperties();
for (var i = 0; i < props.length; i++) {
print("Prop Name = " + props.name);
print(node.properties[props.name]);
}
01-19-2015 03:37 AM
var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();
var model = Packages.org.alfresco.model.ContentModel;
var dictionaryService = ctx.getBean("DictionaryService");
var myAspect = dictionaryService.getAspect(model.ASPECT_TITLED);
var props = myAspect.getProperties();
for (var i = 0; i < props.length; i++) {
print("Prop Name = " + props.name);
print(node.properties[props.name]);
}
var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();
var dictionaryService = ctx.getBean("DictionaryService");
var namespaceService = ctx.getBean("NamespaceService");
var QName = Packages.org.alfresco.service.namespace.QName;
var qnameAspect = QName.createQName("xy:myAspect", namespaceService);
var myAspect = dictionaryService.getAspect(qnameAspect);
var props = myAspect.getProperties();
for (var i = 0; i < props.length; i++) {
print("Prop Name = " + props.name);
print(node.properties[props.name]);
}
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.