com.arsdigita.kernel.ui
Class DataQueryTreeIterator

java.lang.Object
  extended bycom.arsdigita.kernel.ui.DataQueryTreeIterator
All Implemented Interfaces:
Iterator

public class DataQueryTreeIterator
extends Object
implements Iterator

This class iterates through the query, setting up the correct values for the tree node

Version:
$Id: //core-platform/dev/src/com/arsdigita/kernel/ui/DataQueryTreeIterator.java#6 $
Author:
Daniel Berrange, Randy Graebner

Field Summary
protected  DataQuery m_nodes
           
 
Constructor Summary
DataQueryTreeIterator(DataQueryTreeNode node, String getSubCategories)
           
 
Method Summary
 void addOrder(String parameterName)
          This allows the calling class to order the results of the data query
 void filterQuery(String propertyName, PrivilegeDescriptor privilege, OID userOID)
           
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 void setParameter(String parameterName, Object parameterValue)
          This allows the calling class to use data queries that need extra variables set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_nodes

protected DataQuery m_nodes
Constructor Detail

DataQueryTreeIterator

public DataQueryTreeIterator(DataQueryTreeNode node,
                             String getSubCategories)
Method Detail

filterQuery

public void filterQuery(String propertyName,
                        PrivilegeDescriptor privilege,
                        OID userOID)

setParameter

public void setParameter(String parameterName,
                         Object parameterValue)
This allows the calling class to use data queries that need extra variables set. This is used by FolderTreeModelBuilder in CMS but is generally useful so it has been added here.


addOrder

public void addOrder(String parameterName)
This allows the calling class to order the results of the data query


next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC