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
Implements the 'ls' command.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.cli2.Optionprotected static final intFields inherited from interface org.apache.jackrabbit.vault.util.console.CliCommand
OPT_QUIET, OPT_VERBOSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class org.apache.jackrabbit.vault.cli.AbstractJcrFsCommand
doExecuteMethods inherited from class org.apache.jackrabbit.vault.util.console.commands.AbstractConsoleCommand
doExecute, executeMethods inherited from class org.apache.jackrabbit.vault.util.console.commands.AbstractCommand
createCommand, execute, getCommand, getExample, getLongDescription, getName, hasName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.vault.util.console.CliCommand
execute, getCommand, getExample, getLongDescription, getName, hasName
-
Field Details
-
F_MASK
protected static final int F_MASK- See Also:
-
argPath
protected final org.apache.commons.cli2.Option argPath
-
-
Constructor Details
-
AbstractCmdLs
public AbstractCmdLs()
-
-
Method Details
-
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
-
getShortDescription
-
formatSize
-
formatDate
-