info.magnolia.cms.core.search
Class QueryResultImpl

java.lang.Object
  extended by info.magnolia.cms.core.search.QueryResultImpl
All Implemented Interfaces:
QueryResult

public class QueryResultImpl
extends java.lang.Object
implements QueryResult

Author:
Sameer Charles, Fabrizio Giustina

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> dirtyHandles
           
protected  HierarchyManager hm
           
protected  java.util.Map<java.lang.String,java.util.Collection<Content>> objectStore
          caches all previously queried objects
protected  javax.jcr.query.QueryResult result
          Unfiltered result object
 
Constructor Summary
protected QueryResultImpl(javax.jcr.query.QueryResult result, HierarchyManager hm)
           
 
Method Summary
protected  void build(javax.jcr.Node node, java.lang.String[] nodeType, java.util.Collection<Content> collection)
          Build required result objects
protected  void build(java.lang.String nodeType, java.util.Collection<Content> collection)
          Build required result objects
 AccessManager getAccessManager()
          Deprecated.  
 java.util.Collection<Content> getContent()
          Gets a collection of Content objects for mgnl:content NodeType
 java.util.Collection<Content> getContent(java.lang.String nodeType)
          Gets a collection of Content objects for specified NodeType
 javax.jcr.query.QueryResult getJcrResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected javax.jcr.query.QueryResult result
Unfiltered result object


objectStore

protected java.util.Map<java.lang.String,java.util.Collection<Content>> objectStore
caches all previously queried objects


hm

protected HierarchyManager hm

dirtyHandles

protected java.util.Map<java.lang.String,java.lang.String> dirtyHandles
Constructor Detail

QueryResultImpl

protected QueryResultImpl(javax.jcr.query.QueryResult result,
                          HierarchyManager hm)
Method Detail

getAccessManager

public AccessManager getAccessManager()
Deprecated. 

Returns:

getJcrResult

public javax.jcr.query.QueryResult getJcrResult()

build

protected void build(java.lang.String nodeType,
                     java.util.Collection<Content> collection)
              throws javax.jcr.RepositoryException
Build required result objects

Throws:
javax.jcr.RepositoryException

build

protected void build(javax.jcr.Node node,
                     java.lang.String[] nodeType,
                     java.util.Collection<Content> collection)
              throws javax.jcr.RepositoryException
Build required result objects

Throws:
javax.jcr.RepositoryException

getContent

public java.util.Collection<Content> getContent()
Description copied from interface: QueryResult
Gets a collection of Content objects for mgnl:content NodeType

Specified by:
getContent in interface QueryResult
See Also:
QueryResult.getContent()

getContent

public java.util.Collection<Content> getContent(java.lang.String nodeType)
Description copied from interface: QueryResult
Gets a collection of Content objects for specified NodeType

Specified by:
getContent in interface QueryResult
See Also:
QueryResult.getContent(java.lang.String)


Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.