Welcome to Oracle Communities
Register and Participate in Oracle's online communities. Learn from thousands of experts, get answers to your questions and share knowledge with peers.
Is it possible to retrieve all assets of type "Product_C" from a specific site say "FirstSiteII" using create condition method.
Condition c = ConditionFactory.createCondition( "Site", OpTypeEnum.EQUALS, "FirstSiteII" );
Query query = new SimpleQuery( "Product_C", "FSII Product", c, Collections.singletonList( "name" ) );
QueryExpression q = SearchUtils.newQuery("siteid", Operation.CONTAINS, idOfFirstsitesII);
q = q.and("AssetType", Operation.EQUALS, "Product_C");
This should find you all the Product_C of a particular site