ServiceRegistry serviceRegistry = Repository.getServiceRegistry(FacesContext.getCurrentInstance());
A partir de ahí tendrás acceso a los diferentes servicios registrados en Alfresco. Por ejemplo:NodeService nodeService = serviceRegistry.getNodeService();
ResultSet results = searcher.query(rootNodeRef.getStoreRef(), "lucene", "PATH:\"/namespace:one/namespace:five/namespace:twelve\"", null, null);
El path debería ser del tipo que muestra el código anterior, es decir, namespace:espacio/namespace:subespacio…nodeService.getPath(currentNode).toPrefixString(namespaceService)
13:33:13,755 INFO [STDOUT] /app:company_home/ajd:AsesorÝa_x0020_JurÝdica/ajdrocedimientos/ajd:Administrativos/ajdrotecci¾n_x0020_de_x0020_datos/cmrueba_x0020_PD
13:44:21,687 INFO [STDOUT] +ASPECT:"{http://www.libertyseguros.es/model/content/ajd/1.0}EsEmpresa" +PATH:"/app:company_home/ajd:AsesorÝa_x0020_JurÝdica/ajdrocedimientos/ajd:Administrativos/ajdrotecci¾n_x0020_de_x0020_datos//*"
Path prefix: /app:company_home/ajd:AsesorÝa_x0020_JurÝdica/ajdrocedimientos/ajd:Administrativos/ajdrotecci¾n_x0020_de_x0020_datos
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.