Class EditorTemplatesModelProvider
java.lang.Object
ch.tocco.nice2.optional.cms.impl.publish.model.EditorTemplatesModelProvider
- All Implemented Interfaces:
PageModelProvider<List<EditorTemplatesModelProvider.EditorTemplate>>
@Component
public class EditorTemplatesModelProvider
extends Object
implements PageModelProvider<List<EditorTemplatesModelProvider.EditorTemplate>>
This model provider returns all enabled templates of type "editor" if the
the tree context of the given node is in admin mode.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEditorTemplatesModelProvider
(CmsTemplateService cmsTemplateService, L10N l10n) -
Method Summary
-
Constructor Details
-
EditorTemplatesModelProvider
-
-
Method Details
-
getId
- Specified by:
getId
in interfacePageModelProvider<List<EditorTemplatesModelProvider.EditorTemplate>>
-
getModel
- Specified by:
getModel
in interfacePageModelProvider<List<EditorTemplatesModelProvider.EditorTemplate>>
-