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.Option
argPath
protected static int
F_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 void
doExecute(VaultFsConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl)
static String
formatDate(long date)
protected abstract void
formatFile(ConsoleFile file, Table.Row row, int flags)
static String
formatSize(long size)
protected abstract int
getFormatFlags(VaultFsConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl)
String
getShortDescription()
-
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:
doExecute
in 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)
-
-