10-18-2010 07:05 AM
The association source type is incorrect:
Source Node: workspace://IndexesStore/3f8e4d82-2be9-4f55-9dcc-71d9eda431b8
Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/content/1.0}folder], name={http://www.alfresco.org/model/content/1.0}contains, target class={http://www.alfresco.org/model/system/1.0}base, source role=null, target role=null]
Required Source Type: {http://www.alfresco.org/model/content/1.0}folder
Actual Source Type: {http://www.alfresco.org/model/system/1.0}store_root
I believe it is because I'm trying to create a folder in a storeRef, in other words I don't know how to create a root folder.NodeRef parentNodeRef = nodeService.getRootNode(targetStore);
…
while(…)
{
…
folderRef = nodeService.createNode(parentNodeRef, ContentModel.ASSOC_CONTAINS, QName.createQName(NamespaceService.APP_MODEL_1_0_URI, newFolderName), ContentModel.TYPE_FOLDER)
}
(I went through some Wiki examples but they usually create a folder within another folder.)10-18-2010 08:37 AM
10-18-2010 10:02 AM
10-18-2010 10:05 AM
10-18-2010 10:32 AM
You can change your search query, change permissions on the node to hide it, or you can put the nodes in a separate store and hence they will not be visible via the normal search of browsing.
10-19-2010 09:08 AM
getNodeService().setProperty(pdfNodeRef, ComtesysModel.CONTENT_PROPERTY, new ContentData("store://???.bin", "text/plain", size, "UTF-8"));
…does not assign the reference but the actual value; i.e. deleting or modifying the referenced file does not affect the property.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.