info.magnolia.module.templatingkit.templates.components
Class AbstractItemListModel<RD extends info.magnolia.rendering.template.TemplateDefinition>

java.lang.Object
  extended by info.magnolia.rendering.model.RenderingModelImpl<RD>
      extended by info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel<info.magnolia.rendering.template.TemplateDefinition>
          extended by 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

Field Summary
 
Fields inherited from class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel
DEFAULT_SITEROOT_TEMPLATE_CATEGORY, stkFunctions, templatingFunctions
 
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)
           
 
Method Summary
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()
          FIXME usage of deprecated classes: ContentRepository.
protected  javax.jcr.Node getSearchRoot()
           
protected  String getSubcategoryName()
           
protected  List<javax.jcr.Node> search()
           
protected abstract  void sort(List<javax.jcr.Node> itemList)
           
 
Methods inherited from class info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel
getSite, getSiteRoot
 
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
 

Constructor Detail

AbstractItemListModel

@Inject
public AbstractItemListModel(javax.jcr.Node content,
                                    RD definition,
                                    info.magnolia.rendering.model.RenderingModel<?> parent,
                                    STKTemplatingFunctions stkFunctions,
                                    info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
Method Detail

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-2014 Magnolia International Ltd.. All Rights Reserved.