info.magnolia.module.samples.model
Class SampleComponentModel
java.lang.Object
info.magnolia.rendering.model.RenderingModelImpl<RenderableDefinition>
info.magnolia.module.samples.model.SampleComponentModel
- All Implemented Interfaces:
- RenderingModel<RenderableDefinition>
public class SampleComponentModel
- extends RenderingModelImpl<RenderableDefinition>
This model class is defined in the component definition in the configuration
(modules/samples/components/name-of-component/modelClass)
.
To be accessed in the template file by def.method-name
.
Component models can also be defined in the component definitions.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleComponentModel
@Inject
public SampleComponentModel(javax.jcr.Node content,
RenderableDefinition definition,
RenderingModel<?> parent,
TemplatingFunctions functions)
getQuery
public String getQuery()
setQuery
public void setQuery(String query)
getSearchResult
public List<ContentMap> getSearchResult()
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.