info.magnolia.module.templatingkit.templates.components
Class AbstractItemListModel<RD extends info.magnolia.rendering.template.TemplateDefinition>
java.lang.Object
info.magnolia.rendering.model.RenderingModelImpl<RD>
info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<info.magnolia.rendering.template.TemplateDefinition>
info.magnolia.module.templatingkit.templates.components.AbstractItemListModel<RD>
- Type Parameters:
RD
-
- All Implemented Interfaces:
- STKRenderingModel<info.magnolia.rendering.template.TemplateDefinition>, info.magnolia.rendering.model.RenderingModel<info.magnolia.rendering.template.TemplateDefinition>
- Direct Known Subclasses:
- AbstractDateContentModel
public abstract class AbstractItemListModel<RD extends info.magnolia.rendering.template.TemplateDefinition>
- extends AbstractSTKTemplateModel<info.magnolia.rendering.template.TemplateDefinition>
Abstract STK Rendable definition dedicated to Content list manipulation.
- Version:
- $Id$
- Author:
- cringele
Fields inherited from class info.magnolia.rendering.model.RenderingModelImpl |
content, contentMap, definition, parentModel |
Fields inherited from interface info.magnolia.rendering.model.RenderingModel |
SKIP_RENDERING |
Constructor Summary |
AbstractItemListModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
STKTemplatingFunctions stkFunctions,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
|
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl |
execute, getContent, getDef, getDefinition, getNode, getParent, getRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.magnolia.rendering.model.RenderingModel |
execute, getContent, getDefinition, getNode, getParent, getRoot |
AbstractItemListModel
@Inject
public AbstractItemListModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
STKTemplatingFunctions stkFunctions,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
getRepository
protected String getRepository()
- FIXME usage of deprecated classes:
ContentRepository
.
getCategoryName
protected String getCategoryName()
getSubcategoryName
protected String getSubcategoryName()
getMaxResults
protected abstract int getMaxResults()
getSearchRoot
protected javax.jcr.Node getSearchRoot()
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getItems
public Collection<javax.jcr.Node> getItems()
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getPager
public STKPager getPager()
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
search
protected List<javax.jcr.Node> search()
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
filter
protected abstract void filter(List<javax.jcr.Node> itemList)
sort
protected abstract void sort(List<javax.jcr.Node> itemList)
Copyright © 2008-2012 Magnolia International Ltd.. All Rights Reserved.