RD
- Renderable definition.public abstract class AbstractItemListModel<RD extends info.magnolia.rendering.template.TemplateDefinition> extends AbstractSTKTemplateModel<info.magnolia.rendering.template.TemplateDefinition>
DEFAULT_SITEROOT_TEMPLATE_CATEGORY, stkFunctions, templatingFunctions
Constructor and Description |
---|
AbstractItemListModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
STKTemplatingFunctions stkFunctions,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
filter(List<javax.jcr.Node> itemList) |
protected String |
getCategoryName() |
Collection<javax.jcr.Node> |
getItems() |
protected abstract int |
getMaxResults() |
STKPager |
getPager() |
protected String |
getRepository() |
protected javax.jcr.Node |
getSearchRoot() |
protected String |
getSubcategoryName() |
protected List<javax.jcr.Node> |
search() |
protected abstract void |
sort(List<javax.jcr.Node> itemList) |
getSite, getSiteRoot
execute, getContent, getDef, getDefinition, getNode, getParent, getRoot
@Inject public AbstractItemListModel(javax.jcr.Node content, RD definition, info.magnolia.rendering.model.RenderingModel<?> parent, STKTemplatingFunctions stkFunctions, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
protected String getRepository()
protected String getCategoryName()
protected String getSubcategoryName()
protected abstract int getMaxResults()
protected javax.jcr.Node getSearchRoot() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Collection<javax.jcr.Node> getItems() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public STKPager getPager() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected List<javax.jcr.Node> search() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected abstract void filter(List<javax.jcr.Node> itemList)
protected abstract void sort(List<javax.jcr.Node> itemList)
Copyright © 2008–2018 Magnolia International Ltd.. All rights reserved.