content-management-systemwebcenteroracle-ucm

UCM service for searching in all revisions


I would like to search for a text in an attribute of UCM content using RIDC. If I use GET_SEARCH_RESULTS service, I will be getting only the latest revision the of result document. But I want to get all the revisions, which will fall in to the given search criteria. is there any way for the same?


Solution

  • Sample code is here..

            String whereClause = "UPPER(XCOMMENTS) LIKE '%VALUE%'";
            dataBinder.putLocal("IdcService", "GET_DATARESULTSET");
            dataBinder.putLocal("dataSource", "Documents");
            dataBinder.putLocal("whereClause", whereClause);
            dataBinder.putLocal("resultName", "YourResult");
            ServiceResponse response =
                idcClient.sendRequest(userContext, dataBinder);
            System.out.println(response.toString());
            DataBinder serverBinder = response.getResponseAsBinder();
            DataResultSet resultSet = serverBinder.getResultSet("YourResult");