Package org.apache.jackrabbit.vault.cli
Class AbstractCmdLs
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.console.commands.AbstractCommand
-
- org.apache.jackrabbit.vault.util.console.commands.AbstractConsoleCommand
-
- org.apache.jackrabbit.vault.cli.AbstractJcrFsCommand
-
- org.apache.jackrabbit.vault.cli.AbstractCmdLs
-
- All Implemented Interfaces:
CliCommand,ConsoleCommand
- Direct Known Subclasses:
CmdLsAggregate,CmdLsJcrFs,CmdLsRepo
public abstract class AbstractCmdLs extends AbstractJcrFsCommand
Implements the 'ls' command.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.cli2.OptionargPathprotected static intF_MASK-
Fields inherited from interface org.apache.jackrabbit.vault.util.console.CliCommand
OPT_QUIET, OPT_VERBOSE
-
-
Constructor Summary
Constructors Constructor Description AbstractCmdLs()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(VaultFsConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl)static StringformatDate(long date)protected abstract voidformatFile(ConsoleFile file, Table.Row row, int flags)static StringformatSize(long size)protected abstract intgetFormatFlags(VaultFsConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl)StringgetShortDescription()-
Methods inherited from class org.apache.jackrabbit.vault.cli.AbstractJcrFsCommand
doExecute
-
Methods inherited from class org.apache.jackrabbit.vault.util.console.commands.AbstractConsoleCommand
doExecute, execute
-
Methods inherited from class org.apache.jackrabbit.vault.util.console.commands.AbstractCommand
createCommand, execute, getCommand, getExample, getLongDescription, getName, hasName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.vault.util.console.CliCommand
execute, getCommand, getExample, getLongDescription, getName, hasName
-
-
-
-
Field Detail
-
F_MASK
protected static final int F_MASK
- See Also:
- Constant Field Values
-
argPath
protected final org.apache.commons.cli2.Option argPath
-
-
Method Detail
-
doExecute
protected void doExecute(VaultFsConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) throws Exception
- Specified by:
doExecutein classAbstractJcrFsCommand- Throws:
Exception
-
getFormatFlags
protected abstract int getFormatFlags(VaultFsConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl)
-
formatFile
protected abstract void formatFile(ConsoleFile file, Table.Row row, int flags)
-
getShortDescription
public String getShortDescription()
-
formatSize
public static String formatSize(long size)
-
formatDate
public static String formatDate(long date)
-
-