Class AbstractCollectStrategy
java.lang.Object
ch.tocco.nice2.optional.cms.impl.template.sync.collect.strategy.AbstractCollectStrategy
- All Implemented Interfaces:
CollectStrategy
- Direct Known Subclasses:
AppModuleCollectStrategy
Abstract CollectStrategy that provides some helper methods.
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractCollectStrategy
(TextResources textResources, L10N l10n, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
collectRecursive
(String type, ModelResource resource, Predicate<CmsTemplate> predicate, Map<String, CmsTemplate> templates) Collects templates recursive.protected CmsTemplate
createCmsTemplate
(String type, ModelResource resource) protected String
getTemplateContent
(ModelResource resouce) protected String
getTemplateLabelKey
(String uniqueId) protected CmsTemplateModel
getTemplateModel
(ModelResource resource) protected String
getUniqueId
(ModelResource resource) protected boolean
isCmsTemplateResource
(ModelResource resource) protected boolean
isHidden
(ModelResource resource) protected CmsTemplate
setLabel
(CmsTemplate cmsTemplate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.cms.impl.template.sync.collect.strategy.CollectStrategy
collectTemplates
-
Constructor Details
-
AbstractCollectStrategy
-
-
Method Details
-
collectRecursive
protected void collectRecursive(String type, ModelResource resource, Predicate<CmsTemplate> predicate, Map<String, CmsTemplate> templates) Collects templates recursive. A collected template is only put into the map, if it doesn't contain the unique id yet. -
isHidden
-
isCmsTemplateResource
-
createCmsTemplate
-
getUniqueId
-
getTemplateContent
-
getTemplateModel
-
setLabel
-
getTemplateLabelKey
-