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 collectedItem
s.
ThisCommand
looks for anIterator
under the givenContext
variable and lists itsItem
s.
-
-
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 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
-
-
-
-
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 classAbstractLsItems
- Parameters:
ctx
- theContext
- Returns:
- Iterator containing the Items to list
- Throws:
CommandException
- if an errors occursRepositoryException
- if the currentRepository
throws aRepositoryException
-
-