06-16-2008 12:38 PM
06-18-2008 03:13 AM
/**
* input : /Company Home/User Homes/koen/subfolder
* output : /app:company_home/app:user_homes/sys:koen/cm:subfolder
* @return
*/
private String convertFolderToXPathPrefix(NodeRef pHomeRef, String psFolderPath) {
try {
List<String> listPaths = new ArrayList();
StringTokenizer T = new StringTokenizer(psFolderPath, "/", false);
while (T.hasMoreTokens())
listPaths.add(T.nextToken());
listPaths.remove(0); //removing "Company Home"
return m_nodeService.getPath(m_fileFolderService.resolveNamePath(pHomeRef, listPaths).getNodeRef()).toPrefixString(
m_namespaceService);
} catch (FileNotFoundException e) {
//TODO
e.printStackTrace();
return null;
}
}
06-18-2008 05:21 PM
06-18-2008 06:06 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.