08-25-2015 01:18 PM
String nameRep = "122451";
FileInfo FiRep = serviceRegistry.getFileFolderService().copy(sourceNodeRef, destNodeRef, nameRep);
node = FiRep.getNodeRef();
NamespaceService namespaceService = getServiceRegistry().getNamespaceService();
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
Path pathRep = nodeService.getPath(node);
ResultSet rsRepDA = serviceRegistry.getSearchService().query(storeRef, SearchService.LANGUAGE_LUCENE,
"PATH:\""+pathRep.toPrefixString(namespaceService)+"/cm:Documents_x0020_contractuels\"");
NodeRef result = null;
try
{
result = rsRepDA.getNodeRef(0);
}
catch (Exception e) {
log.error("Erreur lors de la récupération du répertoire");
}
08-26-2015 04:53 AM
10-06-2015 10:16 AM
08-26-2015 05:00 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.