+ request.getPackageUuid() + ") in " + methodDuration + " ms.");
return iterator.getSize();
}
private AssetItemIterator getAssetIterator(AssetPageRequest request) {
ModuleItem packageItem = rulesRepository.loadModuleByUUID(request.getPackageUuid());
AssetItemIterator iterator;
if (request.getFormatInList() != null) {
if (request.getFormatIsRegistered() != null) {
throw new IllegalArgumentException("Combining formatInList and formatIsRegistered is not yet supported.");
}
iterator = packageItem.listAssetsByFormat(request.getFormatInList());
} else {
if (request.getFormatIsRegistered() != null && request.getFormatIsRegistered().equals(Boolean.FALSE)) {
iterator = packageItem.listAssetsNotOfFormat(registeredFormats);
} else {
iterator = packageItem.queryAssets("");
}
}
return iterator;
}