08-21-2013 09:54 AM
08-22-2013 02:53 AM
08-22-2013 04:56 AM
public void readContentElements ()
{
String strQuery="TYPE:\"{http://www.alfresco.org/model/content/1.0}content\"";
SearchService searchService = this.getSearchService();
NodeService nodeService = this.getNodeService();
ResultSet results = null;
try {
results = searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_LUCENE, strQuery);
NodeRef homeRef = results.getChildAssocRef(0).getChildRef();
List<ChildAssociationRef> myList = nodeService.getChildAssocs(homeRef);
for (ChildAssociationRef elemento : myList)
{
NodeRef ref = elemento.getChildRef();
System.out.println("Element= "+ref.getId());
}
} finally {
if (results != null) { results.close(); }
}
}//void
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.