+ folderPath + " ], list [ " + list.getListURL() + " ].", e);
currentFolder.setNextPage(null);
return listItems;
}
final GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult res =
Util.makeWSRequest(sharepointClientContext, this, new Util.RequestExecutor<
GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult>() {
public GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult
onRequest(final BaseWS ws) throws Throwable {
return stub.getListItemChangesSinceToken(listName, viewName,
query, viewFields, rowLimit, queryOptions, token, contains);
}
public void onError(final Throwable e) {
LOGGER.log(Level.WARNING, "Unable to get folder hierarchy at folderLevel [ "
+ folderPath + " ], list [ " + listUrl + " ].", e);
}
});
if (res == null) {
LOGGER.log(Level.INFO, "No child items found @ ["
+ folderPath + "] from folder [" + currentFolder + "]");
currentFolder.setNextPage(null);
return listItems;
}
String nextPage = null;
final MessageElement[] me = res.get_any();
if ((me != null) && (me.length > 0)) {
Iterator<?> itChilds = me[0].getChildElements();
while (itChilds.hasNext()) {
final MessageElement child = (MessageElement) itChilds.next();
if (!SPConstants.DATA.equalsIgnoreCase(child.getLocalName())) {