Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGContentList.addAll()


            Iterator resultSetsIt = resultSets.iterator();
            WGResultSet resultSet;
            while (resultSetsIt.hasNext()) {
                resultSet = (WGResultSet) resultSetsIt.next();
                try {
                    list.addAll(resultSet.getContentList());
                }
                catch (WGAPIException e) {
                    tmlContext.addwarning("Unable to retrieve content list from resultset. Exception: '" + e.getClass().getName() + "' message: '" + e.getMessage() + "'.");
                    log.error("Error creation collection content list", e);
                }
View Full Code Here


               
                // Take the first contents from this set;
                int lengthCtr = length;
                int lengthThisSet = ((int) currentSet.results()) - startCtr + 1;
                try {
                    list.addAll(currentSet.getContentList(startCtr, lengthThisSet));
                    lengthCtr -= lengthThisSet;
                }
                catch (WGAPIException e) {
                    tmlContext.addwarning("Unable to retrieve content list from resultset. Exception: '" + e.getClass().getName() + "' message: '" + e.getMessage() + "'.");
                }
View Full Code Here

                   
                    // This set has to be taken completely (< remaining length)
                    if (currentSet.results() <= lengthCtr) {
                        lengthThisSet = ((int) currentSet.results());
                        try {
                            list.addAll(currentSet.getContentList(1, lengthThisSet));
                            lengthCtr -= lengthThisSet;
                        }
                        catch (WGAPIException e) {
                            tmlContext.addwarning("Unable to retrieve content list from resultset. Exception: '" + e.getClass().getName() + "' message: '" + e.getMessage() + "'.");
                        }
View Full Code Here

                   
                    // This sets contents fits the remaining length
                    else {
                        lengthThisSet = lengthCtr;
                        try {
                            list.addAll(currentSet.getContentList(1, lengthThisSet));
                        }
                        catch (WGAPIException e) {
                            tmlContext.addwarning("Unable to retrieve content list from resultset. Exception: '" + e.getClass().getName() + "' message: '" + e.getMessage() + "'.");
                        }
                        break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.