10-22-2010 06:37 AM
CmisObject object = …
List<CmisExtensionElement> extensions = object.getExtensions(ExtensionLevel.PROPERTIES);
if(extensions != null && !extensions.isEmpty()) {
List<CmisExtensionElement> alfrescoExtensions = extensions.get(0).getChildren();
// applied aspects
for(CmisExtensionElement extension: alfrescoExtensions) {
if(extension.getName().equals("appliedAspects")) {
String aspect = extension.getValue().substring(2);
System.out.println(aspect);
}
}
// aspect properties
for(CmisExtensionElement extension: alfrescoExtensions) {
if(extension.getName().equals("properties")) {
for(CmisExtensionElement property: extension.getChildren()) {
String id = property.getAttributes().get("propertyDefinitionId");
List<String> values = new ArrayList();
for(CmisExtensionElement propertyValues: property.getChildren()) {
values.add(propertyValues.getValue());
}
System.out.println(id + " = " + values);
}
}
}
}
10-25-2010 04:59 AM
10-25-2010 11:18 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.