Package org.apache.chemistry.opencmis.client.api

Examples of org.apache.chemistry.opencmis.client.api.QueryResult


        // FIXME does this code handles pagination?
        List<CmisObject> resultObjects = new ArrayList<CmisObject>();
        Iterator<QueryResult> results = session.query(query, false).iterator();
        int index = 0;
        while (results.hasNext() && index < max) {
            QueryResult result = results.next();
            String id = result.getPropertyValueById(CMISProperty.ID.getName());
            resultObjects.add(session.getObject(CMISObjectId.getObjectId(id)));
            index++;
        }
        return resultObjects;
    }
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.client.api.QueryResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.