11-29-2013 08:59 AM
QName contentQName = QName.createQName("{http://www.alfresco.org/model/content/1.0}content");
FileInfo pdfInfo = fileFolderService.create(directory, filename, contentQName);
NodeRef pdf = pdfInfo.getNodeRef();
11-29-2013 09:30 AM
11-29-2013 09:55 AM
12-01-2013 10:35 AM
12-02-2013 01:16 AM
12-02-2013 12:04 PM
12-03-2013 04:15 AM
NodeRef storeRootNodeRef = nodeService.getRootNode(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
//using fileFolderService
List<FileInfo> parentDirectory = fileFolderService.searchstoreRootNodeRef , "folder name****", true);
NodeRef parentNodeRef = parentDirectory .getNodeRef();
//using searchService
List<NodeRef> results = searchService.selectNodes(
storeRootNodeRef,
"/app:company_home/app:****/",
null,
namespaceService,
false,
SearchService.LANGUAGE_XPATH);
if (results.size() == 0)
{
throw new AlfrescoRuntimeException("Didn't find node"+name);
}
NodeRef parentNodeRef = results.get(0);
FileInfo object = fileFolderService.create(parentNodeRef, "name", TYPE_CONTENT);
12-03-2013 06:41 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.