As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
private static final Store STORE = new Store(Constants.WORKSPACE_STORE, "SpacesStore"); … Query query = new Query( Constants.QUERY_LANG_LUCENE, PATH:\"/app:user_home/*\""); QueryResult queryResult = repositoryService.query(STORE, query, false);
// Get the ref of the user_home : RepositoryServiceSoapBindingStub repositoryService = this.getWebServiceFactory().getRepositoryService(); Reference reference = new Reference(new Store(Constants.WORKSPACE_STORE, "SpacesStore"), null, "/app:company_home/*[@cm:name=\"" + user_home + "\"]"); Predicate predicate = new Predicate(new Reference[] { reference }, null, null); Node[] nodes = repositoryService.get(predicate); Reference ref = nodes[0].getReference(); // Get all the children of the user_home space this.getWebServiceFactory().getRepositoryService().queryChildren(ref);