07-04-2016 10:44 AM
site.node.addAspect("x:newAspect", props)
). This aspect is defined in the model definition file on the server.
<aspect name="x:newAspect">
<title>Activity</title>
<properties>
<property name="x:actOrganisationUnit">
<type>d:text</type>
<mandatory>true</mandatory>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
</property>
[…]
</aspect>
07-05-2016 05:45 AM
07-05-2016 10:17 AM
SearchService pSearchService = serviceRegistry.getSearchService();
SearchParameters pSearchParameters = new SearchParameters();
pSearchParameters.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
pSearchParameters.setLanguage(SearchService.LANGUAGE_CMIS_ALFRESCO);
ResultSet pResults = pSearchService.query(aSearchParameters);
"select d.cmis:objectId from st:site as d join x:newAspect as w on d.cmis:objectId = w.cmis:objectId where w.x:actOrganisationUnit LIKE '%" + aTerm + "%'"
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.