Class LsCollectedItems
- java.lang.Object
-
- org.apache.jackrabbit.standalone.cli.info.AbstractLs
-
- org.apache.jackrabbit.standalone.cli.info.AbstractLsItems
-
- org.apache.jackrabbit.standalone.cli.info.LsCollectedItems
-
- All Implemented Interfaces:
org.apache.commons.chain.Command
public class LsCollectedItems extends AbstractLsItems
Lists collectedItems.
ThisCommandlooks for anIteratorunder the givenContextvariable and lists itsItems.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.standalone.cli.info.AbstractLs
longWidth
-
-
Constructor Summary
Constructors Constructor Description LsCollectedItems()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFromKey()protected IteratorgetItems(org.apache.commons.chain.Context ctx)voidsetFromKey(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
-
-
-
-
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:
getItemsin classAbstractLsItems- Parameters:
ctx- theContext- Returns:
- Iterator containing the Items to list
- Throws:
CommandException- if an errors occursRepositoryException- if the currentRepositorythrows aRepositoryException
-
-