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

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

public abstract class AbstractLsItems
extends AbstractLs

List items superclass


Field Summary
 
Fields inherited from class org.apache.jackrabbit.standalone.cli.info.AbstractLs
longWidth
 
Constructor Summary
AbstractLsItems()
           
 
Method Summary
 boolean execute(org.apache.commons.chain.Context ctx)
          
protected abstract  Iterator getItems(org.apache.commons.chain.Context ctx)
           
 
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

AbstractLsItems

public AbstractLsItems()
Method Detail

getItems

protected abstract Iterator getItems(org.apache.commons.chain.Context ctx)
                              throws CommandException,
                                     RepositoryException
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

execute

public final boolean execute(org.apache.commons.chain.Context ctx)
                      throws Exception

Throws:
Exception


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