|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.core.search.QueryResultImpl
public class QueryResultImpl
Wrapping a JCR QueryResult
. This class will filter the result according
to the user's ACLs. You can use getContent(String)
to retrieve nodes of a certain type.
If the node's type doesn't match the nearest matching ancestors is add instead. This allows to
search in paragraph content while retrieving a list of pages.
Field Summary | |
---|---|
protected Map<String,String> |
dirtyHandles
Deprecated. |
protected HierarchyManager |
hm
Deprecated. TODO dlipp: Remove - it's not used internally. |
protected long |
maxResultSize
Deprecated. |
protected Map<String,Collection<Content>> |
objectStore
Deprecated. caches all previously queried objects. |
protected javax.jcr.query.QueryResult |
result
Deprecated. Unfiltered result object. |
Constructor Summary | |
---|---|
protected |
QueryResultImpl(javax.jcr.query.QueryResult result,
HierarchyManager hm)
Deprecated. |
protected |
QueryResultImpl(javax.jcr.query.QueryResult result,
HierarchyManager hm,
long maxResultSize)
Deprecated. |
Method Summary | |
---|---|
protected void |
build(javax.jcr.Node node,
String[] nodeType,
Collection<Content> collection)
Deprecated. Traverses the hierarchy from the current node to the root until the node's type matches. |
protected void |
build(String nodeType,
Collection<Content> collection)
Deprecated. Adds all found nodes of a certain type. |
Collection<Content> |
getContent()
Deprecated. Gets a collection of Content objects for mgnl:content NodeType. |
Collection<Content> |
getContent(String nodeType)
Deprecated. Gets a collection of Content objects for specified NodeType. |
javax.jcr.query.QueryResult |
getJcrResult()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.jcr.query.QueryResult result
protected Map<String,Collection<Content>> objectStore
protected HierarchyManager hm
protected final long maxResultSize
protected Map<String,String> dirtyHandles
Constructor Detail |
---|
protected QueryResultImpl(javax.jcr.query.QueryResult result, HierarchyManager hm)
protected QueryResultImpl(javax.jcr.query.QueryResult result, HierarchyManager hm, long maxResultSize)
Method Detail |
---|
public javax.jcr.query.QueryResult getJcrResult()
protected void build(String nodeType, Collection<Content> collection) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void build(javax.jcr.Node node, String[] nodeType, Collection<Content> collection) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Collection<Content> getContent()
QueryResult
getContent
in interface QueryResult
public Collection<Content> getContent(String nodeType)
QueryResult
getContent
in interface QueryResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |