org.apache.jackrabbit.standalone.cli.info
Class LsCollectedItems

java.lang.Object
  extended by org.apache.jackrabbit.standalone.cli.info.AbstractLs
      extended by org.apache.jackrabbit.standalone.cli.info.AbstractLsItems
          extended by org.apache.jackrabbit.standalone.cli.info.LsCollectedItems
All Implemented Interfaces:
org.apache.commons.chain.Command

public class LsCollectedItems
extends AbstractLsItems

Lists collected Items.
This Command looks for an Iterator under the given Context variable and lists its Items.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.standalone.cli.info.AbstractLs
longWidth
 
Constructor Summary
LsCollectedItems()
           
 
Method Summary
 String getFromKey()
           
protected  Iterator getItems(org.apache.commons.chain.Context ctx)
          
 void setFromKey(String from)
          Sets the context variable
 
Methods inherited from class org.apache.jackrabbit.standalone.cli.info.AbstractLsItems
execute
 
Methods inherited from class org.apache.jackrabbit.standalone.cli.info.AbstractLs
getDefaultMaxItems, getMaxItems, getMaxItemsKey, isPath, printFooter, setDefaultMaxItems, setMaxItemsKey, setPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LsCollectedItems

public LsCollectedItems()
Method Detail

getFromKey

public String getFromKey()
Returns:
the context variable

setFromKey

public void setFromKey(String from)
Sets the context variable

Parameters:
from - from key to set

getItems

protected Iterator getItems(org.apache.commons.chain.Context ctx)
                     throws CommandException,
                            RepositoryException

Specified by:
getItems in class AbstractLsItems
Parameters:
ctx - the Context
Returns:
Iterator containing the Items to list
Throws:
CommandException - if an errors occurs
RepositoryException - if the current Repository throws a RepositoryException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.