Class TemplateCollectorImpl
java.lang.Object
ch.tocco.nice2.optional.cms.impl.template.sync.collect.TemplateCollectorImpl
- All Implemented Interfaces:
TemplateCollector
This service uses
CollectStrategies
to collect the templates to synchronize.
Add your collect strategies to the contribution nice2.optional.cms.CmsTemplateCollectStrategies.
If multiple collect strategies return templates with the same unique id, the last template is taken.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollect all templates.collectTemplates
(Predicate<CmsTemplate> predicate) Collect all templates which fulfill a given predicate.void
setCollectStrategies
(List<CollectStrategyContribution> collectStrategies)
-
Constructor Details
-
TemplateCollectorImpl
public TemplateCollectorImpl(org.slf4j.Logger log)
-
-
Method Details
-
setCollectStrategies
-
collectTemplates
Description copied from interface:TemplateCollector
Collect all templates.- Specified by:
collectTemplates
in interfaceTemplateCollector
- Returns:
- the collected templates.
-
collectTemplates
Description copied from interface:TemplateCollector
Collect all templates which fulfill a given predicate.- Specified by:
collectTemplates
in interfaceTemplateCollector
- Parameters:
predicate
- A predicate for filtering the templates.- Returns:
- the collected templates.
-