02-16-2006 08:44 PM
// this.storeRef points to the store I am interested in.
NodeRef rootNode = nodeService.getRootNode(this.storeRef);
// Creating a folder as a direct child of storeRef
ChildAssociationRef childAssocRef = nodeService.createNode(rootNode,
ContentModel.PROP_CONTAINS, QName.createQName(
NamespaceService.CONTENT_MODEL_1_0_URI, folderName),
ContentModel.TYPE_FOLDER);
String query = "+TYPE:\"" + ContentModel.TYPE_FOLDER.toString() + "\"";
02-20-2006 05:32 AM
// this.storeRef points to the store I am interested in.
NodeRef rootNode = nodeService.getRootNode(this.storeRef);
// Creating a folder as a direct child of storeRef
ChildAssociationRef childAssocRef = nodeService.createNode(rootNode,
ContentModel.PROP_CHILDREN, QName.createQName(
NamespaceService.CONTENT_MODEL_1_0_URI, folderName),
ContentModel.TYPE_FOLDER);
What are the differences between creating child associations and creating plain-jane associations (NodeService#createAssociation())?
02-23-2006 10:47 PM
No there is nothing special about the the root node other than its association to its children is called 'children' rather than a folder which is called 'contains'.This is only a naming convention, right? Will any constraints be violated if the wrong child-association name gets used?
02-24-2006 04:28 AM
02-24-2006 09:52 AM
02-27-2006 06:49 AM
02-27-2006 09:03 AM
02-27-2006 10:35 AM
02-27-2006 11:11 AM
02-27-2006 01:36 PM
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.