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.
ResultSet resultSet = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getSearchService().query( Repository.getStoreRef(), SearchService.LANGUAGE_LUCENE, "TYPE:\"{http://www.xxxx.com/model/content/1.0}customContent\""); List<NodeRef> nodes; try{ nodes = resultSet.getNodeRefs(); } finally{ resultSet.close(); } SelectItem[] array = new SelectItem[nodes.size()]; int x = 0; String label; for (NodeRef nf : nodes) { label = (String)getNodeService().getProperty(nf, ContentModel.PROP_NAME); array[x] = new SelectItem(label,label); x++; }