11-12-2012 02:10 PM
doSimpleSearch(String, String, String, OwSimpleSearchClause[], OwRepository, OwSort, Collection, int, int)
11-13-2012 03:04 AM
/** perform a simple search from an array of property values
*
* @param strClassName_p the object class to search for
* @param strResourceName_p the resource to search in, can be null to search the default resource
* @param rootpath_p the root path to search in, can be null to search all object's
* @param clauses_p an array of values operators and criteria names to apply to the search
* @param repository_p OwRepository the repository to search in
* @param sort_p the sort to apply, can be null
* @param propertynames_p the column properties to retrieve, can be null
* @param iMaxSize_p the max size of returned objects
* @param iVersionSelection_p int Selects the versions as defined in OwSearchTemplate.VERSION_SELECT_… or (OwSearchTemplate.VERSION_SELECT_DEFAULT or 0) to use default version
* @return OwObjectCollection
* @throws Exception
*/
public static OwObjectCollection doSimpleSearch(String strClassName_p, String strResourceName_p, String rootpath_p, OwSimpleSearchClause[] clauses_p, OwRepository repository_p, OwSort sort_p, Collection propertynames_p, int iMaxSize_p, int iVersionSelection_p) throws Exception
{
…
}
OwEcmUtil.OwSimpleSearchClause searchClause = new OwEcmUtil.OwSimpleSearchClause("owd:value", OwSearchOperator.CRIT_OP_EQUAL, "1234");
// create array of search criteria
OwEcmUtil.OwSimpleSearchClause[] whereClauses= new OwEcmUtil.OwSimpleSearchClause[] { searchClause };
OwEcmUtil.doSimpleSearch("D:owd:hrdocument", "Main Repository", null, whereClauses, network, null, null, 20, OwSearchTemplate.VERSION_SELECT_DEFAULT)
11-13-2012 06:03 PM
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.