04-13-2009 05:45 AM
04-14-2009 06:11 AM
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++;
}
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.