07-24-2009 07:22 AM
<types>
<!– Enterprise-wide generic document type –>
<type name="sp:myDocument">
<title>My Document</title>
<parent>cm:content</parent>
<properties>
<property name="sp:identifier">
<title>ID</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sp:CreatedDate">
<title>Creation Date</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sp:DocumentType">
<title>Document type</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
</types>
try{
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
Query query = new Query(Constants.QUERY_LANG_LUCENE,
"TYPE:\"{http://www.sigpoa.com/model/content/1.0}myDocument\" AND @sp\\:identifier:\""+idDocument+"\"");
QueryResult queryResult = repositoryService.query(STORE, query, false);
ResultSet result = queryResult.getResultSet();
ResultSetRow[] rows = result.getRows();
…
07-28-2009 04:27 AM
07-28-2009 05:37 AM
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.