use of org.craftercms.studio.api.v1.to.GoLiveQueueChildFilter in project studio by craftercms.
the class WorkflowServiceImpl method getGoLiveItems.
protected List<ContentItemTO> getGoLiveItems(final String site, final DmContentItemComparator comparator) throws ServiceLayerException {
List<String> displayPatterns = servicesConfig.getDisplayInWidgetPathPatterns(site);
List<ContentItemTO> categoryItems = getCategoryItems(site);
GoLiveQueue queue = new GoLiveQueue();
fillQueue(site, queue, null);
Set<ContentItemTO> queueItems = queue.getQueue();
ContentItemTO.ChildFilter childFilter = new GoLiveQueueChildFilter(queue);
GoLiveQueueOrganizer goLiveQueueOrganizer = new GoLiveQueueOrganizer(contentService, childFilter);
for (ContentItemTO queueItem : queueItems) {
if (queueItem.getLastEditDate() != null) {
queueItem.setEventDate(queueItem.getLastEditDate());
}
goLiveQueueOrganizer.addToGoLiveItems(site, queueItem, categoryItems, comparator, false, displayPatterns);
}
return categoryItems;
}
Aggregations