}
private List<CmsVoteItem> getItems(Integer[] itemId, String[] itemTitle,
Integer[] itemVoteCount, Integer[] itemPriority) {
List<CmsVoteItem> items = new ArrayList<CmsVoteItem>();
CmsVoteItem item;
for (int i = 0, len = itemTitle.length; i < len; i++) {
if (!StringUtils.isBlank(itemTitle[i])) {
item = new CmsVoteItem();
if (itemId != null && itemId[i] != null) {
item.setId(itemId[i]);
}
item.setTitle(itemTitle[i]);
item.setVoteCount(itemVoteCount[i]);
item.setPriority(itemPriority[i]);
items.add(item);
}
}
return items;
}