Hi.
We are trying to use the Java Webservices (les-services) to get the metadata resp. the categories from the objects which are located within the Enterprise WS. So we have added some categories using the Content Server Administration >> Open the Categories Volume. Then we have assigned these categories to some objects within the Enterprise WS. But we are not able to get the metadata resp. categories or attributes, because the metadata object we get is always null.
The responsible code looks like this:
resultArrayNodes.add(aNode.getName());
if(aNode.getMetadata()!=null) {
List<AttributeGroup> metadatas = aNode.getMetadata().getAttributeGroups();
ArrayList<String> resultArrayNodesMetadata = new ArrayList<String>();
for (AttributeGroup aMetadata : metadatas) {
resultArrayNodesMetadata.add(aMetadata.getDisplayName());
System.out.println(aMetadata.getDisplayName());
}
}
Can someone help us with this?
Thanks,
Stefan.